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: translateModel(ThermoPower.Test.WaterComponents.TestJoinRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev") translateModel(ThermoPower.Test.WaterComponents.TestJoinRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 112.6 kB / 17.69 MB, free: 5.441 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.00109/0.00109, allocations: 191 kB / 18.63 MB, free: 4.508 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.267/1.267, allocations: 205.1 MB / 224.5 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.2599/0.2599, allocations: 48.84 MB / 320.7 MB, free: 11.05 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.001433/0.001433, allocations: 70.45 kB / 391.5 MB, free: 48.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08136/0.08281, allocations: 59.17 MB / 450.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.2695/0.3523, allocations: 105.2 MB / 0.5428 GB, free: 5.961 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01241/0.3648, allocations: 11.69 MB / 0.5543 GB, free: 5.781 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006613/0.3655, allocations: 21.56 kB / 0.5543 GB, free: 5.781 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001313/0.3668, allocations: 0.5562 MB / 0.5548 GB, free: 5.777 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001342/0.3682, allocations: 0.6316 MB / 0.5554 GB, free: 5.762 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01403/0.3822, allocations: 5.708 MB / 0.561 GB, free: 5.605 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0022/0.3844, allocations: 1.823 MB / 0.5628 GB, free: 5.562 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000875/0.3853, allocations: 0.6678 MB / 0.5634 GB, free: 5.508 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009562/0.3863, allocations: 0.7032 MB / 0.5641 GB, free: 5.422 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006772/0.387, allocations: 0.6907 MB / 0.5648 GB, free: 5.309 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.3871, allocations: 79.44 kB / 0.5649 GB, free: 5.309 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01159/0.3987, allocations: 6.444 MB / 0.5712 GB, free: 5.129 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002301/0.399, allocations: 186.9 kB / 0.5714 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008039/0.3998, allocations: 493.5 kB / 0.5718 GB, free: 4.891 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007021/0.4068, allocations: 4.416 MB / 0.5761 GB, free: 3.113 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.4068, allocations: 0 / 0.5761 GB, free: 3.113 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4068, allocations: 0 / 0.5761 GB, free: 3.113 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.4069, allocations: 0 / 0.5761 GB, free: 3.113 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.003978/0.4108, allocations: 1.842 MB / 0.5779 GB, free: 1.945 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.4109, allocations: 15.88 kB / 0.5779 GB, free: 1.938 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003119/0.4112, allocations: 116.3 kB / 0.5781 GB, free: 1.887 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006641/0.4119, allocations: 0.5372 MB / 0.5786 GB, free: 1.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.285e-05/0.4119, allocations: 55.77 kB / 0.5786 GB, free: 1.516 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.337e-05/0.412, allocations: 66.28 kB / 0.5787 GB, free: 1.512 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00186/0.4139, allocations: 0.9369 MB / 0.5796 GB, free: 1.152 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.4139, allocations: 0 / 0.5796 GB, free: 1.152 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.944e-05/0.414, allocations: 28.44 kB / 0.5796 GB, free: 1.152 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.414, allocations: 20.66 kB / 0.5797 GB, free: 1.148 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002172/0.4162, allocations: 0.7895 MB / 0.5804 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003795/0.42, allocations: 4.347 MB / 0.5847 GB, free: 13.22 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002277/0.4223, allocations: 0.737 MB / 0.5854 GB, free: 13 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008187/0.4231, allocations: 301 kB / 0.5857 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06105/0.4842, allocations: 32.11 MB / 0.617 GB, free: 13.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001625/0.4858, allocations: 0.532 MB / 0.6176 GB, free: 13.38 MB / 462.1 MB Notification: Performance of pre-optimization done (n=44): time 2.154e-06/0.4858, allocations: 0 / 0.6176 GB, free: 13.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=44): time 0.003713/0.4896, allocations: 1.092 MB / 0.6186 GB, free: 12.41 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/0.4896, allocations: 91.98 kB / 0.6187 GB, free: 12.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005901/0.4902, allocations: 0.5353 MB / 0.6192 GB, free: 11.77 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.296e-05/0.4903, allocations: 37.7 kB / 0.6193 GB, free: 11.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.4906, allocations: 352.5 kB / 0.6196 GB, free: 11.38 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.4907, allocations: 136.5 kB / 0.6197 GB, free: 11.25 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.4909, allocations: 94.11 kB / 0.6198 GB, free: 11.15 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.491, allocations: 374.8 kB / 0.6202 GB, free: 10.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008761/0.4919, allocations: 270.5 kB / 0.6205 GB, free: 10.51 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008891/0.4928, allocations: 346 kB / 0.6208 GB, free: 10.15 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/0.4945, allocations: 0.6646 MB / 0.6214 GB, free: 9.441 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4945, allocations: 0 / 0.6214 GB, free: 9.441 MB / 462.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002037/0.4966, allocations: 0.833 MB / 0.6222 GB, free: 8.578 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.891e-05/0.4967, allocations: 118.8 kB / 0.6224 GB, free: 8.438 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.4967, allocations: 0 / 0.6224 GB, free: 8.438 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.4967, allocations: 4 kB / 0.6224 GB, free: 8.434 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006614/0.4974, allocations: 139.9 kB / 0.6225 GB, free: 8.297 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.4974, allocations: 4 kB / 0.6225 GB, free: 8.293 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006938/0.4981, allocations: 111.4 kB / 0.6226 GB, free: 8.184 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.634e-05/0.4981, allocations: 21.86 kB / 0.6226 GB, free: 8.164 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009346/0.4991, allocations: 384.9 kB / 0.623 GB, free: 7.777 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008023/0.4999, allocations: 343.2 kB / 0.6233 GB, free: 7.406 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001508/0.5014, allocations: 0.6529 MB / 0.624 GB, free: 6.691 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.054e-06/0.5014, allocations: 4 kB / 0.624 GB, free: 6.688 MB / 462.1 MB Notification: Performance of matching and sorting (n=58) (initialization_lambda0): time 0.001822/0.5033, allocations: 0.8135 MB / 0.6248 GB, free: 5.844 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.612e-05/0.5034, allocations: 123.1 kB / 0.6249 GB, free: 5.699 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.5034, allocations: 8 kB / 0.6249 GB, free: 5.691 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.822e-06/0.5034, allocations: 4 kB / 0.6249 GB, free: 5.688 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005492/0.5039, allocations: 123.8 kB / 0.625 GB, free: 5.566 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.504, allocations: 11.88 kB / 0.625 GB, free: 5.555 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005964/0.5046, allocations: 99.58 kB / 0.6251 GB, free: 5.457 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.115e-05/0.5046, allocations: 24 kB / 0.6251 GB, free: 5.434 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.0001929/0.5048, allocations: 221.3 kB / 0.6253 GB, free: 5.215 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.5049, allocations: 67.16 kB / 0.6254 GB, free: 5.148 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003001/0.508, allocations: 1.848 MB / 0.6272 GB, free: 3.289 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.569e-05/0.508, allocations: 27.95 kB / 0.6272 GB, free: 3.262 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.508, allocations: 0 / 0.6272 GB, free: 3.262 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.508, allocations: 4 kB / 0.6272 GB, free: 3.258 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002584/0.5106, allocations: 2.022 MB / 0.6292 GB, free: 1.188 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.5106, allocations: 0 / 0.6292 GB, free: 1.188 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005462/0.5112, allocations: 119.7 kB / 0.6293 GB, free: 1.074 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.5112, allocations: 0 / 0.6293 GB, free: 1.074 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.96e-05/0.5112, allocations: 15.98 kB / 0.6293 GB, free: 1.059 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.5112, allocations: 4 kB / 0.6294 GB, free: 1.055 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.5113, allocations: 3.938 kB / 0.6294 GB, free: 1.051 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/0.5134, allocations: 1.201 MB / 0.6305 GB, free: 15.82 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002628/0.5137, allocations: 223.5 kB / 0.6307 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.599e-05/0.5138, allocations: 8 kB / 0.6307 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005791/0.5144, allocations: 79.89 kB / 0.6308 GB, free: 15.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.5146, allocations: 83.84 kB / 0.6309 GB, free: 15.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.021e-05/0.5146, allocations: 16 kB / 0.6309 GB, free: 15.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003774/0.515, allocations: 379.1 kB / 0.6313 GB, free: 15.03 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.515, allocations: 4 kB / 0.6313 GB, free: 15.03 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00278/0.5178, allocations: 1.112 MB / 0.6324 GB, free: 13.91 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.003049/0.5209, allocations: 0.9853 MB / 0.6333 GB, free: 13.01 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003089/0.524, allocations: 1.548 MB / 0.6348 GB, free: 11.36 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.524, allocations: 4 kB / 0.6348 GB, free: 11.36 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.5252, allocations: 0.58 MB / 0.6354 GB, free: 10.78 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001596/0.5268, allocations: 365 kB / 0.6358 GB, free: 10.43 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002524/0.5293, allocations: 1.687 MB / 0.6374 GB, free: 8.707 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005329/0.5299, allocations: 1.007 MB / 0.6384 GB, free: 7.672 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000671/0.5306, allocations: 412.8 kB / 0.6388 GB, free: 7.273 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002075/0.5308, allocations: 59.44 kB / 0.6388 GB, free: 7.215 MB / 478.1 MB Notification: Performance of SimCode: time 6.82e-07/0.5308, allocations: 0 / 0.6388 GB, free: 7.215 MB / 478.1 MB Notification: Performance of Templates: time 0.05418/0.585, allocations: 42.06 MB / 0.6799 GB, free: 13.14 MB / 0.5137 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.makefile (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 & ./ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe 2>&1)