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.001065/0.001065, allocations: 109.5 kB / 16.62 MB, free: 6.816 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.001067/0.001067, allocations: 189.8 kB / 17.55 MB, free: 5.93 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.359/1.359, allocations: 205.1 MB / 223.4 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2828/0.2828, allocations: 48.83 MB / 319.6 MB, free: 11.26 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.001293/0.001293, allocations: 62.17 kB / 389.5 MB, free: 48.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09383/0.09514, allocations: 59.17 MB / 448.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.2998/0.3949, allocations: 105.3 MB / 0.5411 GB, free: 5.488 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01611/0.4111, allocations: 11.88 MB / 0.5527 GB, free: 5.324 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001491/0.4126, allocations: 26.47 kB / 0.5527 GB, free: 5.324 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00165/0.4144, allocations: 486.6 kB / 0.5531 GB, free: 5.32 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001505/0.4159, allocations: 0.5906 MB / 0.5537 GB, free: 5.289 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01617/0.4321, allocations: 5.067 MB / 0.5587 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002723/0.4348, allocations: 1.829 MB / 0.5605 GB, free: 5.098 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001191/0.436, allocations: 0.6503 MB / 0.5611 GB, free: 5.047 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001456/0.4375, allocations: 0.7073 MB / 0.5618 GB, free: 4.969 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000941/0.4384, allocations: 0.7125 MB / 0.5625 GB, free: 4.848 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.4386, allocations: 79.25 kB / 0.5626 GB, free: 4.848 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0129/0.4515, allocations: 6.365 MB / 0.5688 GB, free: 4.797 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002806/0.4518, allocations: 188.3 kB / 0.569 GB, free: 4.766 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000881/0.4527, allocations: 486.3 kB / 0.5694 GB, free: 4.637 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01011/0.4628, allocations: 4.439 MB / 0.5737 GB, free: 3.219 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.4629, allocations: 3.562 kB / 0.5738 GB, free: 3.219 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4629, allocations: 0 / 0.5738 GB, free: 3.219 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.4629, allocations: 4 kB / 0.5738 GB, free: 3.215 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.004706/0.4676, allocations: 1.835 MB / 0.5755 GB, free: 2.051 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.4677, allocations: 20.66 kB / 0.5756 GB, free: 2.039 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003432/0.468, allocations: 119 kB / 0.5757 GB, free: 1.988 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005874/0.4686, allocations: 0.5131 MB / 0.5762 GB, free: 1.633 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.719e-05/0.4687, allocations: 48.25 kB / 0.5762 GB, free: 1.633 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.543e-05/0.4688, allocations: 74 kB / 0.5763 GB, free: 1.629 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002111/0.4709, allocations: 0.9299 MB / 0.5772 GB, free: 1.266 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/0.4709, allocations: 10 kB / 0.5772 GB, free: 1.258 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.52e-05/0.471, allocations: 32.64 kB / 0.5772 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.935e-05/0.4711, allocations: 16.72 kB / 0.5773 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002305/0.4734, allocations: 0.7868 MB / 0.578 GB, free: 1.059 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004155/0.4775, allocations: 4.347 MB / 0.5823 GB, free: 13.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002308/0.4799, allocations: 0.7307 MB / 0.583 GB, free: 13.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008364/0.4807, allocations: 299.6 kB / 0.5833 GB, free: 13 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06094/0.5417, allocations: 31.98 MB / 0.6145 GB, free: 13.99 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00166/0.5434, allocations: 0.5253 MB / 0.615 GB, free: 13.54 MB / 462.1 MB Notification: Performance of pre-optimization done (n=44): time 2.374e-06/0.5434, allocations: 0 / 0.615 GB, free: 13.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=44): time 0.003729/0.5471, allocations: 1.097 MB / 0.6161 GB, free: 12.63 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.36e-05/0.5472, allocations: 85.11 kB / 0.6162 GB, free: 12.53 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005961/0.5478, allocations: 0.5401 MB / 0.6167 GB, free: 12.11 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.327e-05/0.5479, allocations: 44.83 kB / 0.6167 GB, free: 12.07 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/0.5482, allocations: 341.1 kB / 0.6171 GB, free: 11.84 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.5483, allocations: 145.6 kB / 0.6172 GB, free: 11.73 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.5485, allocations: 93.86 kB / 0.6173 GB, free: 11.66 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.5486, allocations: 379.5 kB / 0.6177 GB, free: 11.31 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008385/0.5495, allocations: 268.5 kB / 0.6179 GB, free: 11.07 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000898/0.5504, allocations: 339.7 kB / 0.6182 GB, free: 10.72 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001655/0.552, allocations: 0.6646 MB / 0.6189 GB, free: 10.01 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.5521, allocations: 0 / 0.6189 GB, free: 10.01 MB / 462.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002237/0.5543, allocations: 0.8298 MB / 0.6197 GB, free: 9.148 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.882e-05/0.5544, allocations: 118.8 kB / 0.6198 GB, free: 9.008 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.5544, allocations: 4 kB / 0.6198 GB, free: 9.004 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.706e-05/0.5545, allocations: 4 kB / 0.6198 GB, free: 9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006699/0.5551, allocations: 135.7 kB / 0.6199 GB, free: 8.867 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.5552, allocations: 8.188 kB / 0.62 GB, free: 8.859 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009816/0.5562, allocations: 147.3 kB / 0.6201 GB, free: 8.715 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.856e-05/0.5562, allocations: 21.69 kB / 0.6201 GB, free: 8.695 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00104/0.5573, allocations: 384.9 kB / 0.6205 GB, free: 8.309 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008223/0.5581, allocations: 344.2 kB / 0.6208 GB, free: 7.941 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001506/0.5596, allocations: 0.6508 MB / 0.6214 GB, free: 7.23 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.635e-06/0.5596, allocations: 0 / 0.6214 GB, free: 7.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=58) (initialization_lambda0): time 0.002024/0.5617, allocations: 0.8211 MB / 0.6222 GB, free: 6.379 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.564e-05/0.5618, allocations: 114.8 kB / 0.6224 GB, free: 6.242 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.5618, allocations: 4 kB / 0.6224 GB, free: 6.238 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.115e-06/0.5618, allocations: 4 kB / 0.6224 GB, free: 6.234 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005908/0.5624, allocations: 143.9 kB / 0.6225 GB, free: 6.094 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.5624, allocations: 4 kB / 0.6225 GB, free: 6.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007828/0.5632, allocations: 123.6 kB / 0.6226 GB, free: 5.969 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.282e-05/0.5633, allocations: 27.98 kB / 0.6227 GB, free: 5.941 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.0002607/0.5635, allocations: 222.1 kB / 0.6229 GB, free: 5.715 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.5636, allocations: 75.14 kB / 0.6229 GB, free: 5.641 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002936/0.5666, allocations: 1.852 MB / 0.6247 GB, free: 3.777 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-05/0.5666, allocations: 19.97 kB / 0.6248 GB, free: 3.758 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.5666, allocations: 0 / 0.6248 GB, free: 3.758 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.5666, allocations: 3.984 kB / 0.6248 GB, free: 3.754 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002952/0.5696, allocations: 2.016 MB / 0.6267 GB, free: 1.688 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.5696, allocations: 7.359 kB / 0.6267 GB, free: 1.684 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005639/0.5702, allocations: 111.9 kB / 0.6268 GB, free: 1.574 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.5702, allocations: 4 kB / 0.6269 GB, free: 1.57 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.811e-05/0.5703, allocations: 11.98 kB / 0.6269 GB, free: 1.559 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.221e-06/0.5703, allocations: 4 kB / 0.6269 GB, free: 1.555 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.5703, allocations: 3.938 kB / 0.6269 GB, free: 1.551 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002238/0.5725, allocations: 1.205 MB / 0.628 GB, free: 328 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002998/0.5728, allocations: 215.6 kB / 0.6283 GB, free: 92 kB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.475e-05/0.5729, allocations: 19.98 kB / 0.6283 GB, free: 72 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007381/0.5737, allocations: 115.7 kB / 0.6284 GB, free: 15.96 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002216/0.5739, allocations: 83.84 kB / 0.6285 GB, free: 15.88 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.864e-05/0.574, allocations: 12 kB / 0.6285 GB, free: 15.86 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004306/0.5744, allocations: 387.1 kB / 0.6288 GB, free: 15.49 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5744, allocations: 4 kB / 0.6288 GB, free: 15.48 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003228/0.5776, allocations: 1.112 MB / 0.6299 GB, free: 14.37 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.004077/0.5817, allocations: 0.9918 MB / 0.6309 GB, free: 13.45 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003741/0.5855, allocations: 1.567 MB / 0.6324 GB, free: 11.78 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.5855, allocations: 0 / 0.6324 GB, free: 11.78 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001291/0.5868, allocations: 0.5956 MB / 0.633 GB, free: 11.19 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/0.5887, allocations: 368.9 kB / 0.6334 GB, free: 10.84 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00294/0.5917, allocations: 2.106 MB / 0.6354 GB, free: 8.688 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005155/0.5922, allocations: 1.007 MB / 0.6364 GB, free: 7.652 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008468/0.5931, allocations: 404.4 kB / 0.6368 GB, free: 7.258 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002186/0.5933, allocations: 63.42 kB / 0.6369 GB, free: 7.195 MB / 478.1 MB Notification: Performance of SimCode: time 4.71e-07/0.5933, allocations: 0 / 0.6369 GB, free: 7.195 MB / 478.1 MB Notification: Performance of Templates: time 0.05706/0.6504, allocations: 41.63 MB / 0.6775 GB, free: 13.55 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 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe 2>&1)