Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.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.TestJoinRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestJoinRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev",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.0006405/0.0006405, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.0006698/0.0006698, allocations: 177 kB / 17.56 MB, free: 6.18 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.092/1.092, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2219/0.2219, allocations: 48.78 MB / 320.8 MB, free: 11.19 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.0006313/0.0006313, allocations: 14.69 kB / 391.9 MB, free: 49.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09252/0.09317, allocations: 60.27 MB / 452.2 MB, free: 9.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.2417/0.3349, allocations: 104.6 MB / 0.5437 GB, free: 5.98 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01072/0.3457, allocations: 12.38 MB / 0.5558 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003668/0.3461, allocations: 26.97 kB / 0.5559 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009283/0.347, allocations: 467.9 kB / 0.5563 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007543/0.3478, allocations: 0.6112 MB / 0.5569 GB, free: 5.777 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009548/0.3573, allocations: 4.666 MB / 0.5615 GB, free: 5.551 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001976/0.3593, allocations: 2.67 MB / 0.5641 GB, free: 5.176 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006203/0.3599, allocations: 0.5592 MB / 0.5646 GB, free: 5.098 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00063/0.3606, allocations: 0.6136 MB / 0.5652 GB, free: 5.031 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006274/0.3612, allocations: 0.6927 MB / 0.5659 GB, free: 4.996 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.3613, allocations: 48.94 kB / 0.5659 GB, free: 4.996 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008122/0.3694, allocations: 6.379 MB / 0.5722 GB, free: 4.766 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.997e-05/0.3696, allocations: 153.7 kB / 0.5723 GB, free: 4.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002907/0.3699, allocations: 475.6 kB / 0.5728 GB, free: 4.582 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003531/0.3734, allocations: 4.376 MB / 0.577 GB, free: 2.664 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.3734, allocations: 3.938 kB / 0.5771 GB, free: 2.66 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3734, allocations: 0 / 0.5771 GB, free: 2.66 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.3734, allocations: 0 / 0.5771 GB, free: 2.66 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.003209/0.3766, allocations: 1.747 MB / 0.5788 GB, free: 1.512 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.3767, allocations: 9.094 kB / 0.5788 GB, free: 1.512 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.421e-05/0.3768, allocations: 113.1 kB / 0.5789 GB, free: 1.453 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000252/0.377, allocations: 118.6 kB / 0.579 GB, free: 1.402 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004372/0.3775, allocations: 0.518 MB / 0.5795 GB, free: 1.031 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.3775, allocations: 51.53 kB / 0.5795 GB, free: 1.031 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-05/0.3776, allocations: 69.31 kB / 0.5796 GB, free: 1.027 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001745/0.3794, allocations: 0.9832 MB / 0.5806 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.3794, allocations: 6.688 kB / 0.5806 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.748e-05/0.3794, allocations: 27.44 kB / 0.5806 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.3795, allocations: 16.88 kB / 0.5806 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002094/0.3816, allocations: 0.8831 MB / 0.5815 GB, free: 456 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003337/0.3849, allocations: 4.386 MB / 0.5858 GB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00215/0.3871, allocations: 0.8414 MB / 0.5866 GB, free: 12.45 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008244/0.3879, allocations: 345.9 kB / 0.5869 GB, free: 12.36 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05464/0.4426, allocations: 32.29 MB / 0.6184 GB, free: 13.79 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001467/0.444, allocations: 0.5704 MB / 0.619 GB, free: 13.29 MB / 462.1 MB Notification: Performance of pre-optimization done (n=44): time 1.623e-06/0.4441, allocations: 0 / 0.619 GB, free: 13.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=44): time 0.003537/0.4476, allocations: 1.232 MB / 0.6202 GB, free: 12.24 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.55e-05/0.4477, allocations: 89.09 kB / 0.6203 GB, free: 12.14 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004838/0.4481, allocations: 0.5445 MB / 0.6208 GB, free: 11.71 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.639e-05/0.4482, allocations: 40.08 kB / 0.6209 GB, free: 11.67 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001854/0.4484, allocations: 339.2 kB / 0.6212 GB, free: 11.45 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.776e-05/0.4485, allocations: 147.4 kB / 0.6213 GB, free: 11.33 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/0.4486, allocations: 48.94 kB / 0.6214 GB, free: 11.29 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.4487, allocations: 371.1 kB / 0.6217 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008627/0.4496, allocations: 314.3 kB / 0.622 GB, free: 10.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008918/0.4505, allocations: 393.5 kB / 0.6224 GB, free: 10.36 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/0.4522, allocations: 0.7626 MB / 0.6231 GB, free: 9.672 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4522, allocations: 0 / 0.6231 GB, free: 9.672 MB / 462.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002001/0.4542, allocations: 0.9288 MB / 0.6241 GB, free: 8.855 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.4543, allocations: 263 kB / 0.6243 GB, free: 8.555 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.4544, allocations: 3.938 kB / 0.6243 GB, free: 8.551 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.4544, allocations: 4 kB / 0.6243 GB, free: 8.547 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006144/0.455, allocations: 156 kB / 0.6245 GB, free: 8.402 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.455, allocations: 4 kB / 0.6245 GB, free: 8.398 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007863/0.4558, allocations: 170.3 kB / 0.6246 GB, free: 8.238 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.435e-05/0.4559, allocations: 26.48 kB / 0.6247 GB, free: 8.219 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.34e-06/0.4559, allocations: 4 kB / 0.6247 GB, free: 8.215 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001856/0.4577, allocations: 0.8462 MB / 0.6255 GB, free: 7.488 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.4577, allocations: 4 kB / 0.6255 GB, free: 7.484 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.488e-06/0.4577, allocations: 4 kB / 0.6255 GB, free: 7.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005413/0.4583, allocations: 157.1 kB / 0.6256 GB, free: 7.336 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.4583, allocations: 4 kB / 0.6256 GB, free: 7.332 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006607/0.459, allocations: 163.3 kB / 0.6258 GB, free: 7.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-05/0.459, allocations: 22.23 kB / 0.6258 GB, free: 7.16 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 26 (Sine2.count,$PRE.Sine2.count,Sine2.T_start,$PRE.Sine2.T_start,Sine1.count,$PRE.Sine1.count,Sine1.T_start,$PRE.Sine1.T_start,$whenCondition3,$whenCondition4,Sine4.count,$PRE.Sine4.count,Sine4.T_start,$PRE.Sine4.T_start,Sine3.count,$PRE.Sine3.count,Sine3.T_start,$PRE.Sine3.T_start,$whenCondition1,$whenCondition2,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 4 * 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 0.0002331/0.4593, allocations: 282.1 kB / 0.6261 GB, free: 6.918 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.058e-05/0.4593, allocations: 71.16 kB / 0.6262 GB, free: 6.848 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002726/0.4621, allocations: 1.944 MB / 0.6281 GB, free: 5.367 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.619e-05/0.4621, allocations: 26.72 kB / 0.6281 GB, free: 5.344 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.4621, allocations: 3.984 kB / 0.6281 GB, free: 5.34 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.4621, allocations: 0 / 0.6281 GB, free: 5.34 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002402/0.4645, allocations: 2.07 MB / 0.6301 GB, free: 3.223 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.4646, allocations: 0 / 0.6301 GB, free: 3.223 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005302/0.4651, allocations: 135.9 kB / 0.6302 GB, free: 3.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.4651, allocations: 4 kB / 0.6302 GB, free: 3.086 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.998e-05/0.4651, allocations: 19.92 kB / 0.6303 GB, free: 3.066 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.4652, allocations: 0 / 0.6303 GB, free: 3.066 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.4652, allocations: 4 kB / 0.6303 GB, free: 3.062 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002216/0.4674, allocations: 1.299 MB / 0.6315 GB, free: 1.734 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002028/0.4676, allocations: 223.5 kB / 0.6317 GB, free: 1.496 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.802e-05/0.4677, allocations: 15.92 kB / 0.6318 GB, free: 1.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006924/0.4684, allocations: 139.7 kB / 0.6319 GB, free: 1.344 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.4686, allocations: 91.83 kB / 0.632 GB, free: 1.254 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.648e-05/0.4686, allocations: 12 kB / 0.632 GB, free: 1.242 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003276/0.4689, allocations: 383.1 kB / 0.6324 GB, free: 0.875 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4689, allocations: 0 / 0.6324 GB, free: 0.875 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002169/0.4711, allocations: 1.116 MB / 0.6334 GB, free: 15.75 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 24 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$whenCondition4,$whenCondition3,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count) * Number of discrete states: 4 (Sine1.count,Sine2.count,Sine4.count,Sine3.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 8 * 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.005159/0.4763, allocations: 2.743 MB / 0.6361 GB, free: 13.06 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003171/0.4795, allocations: 1.688 MB / 0.6378 GB, free: 11.27 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4795, allocations: 0 / 0.6378 GB, free: 11.27 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.4807, allocations: 0.6355 MB / 0.6384 GB, free: 10.64 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001715/0.4824, allocations: 344.5 kB / 0.6387 GB, free: 10.31 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.4927, allocations: 7.24 MB / 0.6458 GB, free: 2.902 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004445/0.4932, allocations: 1.015 MB / 0.6468 GB, free: 1.859 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000637/0.4938, allocations: 400.4 kB / 0.6472 GB, free: 1.465 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003865/0.4942, allocations: 331.3 kB / 0.6475 GB, free: 1.141 MB / 478.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4942, allocations: 0 / 0.6475 GB, free: 1.141 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.855/3.349, allocations: 48.68 MB / 0.695 GB, free: 404 kB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002632/3.349, allocations: 191 kB / 0.6952 GB, free: 140 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.688/7.037, allocations: 3.938 kB / 0.6952 GB, free: 136 kB / 0.5137 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe 2>&1)