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.0007511/0.0007511, allocations: 92.06 kB / 16.65 MB, free: 6.59 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.0008322/0.0008322, allocations: 182.2 kB / 17.56 MB, free: 6.203 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.383/1.383, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2638/0.2638, allocations: 48.78 MB / 320.8 MB, free: 11.11 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.0008684/0.0008685, allocations: 13.34 kB / 391.8 MB, free: 50.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1118, allocations: 60.26 MB / 452.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.339/0.4508, allocations: 104.6 MB / 0.5436 GB, free: 6.398 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01624/0.4671, allocations: 12.39 MB / 0.5557 GB, free: 6.215 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001855/0.469, allocations: 29.31 kB / 0.5558 GB, free: 6.211 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002127/0.4712, allocations: 468.2 kB / 0.5562 GB, free: 6.211 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002351/0.4736, allocations: 0.6073 MB / 0.5568 GB, free: 6.203 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01849/0.4921, allocations: 4.667 MB / 0.5614 GB, free: 6.004 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004436/0.4965, allocations: 2.674 MB / 0.564 GB, free: 5.625 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001208/0.4978, allocations: 0.5498 MB / 0.5645 GB, free: 5.551 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001372/0.4992, allocations: 0.6174 MB / 0.5651 GB, free: 5.484 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009807/0.5002, allocations: 0.6993 MB / 0.5658 GB, free: 5.445 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001461/0.5003, allocations: 49.06 kB / 0.5658 GB, free: 5.445 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01459/0.5149, allocations: 6.376 MB / 0.5721 GB, free: 5.242 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004537/0.5154, allocations: 152.1 kB / 0.5722 GB, free: 5.207 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001098/0.5165, allocations: 474.9 kB / 0.5727 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01196/0.5285, allocations: 4.384 MB / 0.577 GB, free: 3.137 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.5285, allocations: 0 / 0.577 GB, free: 3.137 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5286, allocations: 0 / 0.577 GB, free: 3.137 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.983e-05/0.5286, allocations: 4 kB / 0.577 GB, free: 3.133 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.005392/0.534, allocations: 1.736 MB / 0.5787 GB, free: 1.992 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.5341, allocations: 9.719 kB / 0.5787 GB, free: 1.992 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005491/0.5346, allocations: 121.5 kB / 0.5788 GB, free: 1.938 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.5357, allocations: 0.514 MB / 0.5793 GB, free: 1.566 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.963e-05/0.5358, allocations: 49.09 kB / 0.5793 GB, free: 1.566 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/0.536, allocations: 73.25 kB / 0.5794 GB, free: 1.562 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002704/0.5387, allocations: 0.9873 MB / 0.5804 GB, free: 1.184 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.808e-05/0.5388, allocations: 0 / 0.5804 GB, free: 1.184 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001/0.5389, allocations: 35.16 kB / 0.5804 GB, free: 1.184 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.768e-05/0.5389, allocations: 20.72 kB / 0.5804 GB, free: 1.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002629/0.5415, allocations: 0.8793 MB / 0.5813 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005675/0.5472, allocations: 4.384 MB / 0.5856 GB, free: 13.21 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002637/0.5499, allocations: 0.8402 MB / 0.5864 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009987/0.5509, allocations: 348.8 kB / 0.5867 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06601/0.617, allocations: 32.29 MB / 0.6182 GB, free: 14.41 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001896/0.6189, allocations: 0.5725 MB / 0.6188 GB, free: 13.91 MB / 462.1 MB Notification: Performance of pre-optimization done (n=44): time 3.076e-06/0.6189, allocations: 0 / 0.6188 GB, free: 13.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=44): time 0.004125/0.6231, allocations: 1.236 MB / 0.62 GB, free: 12.86 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.075e-05/0.6232, allocations: 95.31 kB / 0.6201 GB, free: 12.76 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00066/0.6238, allocations: 0.5389 MB / 0.6206 GB, free: 12.34 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.152e-05/0.6239, allocations: 37.58 kB / 0.6207 GB, free: 12.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000248/0.6242, allocations: 345.5 kB / 0.621 GB, free: 12.07 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.6243, allocations: 134 kB / 0.6211 GB, free: 11.96 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.401e-05/0.6244, allocations: 49.25 kB / 0.6212 GB, free: 11.93 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.6246, allocations: 380.5 kB / 0.6215 GB, free: 11.57 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001012/0.6256, allocations: 315.6 kB / 0.6218 GB, free: 11.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.6267, allocations: 387.1 kB / 0.6222 GB, free: 10.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002004/0.6287, allocations: 0.7592 MB / 0.6229 GB, free: 10.31 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.6287, allocations: 0 / 0.6229 GB, free: 10.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002393/0.6311, allocations: 0.9369 MB / 0.6238 GB, free: 9.48 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00015/0.6313, allocations: 258.2 kB / 0.6241 GB, free: 9.188 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.6313, allocations: 7.938 kB / 0.6241 GB, free: 9.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.6313, allocations: 7.938 kB / 0.6241 GB, free: 9.172 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000711/0.632, allocations: 155.6 kB / 0.6243 GB, free: 9.023 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.379e-05/0.6321, allocations: 4 kB / 0.6243 GB, free: 9.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009464/0.633, allocations: 178.2 kB / 0.6244 GB, free: 8.855 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.527e-05/0.6331, allocations: 23.48 kB / 0.6245 GB, free: 8.836 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.526e-06/0.6331, allocations: 4 kB / 0.6245 GB, free: 8.832 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002114/0.6352, allocations: 0.8494 MB / 0.6253 GB, free: 8.105 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.6352, allocations: 0 / 0.6253 GB, free: 8.105 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.374e-06/0.6352, allocations: 4 kB / 0.6253 GB, free: 8.102 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005965/0.6358, allocations: 155.6 kB / 0.6254 GB, free: 7.953 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.6359, allocations: 7.938 kB / 0.6254 GB, free: 7.945 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008953/0.6368, allocations: 165.5 kB / 0.6256 GB, free: 7.797 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.14e-05/0.6368, allocations: 23.92 kB / 0.6256 GB, free: 7.777 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.0003262/0.6371, allocations: 274.9 kB / 0.6259 GB, free: 7.539 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.6373, allocations: 67.16 kB / 0.626 GB, free: 7.473 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003254/0.6405, allocations: 1.946 MB / 0.6279 GB, free: 5.668 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.407e-05/0.6406, allocations: 23.95 kB / 0.6279 GB, free: 5.645 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.6406, allocations: 0 / 0.6279 GB, free: 5.645 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.6406, allocations: 8 kB / 0.6279 GB, free: 5.637 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002903/0.6435, allocations: 2.064 MB / 0.6299 GB, free: 3.523 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.6435, allocations: 7.938 kB / 0.6299 GB, free: 3.516 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005891/0.6441, allocations: 128 kB / 0.63 GB, free: 3.391 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.6441, allocations: 7.938 kB / 0.63 GB, free: 3.383 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.597e-05/0.6442, allocations: 11.98 kB / 0.63 GB, free: 3.371 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.654e-06/0.6442, allocations: 11.94 kB / 0.6301 GB, free: 3.359 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.6442, allocations: 0 / 0.6301 GB, free: 3.359 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002575/0.6468, allocations: 1.299 MB / 0.6313 GB, free: 2.031 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000428/0.6472, allocations: 219.5 kB / 0.6315 GB, free: 1.797 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.6474, allocations: 16 kB / 0.6316 GB, free: 1.781 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009072/0.6483, allocations: 147.6 kB / 0.6317 GB, free: 1.637 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002518/0.6485, allocations: 83.83 kB / 0.6318 GB, free: 1.555 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-05/0.6486, allocations: 16.86 kB / 0.6318 GB, free: 1.539 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004501/0.649, allocations: 383.1 kB / 0.6322 GB, free: 1.172 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6491, allocations: 0 / 0.6322 GB, free: 1.172 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004096/0.6532, allocations: 1.108 MB / 0.6332 GB, free: 64 kB / 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 (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.004847/0.658, allocations: 0.992 MB / 0.6342 GB, free: 15.13 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003845/0.6619, allocations: 1.69 MB / 0.6359 GB, free: 13.35 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.6619, allocations: 0 / 0.6359 GB, free: 13.35 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.6633, allocations: 0.6327 MB / 0.6365 GB, free: 12.72 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002333/0.6657, allocations: 348.5 kB / 0.6368 GB, free: 12.38 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003434/0.6691, allocations: 2.129 MB / 0.6389 GB, free: 10.21 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005452/0.6697, allocations: 1.003 MB / 0.6399 GB, free: 9.18 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008361/0.6705, allocations: 408.3 kB / 0.6403 GB, free: 8.777 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.6707, allocations: 55.42 kB / 0.6403 GB, free: 8.723 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/0.6707, allocations: 0 / 0.6403 GB, free: 8.723 MB / 478.1 MB Notification: Performance of Templates: time 0.0602/0.731, allocations: 40.82 MB / 0.6802 GB, free: 15.89 MB / 0.5137 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: