Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestTurbineStodolaPartialArc.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.WaterComponents.TestTurbineStodolaPartialArc,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestTurbineStodolaPartialArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestTurbineStodolaPartialArc,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestTurbineStodolaPartialArc",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.001053/0.001053, allocations: 110.2 kB / 16.92 MB, free: 5.785 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.001053/0.001054, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.204/1.204, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2466/0.2466, allocations: 48.84 MB / 319.9 MB, free: 11.09 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.001364/0.001364, allocations: 73.75 kB / 390.2 MB, free: 48.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0784/0.07977, allocations: 59.15 MB / 449.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestTurbineStodolaPartialArc): time 0.02467/0.1045, allocations: 27.65 MB / 477 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0165/0.121, allocations: 16.36 MB / 493.3 MB, free: 13.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002641/0.1213, allocations: 3.938 kB / 493.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004186/0.1218, allocations: 119.2 kB / 493.5 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002494/0.122, allocations: 150.9 kB / 493.6 MB, free: 13.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01457/0.1366, allocations: 6.741 MB / 0.4886 GB, free: 6.473 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004961/0.1371, allocations: 438.5 kB / 0.489 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.1374, allocations: 148.8 kB / 0.4892 GB, free: 5.898 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003655/0.141, allocations: 1.846 MB / 0.491 GB, free: 4.027 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0126/0.1537, allocations: 6.245 MB / 0.4971 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.096e-05/0.1538, allocations: 20 kB / 0.4971 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01374/0.1675, allocations: 8.72 MB / 0.5056 GB, free: 4.957 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.861e-05/0.1676, allocations: 47.78 kB / 0.5057 GB, free: 4.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.1678, allocations: 143.3 kB / 0.5058 GB, free: 4.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007988/0.1758, allocations: 5.08 MB / 0.5108 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1758, allocations: 4 kB / 0.5108 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.1758, allocations: 0 / 0.5108 GB, free: 15.68 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.1758, allocations: 0 / 0.5108 GB, free: 15.68 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.00225/0.1781, allocations: 1.127 MB / 0.5119 GB, free: 14.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.1781, allocations: 15.89 kB / 0.5119 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.088e-05/0.1782, allocations: 62.72 kB / 0.5119 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002215/0.1784, allocations: 52.48 kB / 0.512 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002705/0.1787, allocations: 260.7 kB / 0.5122 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.1787, allocations: 28.69 kB / 0.5123 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.671e-05/0.1788, allocations: 20 kB / 0.5123 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006169/0.1794, allocations: 338.1 kB / 0.5126 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.1794, allocations: 7.938 kB / 0.5126 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.1795, allocations: 4 kB / 0.5126 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1795, allocations: 8 kB / 0.5126 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005174/0.18, allocations: 217.4 kB / 0.5128 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.1816, allocations: 1.718 MB / 0.5145 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/0.1819, allocations: 122.4 kB / 0.5146 GB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.1821, allocations: 48.83 kB / 0.5147 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2628/0.4449, allocations: 63.96 MB / 0.5771 GB, free: 41.92 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.4449, allocations: 38.16 kB / 0.5772 GB, free: 41.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 2.014e-06/0.4449, allocations: 0 / 0.5772 GB, free: 41.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.0008605/0.4458, allocations: 251.9 kB / 0.5774 GB, free: 41.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.4458, allocations: 51.41 kB / 0.5775 GB, free: 41.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002249/0.4461, allocations: 288.1 kB / 0.5777 GB, free: 41.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.4461, allocations: 25.7 kB / 0.5778 GB, free: 41.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.793e-05/0.4462, allocations: 191.4 kB / 0.5779 GB, free: 41.22 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.4462, allocations: 33.09 kB / 0.578 GB, free: 41.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.457e-05/0.4463, allocations: 33.16 kB / 0.578 GB, free: 41.17 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.818e-05/0.4463, allocations: 341.8 kB / 0.5783 GB, free: 40.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.4464, allocations: 51.62 kB / 0.5784 GB, free: 40.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.4466, allocations: 128.3 kB / 0.5785 GB, free: 40.65 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/0.4469, allocations: 185.1 kB / 0.5787 GB, free: 40.44 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.4469, allocations: 0 / 0.5787 GB, free: 40.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003571/0.4472, allocations: 221.6 kB / 0.5789 GB, free: 40.24 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.4473, allocations: 4 kB / 0.5789 GB, free: 40.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.4473, allocations: 5.375 kB / 0.5789 GB, free: 40.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.4473, allocations: 4 kB / 0.5789 GB, free: 40.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.4475, allocations: 51.75 kB / 0.579 GB, free: 40.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.4475, allocations: 6.906 kB / 0.579 GB, free: 40.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.4476, allocations: 35.67 kB / 0.579 GB, free: 40.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.4477, allocations: 8 kB / 0.579 GB, free: 40.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001504/0.4478, allocations: 144.3 kB / 0.5791 GB, free: 39.99 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001241/0.448, allocations: 126.1 kB / 0.5793 GB, free: 39.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002364/0.4482, allocations: 202.7 kB / 0.5795 GB, free: 39.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.814e-06/0.4482, allocations: 3.984 kB / 0.5795 GB, free: 39.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003309/0.4485, allocations: 220.2 kB / 0.5797 GB, free: 39.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.991e-06/0.4486, allocations: 4.031 kB / 0.5797 GB, free: 39.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.976e-06/0.4486, allocations: 8 kB / 0.5797 GB, free: 39.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.607e-06/0.4486, allocations: 4 kB / 0.5797 GB, free: 39.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/0.4487, allocations: 49.94 kB / 0.5797 GB, free: 39.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.4487, allocations: 10.94 kB / 0.5797 GB, free: 39.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.4489, allocations: 15.92 kB / 0.5798 GB, free: 39.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.4489, allocations: 18.98 kB / 0.5798 GB, free: 39.29 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 (steamTurbineStodola.steamState_in.phase,steamTurbineStodola.steamState_iso.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.781e-05/0.449, allocations: 191.7 kB / 0.58 GB, free: 39.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.241e-05/0.449, allocations: 31.62 kB / 0.58 GB, free: 39.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004166/0.4494, allocations: 281.4 kB / 0.5803 GB, free: 38.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.4494, allocations: 5.719 kB / 0.5803 GB, free: 38.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.4494, allocations: 4 kB / 0.5803 GB, free: 38.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.4495, allocations: 3.984 kB / 0.5803 GB, free: 38.78 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00027/0.4497, allocations: 336.9 kB / 0.5806 GB, free: 38.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4497, allocations: 0.75 kB / 0.5806 GB, free: 38.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/0.4499, allocations: 27.97 kB / 0.5806 GB, free: 38.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.4499, allocations: 0 / 0.5806 GB, free: 38.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.4499, allocations: 8 kB / 0.5806 GB, free: 38.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.4499, allocations: 7.031 kB / 0.5806 GB, free: 38.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.4499, allocations: 5.25 kB / 0.5806 GB, free: 38.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003792/0.4503, allocations: 264.3 kB / 0.5809 GB, free: 38.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.119e-05/0.4503, allocations: 108.1 kB / 0.581 GB, free: 37.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.799e-05/0.4504, allocations: 15.75 kB / 0.581 GB, free: 37.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.4506, allocations: 23.97 kB / 0.581 GB, free: 37.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.066e-05/0.4506, allocations: 11.84 kB / 0.581 GB, free: 37.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.4506, allocations: 4 kB / 0.581 GB, free: 37.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002172/0.4508, allocations: 311.1 kB / 0.5813 GB, free: 37.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4508, allocations: 0 / 0.5813 GB, free: 37.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002594/0.4534, allocations: 1.3 MB / 0.5826 GB, free: 36.42 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSpeed.phi) * 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 (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004717/0.4582, allocations: 2.124 MB / 0.5847 GB, free: 34.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004507/0.4586, allocations: 199.1 kB / 0.5849 GB, free: 34.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4586, allocations: 384 / 0.5849 GB, free: 34.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.886e-05/0.4587, allocations: 39.98 kB / 0.5849 GB, free: 34.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007153/0.4595, allocations: 141.6 kB / 0.585 GB, free: 34.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.4628, allocations: 3.394 MB / 0.5884 GB, free: 30.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001272/0.463, allocations: 0.7736 MB / 0.5891 GB, free: 29.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000195/0.4632, allocations: 129.7 kB / 0.5892 GB, free: 29.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.379e-05/0.4633, allocations: 115.3 kB / 0.5894 GB, free: 29.57 MB / 414.1 MB Notification: Performance of SimCode: time 1.9e-07/0.4633, allocations: 0 / 0.5894 GB, free: 29.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06979/0.5331, allocations: 52.17 MB / 0.6403 GB, free: 9.297 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.976/10.51, allocations: 15.94 kB / 0.6403 GB, free: 9.281 MB / 446.1 MB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestTurbineStodolaPartialArc.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestTurbineStodolaPartialArc.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestTurbineStodolaPartialArc.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestTurbineStodolaPartialArc.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestTurbineStodolaPartialArc_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ThermoPower_ThermoPower_Test_WaterComponents_TestTurbineStodolaPartialArc.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestTurbineStodolaPartialArc.pipe 2>&1)