Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 92.53 kB / 16.3 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002133/0.002133, allocations: 186.5 kB / 17.2 MB, free: 5.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.861/2.861, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5999/0.5999, allocations: 48.78 MB / 320.4 MB, free: 11.31 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009526/0.0009529, allocations: 15.94 kB / 391.2 MB, free: 50.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2018, allocations: 60.27 MB / 451.5 MB, free: 9.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.004336/0.2062, allocations: 2.152 MB / 453.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002216/0.2085, allocations: 0.7492 MB / 454.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003218/0.2088, allocations: 4 kB / 454.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.209, allocations: 31.7 kB / 454.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006397/0.2096, allocations: 127.6 kB / 454.5 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003419/0.21, allocations: 63.86 kB / 454.6 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006139/0.2106, allocations: 271.4 kB / 454.9 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002717/0.2109, allocations: 73.19 kB / 454.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003191/0.2112, allocations: 139.4 kB / 455.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003161/0.2116, allocations: 143.3 kB / 455.2 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.976e-05/0.2116, allocations: 12 kB / 455.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001319/0.2118, allocations: 16 kB / 455.3 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.887e-05/0.2119, allocations: 51.75 kB / 455.3 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.212, allocations: 93.45 kB / 455.4 MB, free: 5.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004111/0.2124, allocations: 223.6 kB / 455.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2124, allocations: 0 / 455.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.326e-06/0.2125, allocations: 3.984 kB / 455.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.2125, allocations: 0 / 455.6 MB, free: 5.332 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001627/0.2141, allocations: 0.6153 MB / 456.2 MB, free: 4.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.38e-05/0.2142, allocations: 12.03 kB / 456.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.2143, allocations: 54.48 kB / 456.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000197/0.2145, allocations: 39.53 kB / 456.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006711/0.2152, allocations: 306.9 kB / 456.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.341e-05/0.2153, allocations: 16.44 kB / 456.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.432e-05/0.2154, allocations: 32 kB / 456.7 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007048/0.2161, allocations: 242.6 kB / 456.9 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.088e-05/0.2161, allocations: 11.86 kB / 456.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.2162, allocations: 4 kB / 456.9 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.2162, allocations: 8 kB / 456.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005956/0.2168, allocations: 193.6 kB / 457.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001837/0.2186, allocations: 0.8673 MB / 458 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000542/0.2192, allocations: 190.6 kB / 458.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.305e-05/0.2193, allocations: 8 kB / 458.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.587e-05/0.2193, allocations: 34.56 kB / 458.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 3.477e-06/0.2193, allocations: 0 / 458.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002422/0.2218, allocations: 0.7805 MB / 459 MB, free: 1.691 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.308e-05/0.2219, allocations: 55.41 kB / 459.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004813/0.2224, allocations: 292.6 kB / 459.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.568e-05/0.2224, allocations: 33.69 kB / 459.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.2226, allocations: 180.6 kB / 459.6 MB, free: 1.117 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.2228, allocations: 94.56 kB / 459.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.834e-05/0.2229, allocations: 4 kB / 459.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002213/0.2231, allocations: 346.8 kB / 460 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002925/0.2234, allocations: 79.95 kB / 460.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003239/0.2237, allocations: 118.5 kB / 460.2 MB, free: 480 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003172/0.2241, allocations: 93.39 kB / 460.3 MB, free: 388 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2241, allocations: 0 / 460.3 MB, free: 388 kB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001104/0.2252, allocations: 327.3 kB / 460.6 MB, free: 52 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.985e-05/0.2253, allocations: 11.95 kB / 460.6 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.2253, allocations: 0 / 460.6 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004997/0.2258, allocations: 56.88 kB / 460.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006088/0.2264, allocations: 79.83 kB / 460.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003763/0.2302, allocations: 2.843 MB / 463.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004397/0.2307, allocations: 15.98 kB / 463.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.2307, allocations: 15.98 kB / 463.6 MB, free: 12.76 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002689/0.231, allocations: 145.8 kB / 463.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.2311, allocations: 35.58 kB / 463.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007958/0.2319, allocations: 277.2 kB / 464.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.232, allocations: 4 kB / 464.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.232, allocations: 4 kB / 464.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.912e-06/0.232, allocations: 0 / 464.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001549/0.2336, allocations: 0.6778 MB / 464.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.2336, allocations: 0 / 464.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005339/0.2341, allocations: 67.95 kB / 464.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.2342, allocations: 0 / 464.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.185e-05/0.2342, allocations: 8 kB / 464.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/0.2342, allocations: 0 / 464.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.2342, allocations: 0 / 464.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.2354, allocations: 471.8 kB / 465.3 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002078/0.2356, allocations: 128.7 kB / 465.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.042e-05/0.2357, allocations: 8 kB / 465.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003131/0.236, allocations: 12 kB / 465.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.393e-05/0.2361, allocations: 19.97 kB / 465.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.2361, allocations: 4 kB / 465.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003736/0.2365, allocations: 215.1 kB / 465.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2365, allocations: 0 / 465.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005477/0.2371, allocations: 72 kB / 465.7 MB, free: 10.53 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001711/0.2388, allocations: 0.9931 MB / 466.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.2404, allocations: 378.5 kB / 467.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.2404, allocations: 4 kB / 467.1 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003088/0.2407, allocations: 111.9 kB / 467.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005906/0.2414, allocations: 47.45 kB / 467.3 MB, free: 8.973 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006477/0.2478, allocations: 2.56 MB / 469.8 MB, free: 6.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008407/0.2488, allocations: 0.7954 MB / 470.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002689/0.2491, allocations: 42.95 kB / 470.7 MB, free: 5.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002995/0.2494, allocations: 115.4 kB / 470.8 MB, free: 5.367 MB / 350.1 MB Notification: Performance of SimCode: time 1.563e-06/0.2494, allocations: 0 / 470.8 MB, free: 5.367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04926/0.2986, allocations: 6.212 MB / 477 MB, free: 15.15 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004218/0.2992, allocations: 215.2 kB / 477.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.093/3.393, allocations: 0 / 477.2 MB, free: 14.9 MB / 366.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1) Environment - environmentSimulation: