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.001069/0.001069, allocations: 100 kB / 16.5 MB, free: 6.645 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.001008/0.001008, allocations: 191.1 kB / 17.42 MB, free: 6.07 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.347/1.347, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2774/0.2774, allocations: 48.84 MB / 319.5 MB, free: 11.32 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.001385/0.001385, allocations: 62.47 kB / 389.3 MB, free: 49.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.122, allocations: 59.17 MB / 448.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.3555/0.4776, allocations: 106.3 MB / 0.5418 GB, free: 5.91 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01589/0.4935, allocations: 12.58 MB / 0.5541 GB, free: 5.668 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001277/0.4949, allocations: 28.19 kB / 0.5541 GB, free: 5.668 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001607/0.4965, allocations: 469.5 kB / 0.5546 GB, free: 5.668 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001306/0.4979, allocations: 0.6111 MB / 0.5552 GB, free: 5.656 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0173/0.5152, allocations: 4.666 MB / 0.5597 GB, free: 5.508 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004356/0.5195, allocations: 2.671 MB / 0.5623 GB, free: 5.469 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00146/0.521, allocations: 0.5712 MB / 0.5629 GB, free: 5.418 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001929/0.523, allocations: 0.6342 MB / 0.5635 GB, free: 5.336 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001196/0.5242, allocations: 0.7087 MB / 0.5642 GB, free: 5.219 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.5243, allocations: 55.62 kB / 0.5643 GB, free: 5.219 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01416/0.5385, allocations: 6.377 MB / 0.5705 GB, free: 5.031 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003311/0.5388, allocations: 171.6 kB / 0.5707 GB, free: 4.957 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009682/0.5398, allocations: 467 kB / 0.5711 GB, free: 4.785 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01252/0.5523, allocations: 4.41 MB / 0.5754 GB, free: 2.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.5524, allocations: 0 / 0.5754 GB, free: 2.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5524, allocations: 0 / 0.5754 GB, free: 2.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.5524, allocations: 3.938 kB / 0.5754 GB, free: 2.977 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.005059/0.5575, allocations: 1.843 MB / 0.5772 GB, free: 1.809 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.5575, allocations: 8.281 kB / 0.5772 GB, free: 1.809 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003812/0.5579, allocations: 124.3 kB / 0.5773 GB, free: 1.754 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006148/0.5586, allocations: 0.512 MB / 0.5778 GB, free: 1.387 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.416e-05/0.5586, allocations: 52.5 kB / 0.5779 GB, free: 1.387 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.991e-05/0.5587, allocations: 67.22 kB / 0.578 GB, free: 1.383 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002081/0.5608, allocations: 0.9403 MB / 0.5789 GB, free: 1.012 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.5608, allocations: 0 / 0.5789 GB, free: 1.012 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.097e-05/0.5609, allocations: 33.42 kB / 0.5789 GB, free: 1.008 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.5609, allocations: 24.12 kB / 0.5789 GB, free: 1 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002319/0.5633, allocations: 0.7842 MB / 0.5797 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0045/0.5678, allocations: 4.34 MB / 0.5839 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002378/0.5702, allocations: 0.7346 MB / 0.5847 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008745/0.5711, allocations: 297 kB / 0.5849 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06149/0.6326, allocations: 31.98 MB / 0.6162 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001708/0.6343, allocations: 0.526 MB / 0.6167 GB, free: 12.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=44): time 3.056e-06/0.6343, allocations: 0 / 0.6167 GB, free: 12.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=44): time 0.003682/0.638, allocations: 1.097 MB / 0.6178 GB, free: 11.89 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.55e-05/0.6381, allocations: 84.8 kB / 0.6178 GB, free: 11.79 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007027/0.6388, allocations: 0.5432 MB / 0.6184 GB, free: 11.37 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.295e-05/0.6389, allocations: 36.02 kB / 0.6184 GB, free: 11.33 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002788/0.6392, allocations: 355.5 kB / 0.6187 GB, free: 11.04 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.6393, allocations: 137 kB / 0.6189 GB, free: 10.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001758/0.6395, allocations: 94.11 kB / 0.619 GB, free: 10.81 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.6396, allocations: 370.8 kB / 0.6193 GB, free: 10.44 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000867/0.6405, allocations: 274.5 kB / 0.6196 GB, free: 10.17 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008948/0.6414, allocations: 335.7 kB / 0.6199 GB, free: 9.812 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001781/0.6432, allocations: 0.6689 MB / 0.6205 GB, free: 9.102 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.6432, allocations: 4 kB / 0.6205 GB, free: 9.098 MB / 462.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002104/0.6453, allocations: 0.8297 MB / 0.6214 GB, free: 8.238 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.617e-05/0.6454, allocations: 122.8 kB / 0.6215 GB, free: 8.094 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.6455, allocations: 0 / 0.6215 GB, free: 8.094 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.6455, allocations: 4.188 kB / 0.6215 GB, free: 8.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006591/0.6461, allocations: 139.8 kB / 0.6216 GB, free: 7.953 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.6462, allocations: 4 kB / 0.6216 GB, free: 7.949 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008571/0.647, allocations: 147.3 kB / 0.6218 GB, free: 7.805 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.046e-05/0.6471, allocations: 16 kB / 0.6218 GB, free: 7.789 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009181/0.648, allocations: 380.9 kB / 0.6221 GB, free: 7.41 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008063/0.6488, allocations: 351 kB / 0.6225 GB, free: 7.035 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001516/0.6504, allocations: 0.651 MB / 0.6231 GB, free: 6.324 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.014e-06/0.6504, allocations: 4 kB / 0.6231 GB, free: 6.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=58) (initialization_lambda0): time 0.001926/0.6523, allocations: 0.8198 MB / 0.6239 GB, free: 5.469 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.698e-05/0.6524, allocations: 122.7 kB / 0.624 GB, free: 5.324 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.6524, allocations: 0 / 0.624 GB, free: 5.324 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.6524, allocations: 8 kB / 0.624 GB, free: 5.316 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005411/0.653, allocations: 123.8 kB / 0.6242 GB, free: 5.195 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.653, allocations: 7.984 kB / 0.6242 GB, free: 5.188 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007686/0.6538, allocations: 131.6 kB / 0.6243 GB, free: 5.059 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.24e-05/0.6538, allocations: 23.98 kB / 0.6243 GB, free: 5.035 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.000219/0.654, allocations: 222.1 kB / 0.6245 GB, free: 4.809 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.235e-05/0.6541, allocations: 71.16 kB / 0.6246 GB, free: 4.738 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002993/0.6571, allocations: 1.856 MB / 0.6264 GB, free: 2.871 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.198e-05/0.6572, allocations: 19.97 kB / 0.6264 GB, free: 2.852 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.6572, allocations: 0 / 0.6264 GB, free: 2.852 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.6572, allocations: 7.984 kB / 0.6264 GB, free: 2.844 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002812/0.66, allocations: 2.011 MB / 0.6284 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.66, allocations: 0 / 0.6284 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005654/0.6606, allocations: 115.8 kB / 0.6285 GB, free: 0.6719 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.6606, allocations: 4.062 kB / 0.6285 GB, free: 0.668 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.932e-05/0.6607, allocations: 11.98 kB / 0.6285 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.117e-06/0.6607, allocations: 7.984 kB / 0.6285 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.553e-06/0.6607, allocations: 13.06 kB / 0.6285 GB, free: 0.6367 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002322/0.663, allocations: 1.197 MB / 0.6297 GB, free: 15.41 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003126/0.6634, allocations: 219.5 kB / 0.6299 GB, free: 15.18 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.711e-05/0.6635, allocations: 15.98 kB / 0.6299 GB, free: 15.16 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007288/0.6642, allocations: 115.8 kB / 0.63 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/0.6644, allocations: 83.81 kB / 0.6301 GB, free: 14.97 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.664e-05/0.6645, allocations: 16 kB / 0.6301 GB, free: 14.95 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004025/0.6649, allocations: 387.1 kB / 0.6305 GB, free: 14.58 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6649, allocations: 3.938 kB / 0.6305 GB, free: 14.58 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003492/0.6684, allocations: 1.116 MB / 0.6316 GB, free: 13.46 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.003525/0.6719, allocations: 0.9859 MB / 0.6326 GB, free: 12.55 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003538/0.6755, allocations: 1.546 MB / 0.6341 GB, free: 10.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.6755, allocations: 128 / 0.6341 GB, free: 10.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001275/0.6768, allocations: 0.5865 MB / 0.6346 GB, free: 10.31 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/0.6787, allocations: 355 kB / 0.635 GB, free: 9.965 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003139/0.6819, allocations: 2.103 MB / 0.637 GB, free: 7.82 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006055/0.6825, allocations: 1.011 MB / 0.638 GB, free: 6.785 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009453/0.6834, allocations: 404.3 kB / 0.6384 GB, free: 6.387 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002062/0.6837, allocations: 59.42 kB / 0.6385 GB, free: 6.328 MB / 478.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6837, allocations: 0 / 0.6385 GB, free: 6.328 MB / 478.1 MB Notification: Performance of Templates: time 0.05745/0.7411, allocations: 40.89 MB / 0.6784 GB, free: 13.42 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)