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.00129/0.00129, allocations: 95.55 kB / 16.3 MB, free: 5.992 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.001362/0.001362, allocations: 177 kB / 17.19 MB, free: 5.91 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.803/1.803, allocations: 205.4 MB / 223.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.42/0.42, allocations: 48.77 MB / 320.4 MB, free: 3.84 MB / 254.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.0005801/0.0005804, allocations: 12 kB / 391.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1419, allocations: 60.26 MB / 451.4 MB, free: 1.945 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.2746/0.4165, allocations: 88.11 MB / 0.5269 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01452/0.4311, allocations: 10.28 MB / 0.5369 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001663/0.4328, allocations: 23.81 kB / 0.5369 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00215/0.435, allocations: 469.7 kB / 0.5374 GB, free: 10.47 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001934/0.4369, allocations: 0.5686 MB / 0.5379 GB, free: 9.898 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01722/0.4542, allocations: 4.496 MB / 0.5423 GB, free: 5.418 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002755/0.457, allocations: 1.067 MB / 0.5434 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001035/0.458, allocations: 0.5465 MB / 0.5439 GB, free: 3.797 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0011/0.4591, allocations: 0.5334 MB / 0.5444 GB, free: 3.262 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006214/0.4598, allocations: 490.1 kB / 0.5449 GB, free: 2.781 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.992e-05/0.4599, allocations: 51.98 kB / 0.5449 GB, free: 2.73 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01271/0.4726, allocations: 6.266 MB / 0.551 GB, free: 12.46 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003243/0.473, allocations: 147.4 kB / 0.5512 GB, free: 12.31 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004851/0.4735, allocations: 193.3 kB / 0.5514 GB, free: 12.12 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007015/0.4805, allocations: 2.919 MB / 0.5542 GB, free: 9.195 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.4805, allocations: 0 / 0.5542 GB, free: 9.195 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4805, allocations: 0 / 0.5542 GB, free: 9.195 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.4806, allocations: 0 / 0.5542 GB, free: 9.195 MB / 430.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.005875/0.4864, allocations: 1.741 MB / 0.5559 GB, free: 7.379 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.4865, allocations: 12.03 kB / 0.5559 GB, free: 7.367 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004401/0.487, allocations: 126.8 kB / 0.5561 GB, free: 7.242 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007639/0.4877, allocations: 0.4916 MB / 0.5565 GB, free: 6.711 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.966e-05/0.4878, allocations: 53.31 kB / 0.5566 GB, free: 6.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.4879, allocations: 68 kB / 0.5566 GB, free: 6.594 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002235/0.4901, allocations: 0.9731 MB / 0.5576 GB, free: 5.57 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.4902, allocations: 3.984 kB / 0.5576 GB, free: 5.566 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.069e-05/0.4903, allocations: 28 kB / 0.5576 GB, free: 5.539 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/0.4903, allocations: 16 kB / 0.5576 GB, free: 5.523 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002466/0.4928, allocations: 0.8831 MB / 0.5585 GB, free: 4.641 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004976/0.4977, allocations: 4.378 MB / 0.5628 GB, free: 15.82 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002528/0.5003, allocations: 0.8374 MB / 0.5636 GB, free: 14.96 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06497/0.5653, allocations: 32.29 MB / 0.5951 GB, free: 10.86 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001812/0.5672, allocations: 0.5726 MB / 0.5957 GB, free: 10.27 MB / 478.1 MB Notification: Performance of pre-optimization done (n=44): time 3.257e-06/0.5672, allocations: 0 / 0.5957 GB, free: 10.27 MB / 478.1 MB Notification: Performance of matching and sorting (n=44): time 0.004293/0.5715, allocations: 1.238 MB / 0.5969 GB, free: 9.027 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/0.5716, allocations: 93.05 kB / 0.597 GB, free: 8.918 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006534/0.5723, allocations: 0.5353 MB / 0.5975 GB, free: 8.375 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.262e-05/0.5724, allocations: 37.7 kB / 0.5976 GB, free: 8.332 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/0.5726, allocations: 348.5 kB / 0.5979 GB, free: 7.988 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.5728, allocations: 138 kB / 0.598 GB, free: 7.852 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.598e-05/0.5728, allocations: 12 kB / 0.598 GB, free: 7.84 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.573, allocations: 378.8 kB / 0.5984 GB, free: 7.461 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009297/0.5739, allocations: 312.8 kB / 0.5987 GB, free: 7.156 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009733/0.5749, allocations: 383.7 kB / 0.5991 GB, free: 6.758 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009713/0.5759, allocations: 428 kB / 0.5995 GB, free: 6.316 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.5759, allocations: 0 / 0.5995 GB, free: 6.316 MB / 478.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002239/0.5781, allocations: 0.9325 MB / 0.6004 GB, free: 5.352 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003654/0.5785, allocations: 0.8152 MB / 0.6012 GB, free: 4.457 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.5785, allocations: 0 / 0.6012 GB, free: 4.457 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.933e-05/0.5786, allocations: 4 kB / 0.6012 GB, free: 4.453 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007/0.5793, allocations: 163.8 kB / 0.6013 GB, free: 4.293 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/0.5793, allocations: 8 kB / 0.6013 GB, free: 4.285 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009262/0.5802, allocations: 167.3 kB / 0.6015 GB, free: 4.121 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.245e-05/0.5803, allocations: 20.81 kB / 0.6015 GB, free: 4.102 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.5804, allocations: 4 kB / 0.6015 GB, free: 4.098 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002034/0.5824, allocations: 0.8495 MB / 0.6023 GB, free: 3.223 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.5824, allocations: 4.188 kB / 0.6024 GB, free: 3.219 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.067e-06/0.5824, allocations: 7.953 kB / 0.6024 GB, free: 3.211 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005792/0.583, allocations: 155.8 kB / 0.6025 GB, free: 3.059 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.583, allocations: 5.406 kB / 0.6025 GB, free: 3.055 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008939/0.584, allocations: 163.4 kB / 0.6027 GB, free: 2.895 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.955e-05/0.584, allocations: 25.19 kB / 0.6027 GB, free: 2.871 MB / 478.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.0003875/0.5844, allocations: 279.1 kB / 0.603 GB, free: 2.59 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.5846, allocations: 67.16 kB / 0.603 GB, free: 2.523 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003147/0.5877, allocations: 1.936 MB / 0.6049 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.478e-05/0.5878, allocations: 23.97 kB / 0.6049 GB, free: 0.543 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.5878, allocations: 0 / 0.6049 GB, free: 0.543 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.5878, allocations: 7.984 kB / 0.6049 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003064/0.5909, allocations: 2.054 MB / 0.607 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.5909, allocations: 3.953 kB / 0.607 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005866/0.5915, allocations: 139.9 kB / 0.6071 GB, free: 14.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.387e-06/0.5915, allocations: 8 kB / 0.6071 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.899e-05/0.5915, allocations: 10.19 kB / 0.6071 GB, free: 14.26 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-06/0.5916, allocations: 4 kB / 0.6071 GB, free: 14.26 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.5916, allocations: 0 / 0.6071 GB, free: 14.26 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0025/0.5941, allocations: 1.331 MB / 0.6084 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000393/0.5945, allocations: 231.4 kB / 0.6086 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/0.5946, allocations: 12 kB / 0.6086 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008168/0.5954, allocations: 131.8 kB / 0.6088 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.5957, allocations: 95.81 kB / 0.6089 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-05/0.5957, allocations: 20 kB / 0.6089 GB, free: 12.38 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004401/0.5962, allocations: 379 kB / 0.6092 GB, free: 12.01 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5962, allocations: 0 / 0.6092 GB, free: 12.01 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003698/0.5999, allocations: 1.116 MB / 0.6103 GB, free: 10.89 MB / 494.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.004493/0.6044, allocations: 0.9735 MB / 0.6113 GB, free: 9.914 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003776/0.6082, allocations: 1.687 MB / 0.6129 GB, free: 8.133 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.6082, allocations: 0 / 0.6129 GB, free: 8.133 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001393/0.6096, allocations: 0.6361 MB / 0.6135 GB, free: 7.496 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.6116, allocations: 342.5 kB / 0.6139 GB, free: 7.172 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/0.6149, allocations: 2.048 MB / 0.6159 GB, free: 5.086 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006033/0.6155, allocations: 1.031 MB / 0.6169 GB, free: 4.027 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009219/0.6165, allocations: 398.7 kB / 0.6173 GB, free: 3.641 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001988/0.6167, allocations: 55.36 kB / 0.6173 GB, free: 3.586 MB / 494.1 MB Notification: Performance of SimCode: time 1.182e-06/0.6167, allocations: 0 / 0.6173 GB, free: 3.586 MB / 494.1 MB Notification: Performance of Templates: time 0.2514/0.868, allocations: 40.99 MB / 0.6573 GB, free: 162.1 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: