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.0008025/0.0008026, allocations: 87.17 kB / 16.31 MB, free: 6.461 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.0007905/0.0007905, allocations: 180.7 kB / 17.21 MB, free: 6.336 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.329/1.329, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2876/0.2876, allocations: 48.77 MB / 320.4 MB, free: 11.3 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.0004935/0.0004936, allocations: 13.91 kB / 391.2 MB, free: 50.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1194, allocations: 60.27 MB / 451.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.3722/0.4917, allocations: 98.03 MB / 0.5366 GB, free: 10.94 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01534/0.5071, allocations: 11.07 MB / 0.5474 GB, free: 10.83 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001309/0.5085, allocations: 25.16 kB / 0.5474 GB, free: 10.83 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00171/0.5102, allocations: 444.3 kB / 0.5478 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002048/0.5123, allocations: 0.6882 MB / 0.5485 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01969/0.532, allocations: 4.385 MB / 0.5528 GB, free: 10.69 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004588/0.5366, allocations: 2.235 MB / 0.555 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001173/0.5378, allocations: 0.5239 MB / 0.5555 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001778/0.5396, allocations: 0.6161 MB / 0.5561 GB, free: 10.42 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001236/0.5408, allocations: 0.6581 MB / 0.5567 GB, free: 10.28 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.541, allocations: 49.25 kB / 0.5568 GB, free: 10.28 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01663/0.5576, allocations: 6.059 MB / 0.5627 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003974/0.5581, allocations: 149.4 kB / 0.5628 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007797/0.5589, allocations: 194.3 kB / 0.563 GB, free: 10.08 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008033/0.5669, allocations: 2.939 MB / 0.5659 GB, free: 9.934 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.567, allocations: 0 / 0.5659 GB, free: 9.934 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.567, allocations: 0 / 0.5659 GB, free: 9.934 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.531e-05/0.567, allocations: 0 / 0.5659 GB, free: 9.934 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.005772/0.5728, allocations: 1.754 MB / 0.5676 GB, free: 8.805 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.5729, allocations: 9 kB / 0.5676 GB, free: 8.805 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003082/0.5732, allocations: 123.7 kB / 0.5677 GB, free: 8.75 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006596/0.5738, allocations: 0.4951 MB / 0.5682 GB, free: 8.398 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.341e-05/0.5739, allocations: 49.48 kB / 0.5683 GB, free: 8.398 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.61e-05/0.574, allocations: 72.3 kB / 0.5683 GB, free: 8.395 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.5759, allocations: 0.9764 MB / 0.5693 GB, free: 8.023 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.5759, allocations: 3.406 kB / 0.5693 GB, free: 8.023 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.138e-05/0.576, allocations: 24.62 kB / 0.5693 GB, free: 8.023 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.576, allocations: 15.84 kB / 0.5693 GB, free: 8.023 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002183/0.5782, allocations: 0.8825 MB / 0.5702 GB, free: 7.82 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00349/0.5817, allocations: 4.396 MB / 0.5745 GB, free: 4.051 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002067/0.5838, allocations: 0.8231 MB / 0.5753 GB, free: 3.828 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007694/0.5846, allocations: 351.1 kB / 0.5756 GB, free: 3.738 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05644/0.641, allocations: 32.29 MB / 0.6072 GB, free: 8.082 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001628/0.6427, allocations: 0.573 MB / 0.6077 GB, free: 7.582 MB / 446.1 MB Notification: Performance of pre-optimization done (n=44): time 2.835e-06/0.6427, allocations: 0 / 0.6077 GB, free: 7.582 MB / 446.1 MB Notification: Performance of matching and sorting (n=44): time 0.003484/0.6462, allocations: 1.23 MB / 0.6089 GB, free: 6.539 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.181e-05/0.6463, allocations: 96.81 kB / 0.609 GB, free: 6.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005959/0.6469, allocations: 0.5302 MB / 0.6095 GB, free: 6.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.178e-05/0.647, allocations: 40.94 kB / 0.6096 GB, free: 5.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002276/0.6472, allocations: 347.2 kB / 0.6099 GB, free: 5.754 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.6473, allocations: 141.3 kB / 0.61 GB, free: 5.637 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.6474, allocations: 11.19 kB / 0.61 GB, free: 5.633 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.6475, allocations: 371.8 kB / 0.6104 GB, free: 5.289 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008176/0.6483, allocations: 318.1 kB / 0.6107 GB, free: 5.039 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000824/0.6492, allocations: 387.4 kB / 0.6111 GB, free: 4.703 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008276/0.65, allocations: 423.8 kB / 0.6115 GB, free: 4.336 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.65, allocations: 4 kB / 0.6115 GB, free: 4.332 MB / 446.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001998/0.652, allocations: 0.9338 MB / 0.6124 GB, free: 3.512 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001449/0.6522, allocations: 261.7 kB / 0.6126 GB, free: 3.215 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.6522, allocations: 0 / 0.6126 GB, free: 3.215 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.6522, allocations: 4 kB / 0.6126 GB, free: 3.211 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006266/0.6528, allocations: 153.6 kB / 0.6128 GB, free: 3.066 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.6529, allocations: 7.984 kB / 0.6128 GB, free: 3.059 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008228/0.6537, allocations: 167.8 kB / 0.613 GB, free: 2.902 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.713e-05/0.6538, allocations: 27.23 kB / 0.613 GB, free: 2.879 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.644e-06/0.6538, allocations: 4 kB / 0.613 GB, free: 2.875 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00178/0.6556, allocations: 0.8427 MB / 0.6138 GB, free: 2.156 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.6556, allocations: 6.734 kB / 0.6138 GB, free: 2.152 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.673e-06/0.6556, allocations: 7.984 kB / 0.6138 GB, free: 2.145 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005153/0.6561, allocations: 156.1 kB / 0.614 GB, free: 2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.6561, allocations: 11.95 kB / 0.614 GB, free: 1.988 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006853/0.6568, allocations: 167.8 kB / 0.6141 GB, free: 1.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/0.6569, allocations: 18.56 kB / 0.6142 GB, free: 1.82 MB / 446.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 ($whenCondition4,$whenCondition3,$PRE.Sine1.T_start,Sine1.T_start,$PRE.Sine1.count,Sine1.count,$PRE.Sine2.T_start,Sine2.T_start,$PRE.Sine2.count,Sine2.count,$whenCondition2,$whenCondition1,$PRE.Sine3.T_start,Sine3.T_start,$PRE.Sine3.count,Sine3.count,$PRE.Sine4.T_start,Sine4.T_start,$PRE.Sine4.count,Sine4.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003191/0.6572, allocations: 265.8 kB / 0.6144 GB, free: 1.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.144e-05/0.6573, allocations: 75.14 kB / 0.6145 GB, free: 1.516 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002648/0.6599, allocations: 1.934 MB / 0.6164 GB, free: 172 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.576e-05/0.66, allocations: 26.64 kB / 0.6164 GB, free: 152 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.66, allocations: 3.953 kB / 0.6164 GB, free: 148 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.66, allocations: 0 / 0.6164 GB, free: 148 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002644/0.6627, allocations: 2.067 MB / 0.6184 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.6627, allocations: 3.938 kB / 0.6184 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005229/0.6632, allocations: 135.1 kB / 0.6186 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/0.6632, allocations: 10.83 kB / 0.6186 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.919e-05/0.6633, allocations: 14.45 kB / 0.6186 GB, free: 14.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.6633, allocations: 0 / 0.6186 GB, free: 14.51 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.6633, allocations: 4 kB / 0.6186 GB, free: 14.51 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.6656, allocations: 1.293 MB / 0.6199 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003563/0.6659, allocations: 222.2 kB / 0.6201 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.782e-05/0.666, allocations: 10.31 kB / 0.6201 GB, free: 13.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006894/0.6667, allocations: 150.3 kB / 0.6202 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002356/0.667, allocations: 84.38 kB / 0.6203 GB, free: 13.06 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-05/0.667, allocations: 18.8 kB / 0.6203 GB, free: 13.05 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004185/0.6674, allocations: 377.6 kB / 0.6207 GB, free: 12.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6674, allocations: 0 / 0.6207 GB, free: 12.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005166/0.6726, allocations: 1.112 MB / 0.6218 GB, free: 11.7 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006459/0.6791, allocations: 0.9848 MB / 0.6227 GB, free: 10.81 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003671/0.6828, allocations: 1.682 MB / 0.6244 GB, free: 9.305 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.6828, allocations: 0 / 0.6244 GB, free: 9.305 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001341/0.6842, allocations: 0.6348 MB / 0.625 GB, free: 8.879 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.6863, allocations: 357.3 kB / 0.6253 GB, free: 8.594 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003655/0.69, allocations: 2.039 MB / 0.6273 GB, free: 6.746 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006077/0.6906, allocations: 1.012 MB / 0.6283 GB, free: 5.711 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008627/0.6915, allocations: 403 kB / 0.6287 GB, free: 5.32 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/0.6917, allocations: 58.67 kB / 0.6287 GB, free: 5.266 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6917, allocations: 0 / 0.6287 GB, free: 5.266 MB / 462.1 MB Notification: Performance of Templates: time 0.07783/0.7696, allocations: 41.01 MB / 0.6688 GB, free: 12.32 MB / 0.4981 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: