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.000957/0.0009571, allocations: 113 kB / 17.68 MB, free: 5.473 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.001028/0.001028, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.313/1.313, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2609/0.2609, allocations: 48.84 MB / 320.7 MB, free: 11.03 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.001409/0.001409, allocations: 75.34 kB / 391.5 MB, free: 48.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08667/0.0881, allocations: 59.15 MB / 450.7 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSplitRev): time 0.2819/0.37, allocations: 109.9 MB / 0.5474 GB, free: 5.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.3822, allocations: 11.71 MB / 0.5589 GB, free: 5.277 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007133/0.383, allocations: 24.62 kB / 0.5589 GB, free: 5.277 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001309/0.3843, allocations: 0.5747 MB / 0.5594 GB, free: 5.277 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001476/0.3858, allocations: 0.659 MB / 0.5601 GB, free: 5.254 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01467/0.4005, allocations: 5.699 MB / 0.5657 GB, free: 5.102 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00246/0.403, allocations: 1.872 MB / 0.5675 GB, free: 4.992 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.404, allocations: 0.6961 MB / 0.5682 GB, free: 4.93 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001227/0.4053, allocations: 0.7207 MB / 0.5689 GB, free: 4.785 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006649/0.4059, allocations: 0.7069 MB / 0.5696 GB, free: 4.641 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.486e-05/0.406, allocations: 76.5 kB / 0.5696 GB, free: 4.641 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0117/0.4177, allocations: 6.443 MB / 0.5759 GB, free: 3.957 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002362/0.418, allocations: 192.5 kB / 0.5761 GB, free: 3.883 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007148/0.4187, allocations: 490 kB / 0.5766 GB, free: 3.719 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007337/0.4261, allocations: 4.428 MB / 0.5809 GB, free: 1.922 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.4261, allocations: 2.875 kB / 0.5809 GB, free: 1.922 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4261, allocations: 3.938 kB / 0.5809 GB, free: 1.918 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.983e-05/0.4261, allocations: 0 / 0.5809 GB, free: 1.918 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003853/0.43, allocations: 1.862 MB / 0.5827 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.43, allocations: 11.89 kB / 0.5827 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003196/0.4304, allocations: 128.3 kB / 0.5829 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006652/0.431, allocations: 0.5384 MB / 0.5834 GB, free: 296 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.615e-05/0.4311, allocations: 54.56 kB / 0.5834 GB, free: 292 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.571e-05/0.4312, allocations: 67.09 kB / 0.5835 GB, free: 292 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00197/0.4332, allocations: 0.9704 MB / 0.5844 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.4332, allocations: 7.469 kB / 0.5845 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.929e-05/0.4333, allocations: 25.09 kB / 0.5845 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.4333, allocations: 19.59 kB / 0.5845 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002351/0.4356, allocations: 0.7958 MB / 0.5853 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004423/0.4401, allocations: 4.685 MB / 0.5898 GB, free: 11.69 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002353/0.4424, allocations: 0.7054 MB / 0.5905 GB, free: 11.49 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008269/0.4433, allocations: 294.4 kB / 0.5908 GB, free: 11.4 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06196/0.5052, allocations: 32.12 MB / 0.6222 GB, free: 10.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00166/0.5069, allocations: 0.5062 MB / 0.6227 GB, free: 10.38 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.284e-06/0.507, allocations: 0 / 0.6227 GB, free: 10.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=42): time 0.003722/0.5107, allocations: 1.069 MB / 0.6237 GB, free: 9.301 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.5108, allocations: 91.7 kB / 0.6238 GB, free: 9.195 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006596/0.5114, allocations: 0.5627 MB / 0.6244 GB, free: 8.625 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.953e-05/0.5115, allocations: 45.69 kB / 0.6244 GB, free: 8.574 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.5118, allocations: 364.4 kB / 0.6248 GB, free: 8.211 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.5119, allocations: 136.9 kB / 0.6249 GB, free: 8.078 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.5121, allocations: 98.23 kB / 0.625 GB, free: 7.977 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.5123, allocations: 378.7 kB / 0.6253 GB, free: 7.598 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008754/0.5132, allocations: 270.9 kB / 0.6256 GB, free: 7.328 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009093/0.5141, allocations: 357.6 kB / 0.6259 GB, free: 6.949 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001701/0.5158, allocations: 0.6815 MB / 0.6266 GB, free: 6.207 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.5158, allocations: 0 / 0.6266 GB, free: 6.207 MB / 462.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002118/0.5179, allocations: 0.8451 MB / 0.6274 GB, free: 5.332 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.834e-05/0.518, allocations: 122.7 kB / 0.6275 GB, free: 5.188 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.518, allocations: 4.688 kB / 0.6276 GB, free: 5.184 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.5181, allocations: 4 kB / 0.6276 GB, free: 5.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006641/0.5187, allocations: 144.1 kB / 0.6277 GB, free: 5.039 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.5188, allocations: 15.86 kB / 0.6277 GB, free: 5.023 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007307/0.5195, allocations: 111.3 kB / 0.6278 GB, free: 4.914 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.454e-05/0.5196, allocations: 20 kB / 0.6278 GB, free: 4.895 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009487/0.5205, allocations: 383.5 kB / 0.6282 GB, free: 4.516 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008219/0.5213, allocations: 345.4 kB / 0.6285 GB, free: 4.137 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001534/0.5229, allocations: 0.6624 MB / 0.6292 GB, free: 3.406 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.154e-06/0.5229, allocations: 0 / 0.6292 GB, free: 3.406 MB / 462.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.001813/0.5247, allocations: 0.8074 MB / 0.63 GB, free: 2.566 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/0.5248, allocations: 118.8 kB / 0.6301 GB, free: 2.426 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.892e-06/0.5248, allocations: 4 kB / 0.6301 GB, free: 2.422 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.845e-06/0.5249, allocations: 8 kB / 0.6301 GB, free: 2.414 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005507/0.5254, allocations: 140.1 kB / 0.6302 GB, free: 2.277 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.5254, allocations: 7.938 kB / 0.6302 GB, free: 2.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006125/0.5261, allocations: 99.48 kB / 0.6303 GB, free: 2.172 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.363e-05/0.5261, allocations: 20 kB / 0.6303 GB, free: 2.152 MB / 462.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 (Sine4.count,$PRE.Sine4.count,Sine4.T_start,$PRE.Sine4.T_start,Sine3.count,$PRE.Sine3.count,Sine3.T_start,$PRE.Sine3.T_start,$whenCondition3,$whenCondition4,Sine2.count,$PRE.Sine2.count,Sine2.T_start,$PRE.Sine2.T_start,Sine1.count,$PRE.Sine1.count,Sine1.T_start,$PRE.Sine1.T_start,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001984/0.5263, allocations: 237.7 kB / 0.6306 GB, free: 1.918 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.839e-05/0.5264, allocations: 71.23 kB / 0.6306 GB, free: 1.848 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002944/0.5294, allocations: 1.825 MB / 0.6324 GB, free: 8 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.354e-05/0.5294, allocations: 19.97 kB / 0.6324 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.5294, allocations: 0 / 0.6324 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.5294, allocations: 3.984 kB / 0.6324 GB, free: 15.98 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.5321, allocations: 1.99 MB / 0.6344 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-06/0.5321, allocations: 11.95 kB / 0.6344 GB, free: 13.94 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005531/0.5327, allocations: 107.8 kB / 0.6345 GB, free: 13.83 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.5327, allocations: 0 / 0.6345 GB, free: 13.83 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.812e-05/0.5327, allocations: 15.98 kB / 0.6345 GB, free: 13.82 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.5327, allocations: 4 kB / 0.6345 GB, free: 13.81 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.5327, allocations: 2.688 kB / 0.6345 GB, free: 13.81 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002267/0.535, allocations: 1.18 MB / 0.6357 GB, free: 12.61 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002684/0.5353, allocations: 223.5 kB / 0.6359 GB, free: 12.38 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.201e-05/0.5354, allocations: 8 kB / 0.6359 GB, free: 12.37 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006186/0.536, allocations: 75.89 kB / 0.636 GB, free: 12.29 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.5362, allocations: 83.84 kB / 0.636 GB, free: 12.21 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.979e-05/0.5363, allocations: 15.98 kB / 0.6361 GB, free: 12.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004314/0.5367, allocations: 399.1 kB / 0.6364 GB, free: 11.81 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5367, allocations: 0 / 0.6364 GB, free: 11.81 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002978/0.5397, allocations: 1.128 MB / 0.6375 GB, free: 10.68 MB / 478.1 MB 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 (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.003242/0.543, allocations: 0.981 MB / 0.6385 GB, free: 9.781 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003312/0.5463, allocations: 1.549 MB / 0.64 GB, free: 8.141 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5463, allocations: 0 / 0.64 GB, free: 8.141 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.5475, allocations: 0.5614 MB / 0.6406 GB, free: 7.578 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001812/0.5493, allocations: 365.7 kB / 0.6409 GB, free: 7.227 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003008/0.5523, allocations: 1.698 MB / 0.6426 GB, free: 5.496 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005855/0.5529, allocations: 1.011 MB / 0.6436 GB, free: 4.461 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008088/0.5538, allocations: 388.5 kB / 0.6439 GB, free: 4.078 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/0.554, allocations: 59.44 kB / 0.644 GB, free: 4.02 MB / 478.1 MB Notification: Performance of SimCode: time 1.202e-06/0.554, allocations: 0 / 0.644 GB, free: 4.02 MB / 478.1 MB Notification: Performance of Templates: time 0.05599/0.61, allocations: 42.11 MB / 0.6851 GB, free: 9.887 MB / 0.5137 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.makefile (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 -s gbode -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe 2>&1)