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.001003/0.001004, 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.0009194/0.0009194, 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.47/1.47, 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.298/0.298, allocations: 48.83 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.001721/0.001721, allocations: 68.23 kB / 391.5 MB, free: 48.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.114, allocations: 59.16 MB / 450.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.4004/0.5145, allocations: 105.2 MB / 0.5428 GB, free: 5.531 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01575/0.5303, allocations: 11.69 MB / 0.5543 GB, free: 5.355 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001251/0.5316, allocations: 21.75 kB / 0.5543 GB, free: 5.355 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001579/0.5332, allocations: 0.5598 MB / 0.5548 GB, free: 5.352 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001587/0.5348, allocations: 0.6326 MB / 0.5554 GB, free: 5.34 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01996/0.5548, allocations: 5.697 MB / 0.561 GB, free: 5.191 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003677/0.5585, allocations: 1.82 MB / 0.5628 GB, free: 5.148 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001209/0.5597, allocations: 0.6761 MB / 0.5634 GB, free: 5.094 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001512/0.5613, allocations: 0.6956 MB / 0.5641 GB, free: 5.008 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008338/0.5621, allocations: 0.6898 MB / 0.5648 GB, free: 4.895 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.5622, allocations: 79.75 kB / 0.5649 GB, free: 4.895 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01547/0.5777, allocations: 6.448 MB / 0.5712 GB, free: 4.688 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003505/0.5781, allocations: 186 kB / 0.5713 GB, free: 4.617 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.5792, allocations: 484.8 kB / 0.5718 GB, free: 4.453 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01374/0.5929, allocations: 4.421 MB / 0.5761 GB, free: 2.672 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.593, allocations: 0 / 0.5761 GB, free: 2.672 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.593, allocations: 0 / 0.5761 GB, free: 2.672 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.593, allocations: 0 / 0.5761 GB, free: 2.672 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.005613/0.5986, allocations: 1.838 MB / 0.5779 GB, free: 1.504 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.5987, allocations: 16.11 kB / 0.5779 GB, free: 1.496 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003522/0.599, allocations: 123.7 kB / 0.5781 GB, free: 1.441 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007776/0.5998, allocations: 0.54 MB / 0.5786 GB, free: 1.074 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.762e-05/0.5999, allocations: 50.91 kB / 0.5786 GB, free: 1.074 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.796e-05/0.6, allocations: 73.39 kB / 0.5787 GB, free: 1.066 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001948/0.6019, allocations: 0.9353 MB / 0.5796 GB, free: 0.707 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.602, allocations: 0 / 0.5796 GB, free: 0.707 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.449e-05/0.602, allocations: 26.09 kB / 0.5796 GB, free: 0.707 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.02e-05/0.6021, allocations: 20.19 kB / 0.5797 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002248/0.6043, allocations: 0.7897 MB / 0.5804 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004304/0.6086, allocations: 4.344 MB / 0.5847 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002284/0.6109, allocations: 0.7413 MB / 0.5854 GB, free: 12.58 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008619/0.6118, allocations: 301.5 kB / 0.5857 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06294/0.6748, allocations: 32.12 MB / 0.6171 GB, free: 13.37 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001667/0.6765, allocations: 0.5268 MB / 0.6176 GB, free: 12.92 MB / 462.1 MB Notification: Performance of pre-optimization done (n=44): time 2.525e-06/0.6765, allocations: 0 / 0.6176 GB, free: 12.92 MB / 462.1 MB Notification: Performance of matching and sorting (n=44): time 0.003582/0.6801, allocations: 1.087 MB / 0.6186 GB, free: 12.02 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.59e-05/0.6801, allocations: 89.61 kB / 0.6187 GB, free: 11.91 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006151/0.6808, allocations: 0.5404 MB / 0.6192 GB, free: 11.49 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.834e-05/0.6808, allocations: 36.52 kB / 0.6193 GB, free: 11.45 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002659/0.6811, allocations: 356.6 kB / 0.6196 GB, free: 11.22 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.6812, allocations: 135.3 kB / 0.6198 GB, free: 11.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.6814, allocations: 94.11 kB / 0.6198 GB, free: 11 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.6816, allocations: 370.8 kB / 0.6202 GB, free: 10.63 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008263/0.6824, allocations: 274.5 kB / 0.6205 GB, free: 10.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008656/0.6833, allocations: 346 kB / 0.6208 GB, free: 10 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/0.685, allocations: 0.6557 MB / 0.6214 GB, free: 9.301 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.685, allocations: 3.938 kB / 0.6214 GB, free: 9.297 MB / 462.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001991/0.687, allocations: 0.8322 MB / 0.6222 GB, free: 8.434 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.558e-05/0.6871, allocations: 126.7 kB / 0.6224 GB, free: 8.285 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.6871, allocations: 0 / 0.6224 GB, free: 8.285 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.6871, allocations: 4 kB / 0.6224 GB, free: 8.281 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006548/0.6878, allocations: 143.9 kB / 0.6225 GB, free: 8.141 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.6878, allocations: 4 kB / 0.6225 GB, free: 8.137 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006469/0.6884, allocations: 111.3 kB / 0.6226 GB, free: 8.027 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.331e-05/0.6885, allocations: 20 kB / 0.6226 GB, free: 8.008 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008819/0.6894, allocations: 382.8 kB / 0.623 GB, free: 7.625 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007758/0.6902, allocations: 343.2 kB / 0.6233 GB, free: 7.254 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001472/0.6917, allocations: 0.6606 MB / 0.624 GB, free: 6.531 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.064e-06/0.6917, allocations: 4 kB / 0.624 GB, free: 6.527 MB / 462.1 MB Notification: Performance of matching and sorting (n=58) (initialization_lambda0): time 0.001794/0.6935, allocations: 0.8089 MB / 0.6248 GB, free: 5.688 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.537e-05/0.6936, allocations: 119.1 kB / 0.6249 GB, free: 5.547 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.6936, allocations: 8 kB / 0.6249 GB, free: 5.539 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.725e-06/0.6936, allocations: 4 kB / 0.6249 GB, free: 5.535 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005622/0.6942, allocations: 131.8 kB / 0.625 GB, free: 5.406 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.6942, allocations: 11.92 kB / 0.625 GB, free: 5.395 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006/0.6948, allocations: 99.53 kB / 0.6251 GB, free: 5.297 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.397e-05/0.6948, allocations: 20 kB / 0.6251 GB, free: 5.277 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.0002031/0.695, allocations: 226 kB / 0.6254 GB, free: 5.055 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.915e-05/0.6951, allocations: 63.25 kB / 0.6254 GB, free: 4.992 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002841/0.698, allocations: 1.848 MB / 0.6272 GB, free: 3.133 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-05/0.698, allocations: 23.91 kB / 0.6272 GB, free: 3.109 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.698, allocations: 0 / 0.6272 GB, free: 3.109 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.6981, allocations: 7.984 kB / 0.6273 GB, free: 3.102 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002585/0.7006, allocations: 2.013 MB / 0.6292 GB, free: 1.039 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.7007, allocations: 3.938 kB / 0.6292 GB, free: 1.035 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005463/0.7012, allocations: 121.6 kB / 0.6293 GB, free: 0.918 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.7012, allocations: 0 / 0.6293 GB, free: 0.918 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.825e-05/0.7013, allocations: 8 kB / 0.6293 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.7013, allocations: 4 kB / 0.6293 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.7013, allocations: 0 / 0.6293 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002189/0.7035, allocations: 1.209 MB / 0.6305 GB, free: 15.67 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002757/0.7038, allocations: 219.5 kB / 0.6307 GB, free: 15.43 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.482e-05/0.7039, allocations: 12 kB / 0.6307 GB, free: 15.42 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005774/0.7045, allocations: 79.89 kB / 0.6308 GB, free: 15.34 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.7047, allocations: 79.91 kB / 0.6309 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.886e-05/0.7047, allocations: 15.98 kB / 0.6309 GB, free: 15.25 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003923/0.7051, allocations: 383.1 kB / 0.6313 GB, free: 14.88 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7051, allocations: 4 kB / 0.6313 GB, free: 14.88 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003557/0.7087, allocations: 1.104 MB / 0.6324 GB, free: 13.77 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.003131/0.7118, allocations: 0.9929 MB / 0.6333 GB, free: 12.86 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00315/0.715, allocations: 1.552 MB / 0.6348 GB, free: 11.21 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.715, allocations: 4 kB / 0.6349 GB, free: 11.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001216/0.7162, allocations: 0.5839 MB / 0.6354 GB, free: 10.62 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/0.7179, allocations: 360.3 kB / 0.6358 GB, free: 10.28 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002637/0.7205, allocations: 1.683 MB / 0.6374 GB, free: 8.555 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005608/0.7211, allocations: 1.011 MB / 0.6384 GB, free: 7.516 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007061/0.7218, allocations: 409.2 kB / 0.6388 GB, free: 7.121 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.722, allocations: 63.42 kB / 0.6388 GB, free: 7.059 MB / 478.1 MB Notification: Performance of SimCode: time 7.82e-07/0.722, allocations: 0 / 0.6388 GB, free: 7.059 MB / 478.1 MB Notification: Performance of Templates: time 0.05661/0.7786, allocations: 42.05 MB / 0.6799 GB, free: 13 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 cvode -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe 2>&1)