Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.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.TestSplitRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev") translateModel(ThermoPower.Test.WaterComponents.TestSplitRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007707/0.0007707, allocations: 88.39 kB / 16.31 MB, free: 6.453 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.0008135/0.0008136, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.414/1.414, allocations: 205.4 MB / 223.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4106/0.4106, allocations: 48.78 MB / 320.4 MB, free: 3.809 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.0004956/0.0004956, allocations: 12 kB / 391.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1243, allocations: 60.26 MB / 451.4 MB, free: 1.898 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSplitRev): time 0.3496/0.4739, allocations: 102.4 MB / 0.5408 GB, free: 6.898 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01584/0.4898, allocations: 11.09 MB / 0.5517 GB, free: 11.78 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001224/0.4911, allocations: 23.81 kB / 0.5517 GB, free: 11.76 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001833/0.4929, allocations: 453.1 kB / 0.5521 GB, free: 11.31 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00185/0.4948, allocations: 0.7183 MB / 0.5528 GB, free: 10.59 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01724/0.512, allocations: 4.375 MB / 0.5571 GB, free: 6.223 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003455/0.5155, allocations: 2.327 MB / 0.5594 GB, free: 3.891 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001131/0.5166, allocations: 0.5438 MB / 0.5599 GB, free: 3.336 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001129/0.5178, allocations: 0.6264 MB / 0.5605 GB, free: 2.707 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008134/0.5186, allocations: 0.6691 MB / 0.5612 GB, free: 2.035 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.645e-05/0.5187, allocations: 48 kB / 0.5612 GB, free: 1.988 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01249/0.5312, allocations: 6.067 MB / 0.5671 GB, free: 11.91 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004162/0.5317, allocations: 147.4 kB / 0.5673 GB, free: 11.77 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000639/0.5323, allocations: 197.3 kB / 0.5675 GB, free: 11.57 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007014/0.5394, allocations: 2.943 MB / 0.5703 GB, free: 8.621 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.5394, allocations: 0 / 0.5703 GB, free: 8.621 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.5394, allocations: 0 / 0.5703 GB, free: 8.621 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.5394, allocations: 0 / 0.5703 GB, free: 8.621 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.005116/0.5446, allocations: 1.761 MB / 0.5721 GB, free: 6.789 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.5446, allocations: 8.031 kB / 0.5721 GB, free: 6.781 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003457/0.545, allocations: 122.8 kB / 0.5722 GB, free: 6.66 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007441/0.5457, allocations: 0.5024 MB / 0.5727 GB, free: 6.117 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.072e-05/0.5458, allocations: 50 kB / 0.5727 GB, free: 6.066 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.535e-05/0.5459, allocations: 68 kB / 0.5728 GB, free: 6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002333/0.5482, allocations: 1.019 MB / 0.5738 GB, free: 4.93 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.5483, allocations: 3.938 kB / 0.5738 GB, free: 4.926 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.666e-05/0.5483, allocations: 28 kB / 0.5738 GB, free: 4.898 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.5484, allocations: 20 kB / 0.5738 GB, free: 4.879 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002365/0.5507, allocations: 0.8871 MB / 0.5747 GB, free: 3.992 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005512/0.5563, allocations: 4.722 MB / 0.5793 GB, free: 14.82 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002347/0.5586, allocations: 0.809 MB / 0.5801 GB, free: 13.99 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008747/0.5595, allocations: 341.4 kB / 0.5804 GB, free: 13.65 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0616/0.6211, allocations: 32.28 MB / 0.612 GB, free: 9.555 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001681/0.6229, allocations: 0.5529 MB / 0.6125 GB, free: 8.984 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 4.338e-06/0.6229, allocations: 3.984 kB / 0.6125 GB, free: 8.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.003587/0.6265, allocations: 1.216 MB / 0.6137 GB, free: 7.758 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.119e-05/0.6266, allocations: 89.06 kB / 0.6138 GB, free: 7.652 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006467/0.6273, allocations: 0.5627 MB / 0.6143 GB, free: 7.082 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.354e-05/0.6273, allocations: 37.7 kB / 0.6144 GB, free: 7.039 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.6276, allocations: 372.3 kB / 0.6147 GB, free: 6.668 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.6278, allocations: 134.1 kB / 0.6148 GB, free: 6.535 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.6278, allocations: 12 kB / 0.6149 GB, free: 6.523 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.628, allocations: 378.8 kB / 0.6152 GB, free: 6.145 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008506/0.6288, allocations: 308.9 kB / 0.6155 GB, free: 5.844 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008997/0.6298, allocations: 411.7 kB / 0.6159 GB, free: 5.402 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009106/0.6307, allocations: 422.5 kB / 0.6163 GB, free: 4.965 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.6307, allocations: 3.938 kB / 0.6163 GB, free: 4.961 MB / 494.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002132/0.6328, allocations: 0.9443 MB / 0.6172 GB, free: 3.988 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002807/0.6331, allocations: 285.1 kB / 0.6175 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.6331, allocations: 0 / 0.6175 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.6332, allocations: 8 kB / 0.6175 GB, free: 3.637 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006261/0.6338, allocations: 167.7 kB / 0.6177 GB, free: 3.473 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.6338, allocations: 5.484 kB / 0.6177 GB, free: 3.469 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007847/0.6346, allocations: 175.3 kB / 0.6178 GB, free: 3.297 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.867e-05/0.6347, allocations: 23.98 kB / 0.6179 GB, free: 3.273 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.754e-06/0.6347, allocations: 4 kB / 0.6179 GB, free: 3.27 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001753/0.6365, allocations: 0.838 MB / 0.6187 GB, free: 2.406 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.6365, allocations: 8.25 kB / 0.6187 GB, free: 2.398 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.595e-06/0.6365, allocations: 8.688 kB / 0.6187 GB, free: 2.391 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005225/0.637, allocations: 163.8 kB / 0.6189 GB, free: 2.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.637, allocations: 4 kB / 0.6189 GB, free: 2.227 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007399/0.6378, allocations: 171.3 kB / 0.619 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.898e-05/0.6378, allocations: 20 kB / 0.619 GB, free: 2.039 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition4,$whenCondition3,$PRE.Sine3.T_start,Sine3.T_start,$PRE.Sine3.count,Sine3.count,$PRE.Sine4.T_start,Sine4.T_start,$PRE.Sine4.count,Sine4.count,$whenCondition2,$whenCondition1,$PRE.Sine1.T_start,Sine1.T_start,$PRE.Sine1.count,Sine1.count,$PRE.Sine2.T_start,Sine2.T_start,$PRE.Sine2.count,Sine2.count,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * 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.0003232/0.6382, allocations: 291 kB / 0.6193 GB, free: 1.746 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.6383, allocations: 75.09 kB / 0.6194 GB, free: 1.672 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002829/0.6411, allocations: 1.92 MB / 0.6213 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-05/0.6411, allocations: 27.95 kB / 0.6213 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.6412, allocations: 0 / 0.6213 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.6412, allocations: 0 / 0.6213 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002744/0.6439, allocations: 2.034 MB / 0.6233 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.6439, allocations: 0 / 0.6233 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005281/0.6445, allocations: 139.8 kB / 0.6234 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.6445, allocations: 0 / 0.6234 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.554e-05/0.6445, allocations: 12 kB / 0.6234 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/0.6445, allocations: 10.25 kB / 0.6234 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6446, allocations: 0 / 0.6234 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002303/0.6469, allocations: 1.274 MB / 0.6247 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000378/0.6472, allocations: 223.5 kB / 0.6249 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.6474, allocations: 12 kB / 0.6249 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007643/0.6482, allocations: 139.7 kB / 0.625 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002448/0.6484, allocations: 83.88 kB / 0.6251 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.552e-05/0.6485, allocations: 19.94 kB / 0.6251 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004669/0.649, allocations: 391.1 kB / 0.6255 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.649, allocations: 0 / 0.6255 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003789/0.6528, allocations: 1.128 MB / 0.6266 GB, free: 10.17 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$whenCondition4,$whenCondition3,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count) * Number of discrete states: 4 (Sine3.count,Sine4.count,Sine2.count,Sine1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 34 * 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.003993/0.6568, allocations: 0.996 MB / 0.6276 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003309/0.6601, allocations: 1.681 MB / 0.6292 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.6601, allocations: 0 / 0.6292 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001191/0.6613, allocations: 0.616 MB / 0.6298 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001862/0.6632, allocations: 356.9 kB / 0.6302 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002946/0.6662, allocations: 2.063 MB / 0.6322 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005338/0.6667, allocations: 1.008 MB / 0.6332 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0008357/0.6675, allocations: 396.5 kB / 0.6335 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001981/0.6678, allocations: 55.42 kB / 0.6336 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of SimCode: time 9.82e-07/0.6678, allocations: 0 / 0.6336 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of Templates: time 0.2593/0.9271, allocations: 41.06 MB / 0.6737 GB, free: 152.8 MB / 0.4981 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.makefile Environment - environmentSimulation: (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe 2>&1) Environment - environmentSimulation: