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.001309/0.001309, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001254/0.001254, allocations: 180.9 kB / 17.2 MB, free: 5.914 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.757/1.757, allocations: 205.4 MB / 223.4 MB, free: 5.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4303/0.4303, allocations: 48.77 MB / 320.4 MB, free: 3.816 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.0004986/0.0004987, allocations: 12 kB / 391.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1197, allocations: 60.25 MB / 451.4 MB, free: 1.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSplitRev): time 0.3099/0.4296, allocations: 91.99 MB / 0.5307 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0142/0.4438, allocations: 10.31 MB / 0.5407 GB, free: 7.008 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001271/0.4452, allocations: 23.81 kB / 0.5407 GB, free: 6.984 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001673/0.4469, allocations: 473.7 kB / 0.5412 GB, free: 6.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001741/0.4486, allocations: 0.5881 MB / 0.5418 GB, free: 5.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01554/0.4642, allocations: 4.494 MB / 0.5462 GB, free: 1.449 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002561/0.4668, allocations: 1.095 MB / 0.5472 GB, free: 364 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001184/0.468, allocations: 0.5751 MB / 0.5478 GB, free: 15.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001075/0.4691, allocations: 0.5372 MB / 0.5483 GB, free: 15.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005839/0.4697, allocations: 490 kB / 0.5488 GB, free: 14.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.216e-05/0.4698, allocations: 48 kB / 0.5488 GB, free: 14.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0123/0.4821, allocations: 6.274 MB / 0.555 GB, free: 8.422 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002815/0.4824, allocations: 143.4 kB / 0.5551 GB, free: 8.281 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003865/0.4828, allocations: 197.3 kB / 0.5553 GB, free: 8.082 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005578/0.4884, allocations: 2.923 MB / 0.5581 GB, free: 5.156 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.4884, allocations: 0 / 0.5581 GB, free: 5.156 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4884, allocations: 0 / 0.5581 GB, free: 5.156 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.4884, allocations: 0 / 0.5581 GB, free: 5.156 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.004625/0.4931, allocations: 1.761 MB / 0.5599 GB, free: 3.324 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.4931, allocations: 8.031 kB / 0.5599 GB, free: 3.316 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003529/0.4935, allocations: 122.8 kB / 0.56 GB, free: 3.195 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006721/0.4942, allocations: 0.4946 MB / 0.5605 GB, free: 2.66 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.039e-05/0.4942, allocations: 61.98 kB / 0.5605 GB, free: 2.598 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.998e-05/0.4943, allocations: 64 kB / 0.5606 GB, free: 2.535 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002162/0.4965, allocations: 1.015 MB / 0.5616 GB, free: 1.469 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.4965, allocations: 7.938 kB / 0.5616 GB, free: 1.461 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.562e-05/0.4966, allocations: 28 kB / 0.5616 GB, free: 1.434 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.4966, allocations: 16 kB / 0.5616 GB, free: 1.418 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002474/0.4991, allocations: 0.8832 MB / 0.5625 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004429/0.5035, allocations: 4.726 MB / 0.5671 GB, free: 11.36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/0.506, allocations: 0.8057 MB / 0.5679 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06255/0.5686, allocations: 32.29 MB / 0.5994 GB, free: 6.434 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001659/0.5703, allocations: 0.5517 MB / 0.6 GB, free: 5.863 MB / 478.1 MB Notification: Performance of pre-optimization done (n=42): time 2.575e-06/0.5703, allocations: 4 kB / 0.6 GB, free: 5.859 MB / 478.1 MB Notification: Performance of matching and sorting (n=42): time 0.003906/0.5742, allocations: 1.213 MB / 0.6011 GB, free: 4.641 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.5743, allocations: 85.11 kB / 0.6012 GB, free: 4.539 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000613/0.5749, allocations: 0.5627 MB / 0.6018 GB, free: 3.969 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.401e-05/0.575, allocations: 41.64 kB / 0.6018 GB, free: 3.922 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003092/0.5753, allocations: 372.3 kB / 0.6022 GB, free: 3.551 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.5754, allocations: 134.1 kB / 0.6023 GB, free: 3.418 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-05/0.5754, allocations: 12 kB / 0.6023 GB, free: 3.406 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.5756, allocations: 382.7 kB / 0.6027 GB, free: 3.023 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008769/0.5765, allocations: 312.8 kB / 0.603 GB, free: 2.719 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009186/0.5774, allocations: 411.7 kB / 0.6034 GB, free: 2.277 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009019/0.5783, allocations: 418.5 kB / 0.6038 GB, free: 1.844 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.5783, allocations: 0 / 0.6038 GB, free: 1.844 MB / 478.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002122/0.5805, allocations: 0.944 MB / 0.6047 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004321/0.5809, allocations: 1.167 MB / 0.6058 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.5809, allocations: 0 / 0.6058 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.5809, allocations: 8 kB / 0.6058 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006594/0.5816, allocations: 157.1 kB / 0.606 GB, free: 15.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.865e-05/0.5816, allocations: 16.66 kB / 0.606 GB, free: 15.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009297/0.5826, allocations: 171.2 kB / 0.6062 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.532e-05/0.5826, allocations: 27.98 kB / 0.6062 GB, free: 15.23 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/0.5827, allocations: 8 kB / 0.6062 GB, free: 15.22 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001956/0.5846, allocations: 0.838 MB / 0.607 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.5846, allocations: 4 kB / 0.607 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.272e-06/0.5846, allocations: 4 kB / 0.607 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005739/0.5852, allocations: 168.1 kB / 0.6072 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.5852, allocations: 7.984 kB / 0.6072 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007849/0.586, allocations: 168 kB / 0.6073 GB, free: 14.01 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/0.5861, allocations: 23.98 kB / 0.6074 GB, free: 13.99 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.0003578/0.5864, allocations: 283 kB / 0.6076 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.106e-05/0.5865, allocations: 71.16 kB / 0.6077 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002907/0.5895, allocations: 1.931 MB / 0.6096 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.373e-05/0.5895, allocations: 19.97 kB / 0.6096 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.5895, allocations: 0 / 0.6096 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.954e-06/0.5895, allocations: 3.984 kB / 0.6096 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.5921, allocations: 2.031 MB / 0.6116 GB, free: 9.574 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.5922, allocations: 0 / 0.6116 GB, free: 9.574 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005515/0.5927, allocations: 139.8 kB / 0.6117 GB, free: 9.438 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.5927, allocations: 0 / 0.6117 GB, free: 9.438 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.658e-05/0.5928, allocations: 16.73 kB / 0.6118 GB, free: 9.422 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.5928, allocations: 7.938 kB / 0.6118 GB, free: 9.414 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5928, allocations: 0 / 0.6118 GB, free: 9.414 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002268/0.5951, allocations: 1.297 MB / 0.613 GB, free: 8.078 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002967/0.5954, allocations: 219.5 kB / 0.6132 GB, free: 7.844 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.311e-05/0.5955, allocations: 8 kB / 0.6132 GB, free: 7.836 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007347/0.5962, allocations: 144.3 kB / 0.6134 GB, free: 7.695 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.5964, allocations: 91.75 kB / 0.6135 GB, free: 7.605 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.5965, allocations: 16 kB / 0.6135 GB, free: 7.59 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004156/0.5969, allocations: 395.1 kB / 0.6139 GB, free: 7.211 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5969, allocations: 0 / 0.6139 GB, free: 7.211 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003184/0.6001, allocations: 1.131 MB / 0.615 GB, free: 6.078 MB / 494.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 (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.003648/0.6038, allocations: 0.9848 MB / 0.6159 GB, free: 5.086 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003415/0.6072, allocations: 1.681 MB / 0.6176 GB, free: 3.309 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.6072, allocations: 0 / 0.6176 GB, free: 3.309 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.6085, allocations: 0.6082 MB / 0.6182 GB, free: 2.703 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001859/0.6103, allocations: 353.8 kB / 0.6185 GB, free: 2.363 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.6133, allocations: 2.067 MB / 0.6205 GB, free: 264 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005319/0.6139, allocations: 1.035 MB / 0.6215 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0007612/0.6146, allocations: 386.4 kB / 0.6219 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000178/0.6148, allocations: 51.44 kB / 0.6219 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of SimCode: time 1.343e-06/0.6148, allocations: 0 / 0.6219 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of Templates: time 0.252/0.8668, allocations: 41.04 MB / 0.662 GB, free: 158.4 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: