Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.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.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 112.2 kB / 17.74 MB, free: 5.355 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.001145/0.001145, allocations: 187.1 kB / 18.67 MB, free: 4.434 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.364/1.364, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2647/0.2647, allocations: 48.83 MB / 320.7 MB, free: 11.01 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.001439/0.001439, allocations: 59.91 kB / 451.2 MB, free: 8.547 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1148, allocations: 59.16 MB / 0.4984 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.3091/0.424, allocations: 46.47 MB / 0.5438 GB, free: 6.734 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01101/0.4351, allocations: 9.8 MB / 0.5533 GB, free: 1.82 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004096/0.4355, allocations: 9.062 kB / 0.5534 GB, free: 1.816 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008354/0.4364, allocations: 243.5 kB / 0.5536 GB, free: 1.703 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007183/0.4371, allocations: 295.3 kB / 0.5539 GB, free: 1.539 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01636/0.4535, allocations: 4.691 MB / 0.5584 GB, free: 216 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001506/0.455, allocations: 0.7599 MB / 0.5592 GB, free: 15.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005633/0.4556, allocations: 245.3 kB / 0.5594 GB, free: 15.75 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005447/0.4562, allocations: 288.8 kB / 0.5597 GB, free: 15.62 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004511/0.4566, allocations: 295.3 kB / 0.56 GB, free: 15.5 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.23e-05/0.4567, allocations: 29.97 kB / 0.56 GB, free: 15.5 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01657/0.4733, allocations: 6.207 MB / 0.5661 GB, free: 13.1 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.4735, allocations: 75.75 kB / 0.5661 GB, free: 13.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004825/0.474, allocations: 231.6 kB / 0.5664 GB, free: 12.9 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01219/0.4862, allocations: 3.737 MB / 0.57 GB, free: 10.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.844e-06/0.4862, allocations: 1.125 kB / 0.57 GB, free: 10.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4862, allocations: 0 / 0.57 GB, free: 10.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.4862, allocations: 0 / 0.57 GB, free: 10.52 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00503/0.4913, allocations: 1.136 MB / 0.5711 GB, free: 9.68 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.4913, allocations: 13.27 kB / 0.5711 GB, free: 9.676 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000429/0.4918, allocations: 89.45 kB / 0.5712 GB, free: 9.633 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006312/0.4924, allocations: 335 kB / 0.5715 GB, free: 9.312 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.4925, allocations: 25.91 kB / 0.5716 GB, free: 9.301 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.475e-05/0.4925, allocations: 33.59 kB / 0.5716 GB, free: 9.289 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008983/0.4934, allocations: 421.2 kB / 0.572 GB, free: 9 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.4935, allocations: 7.938 kB / 0.572 GB, free: 8.992 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.921e-05/0.4935, allocations: 15.22 kB / 0.572 GB, free: 8.98 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.4935, allocations: 13.12 kB / 0.572 GB, free: 8.977 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006777/0.4942, allocations: 288.3 kB / 0.5723 GB, free: 8.844 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002425/0.4967, allocations: 2.21 MB / 0.5745 GB, free: 6.648 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006981/0.4974, allocations: 255.5 kB / 0.5747 GB, free: 6.516 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.4976, allocations: 104.9 kB / 0.5748 GB, free: 6.457 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06835/0.5659, allocations: 32.11 MB / 0.6062 GB, free: 7.656 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/0.566, allocations: 38.56 kB / 0.6062 GB, free: 7.609 MB / 462.1 MB Notification: Performance of pre-optimization done (n=25): time 2.745e-06/0.566, allocations: 0 / 0.6062 GB, free: 7.609 MB / 462.1 MB Notification: Performance of matching and sorting (n=33): time 0.005155/0.5712, allocations: 1.451 MB / 0.6076 GB, free: 6.098 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.5713, allocations: 55.41 kB / 0.6077 GB, free: 6.031 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004057/0.5717, allocations: 325.6 kB / 0.608 GB, free: 5.707 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.891e-05/0.5717, allocations: 33.64 kB / 0.608 GB, free: 5.668 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.5719, allocations: 208.4 kB / 0.6082 GB, free: 5.461 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.572, allocations: 114.3 kB / 0.6083 GB, free: 5.348 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.5721, allocations: 65.69 kB / 0.6084 GB, free: 5.277 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.5723, allocations: 350.8 kB / 0.6087 GB, free: 4.926 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000233/0.5726, allocations: 124.8 kB / 0.6088 GB, free: 4.801 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.5728, allocations: 173.3 kB / 0.609 GB, free: 4.613 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004906/0.5733, allocations: 300.5 kB / 0.6093 GB, free: 4.301 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.5733, allocations: 4 kB / 0.6093 GB, free: 4.297 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009468/0.5743, allocations: 442.4 kB / 0.6097 GB, free: 3.852 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.5743, allocations: 11.94 kB / 0.6097 GB, free: 3.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.5743, allocations: 0 / 0.6097 GB, free: 3.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005127/0.5749, allocations: 89.8 kB / 0.6098 GB, free: 3.746 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003543/0.5752, allocations: 80.77 kB / 0.6099 GB, free: 3.668 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000966/0.5762, allocations: 1.116 MB / 0.611 GB, free: 2.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003085/0.5765, allocations: 8 kB / 0.611 GB, free: 2.492 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.412e-05/0.5766, allocations: 15.98 kB / 0.611 GB, free: 2.477 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003319/0.5769, allocations: 220.1 kB / 0.6112 GB, free: 2.258 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002216/0.5771, allocations: 153.2 kB / 0.6114 GB, free: 2.09 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004164/0.5776, allocations: 288.9 kB / 0.6116 GB, free: 1.789 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.849e-06/0.5776, allocations: 4 kB / 0.6116 GB, free: 1.785 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0008498/0.5784, allocations: 426.1 kB / 0.6121 GB, free: 1.355 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.5785, allocations: 11.91 kB / 0.6121 GB, free: 1.344 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-06/0.5785, allocations: 0 / 0.6121 GB, free: 1.344 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000423/0.5789, allocations: 96.92 kB / 0.6122 GB, free: 1.246 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.5792, allocations: 75.89 kB / 0.6122 GB, free: 1.172 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008265/0.58, allocations: 1.113 MB / 0.6133 GB, free: 8 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003011/0.5804, allocations: 12.05 kB / 0.6133 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.5804, allocations: 15.88 kB / 0.6133 GB, free: 15.98 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (Valve.fluidState.phase,Tank2.liquidState.phase,Tank1.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000168/0.5806, allocations: 200.4 kB / 0.6135 GB, free: 15.77 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.526e-05/0.5807, allocations: 43.47 kB / 0.6136 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001668/0.5823, allocations: 1.174 MB / 0.6147 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.98e-05/0.5824, allocations: 15.98 kB / 0.6147 GB, free: 14.53 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.5824, allocations: 2.812 kB / 0.6147 GB, free: 14.53 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.5824, allocations: 0 / 0.6147 GB, free: 14.53 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008685/0.5833, allocations: 0.6801 MB / 0.6154 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.338e-06/0.5833, allocations: 0 / 0.6154 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003189/0.5836, allocations: 63.91 kB / 0.6155 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006/0.5842, allocations: 145.5 kB / 0.6156 GB, free: 13.58 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.42e-05/0.5843, allocations: 8 kB / 0.6156 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009483/0.5852, allocations: 1.191 MB / 0.6168 GB, free: 12.33 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5853, allocations: 0 / 0.6168 GB, free: 12.33 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.5869, allocations: 1.216 MB / 0.618 GB, free: 11.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.5872, allocations: 162 kB / 0.6181 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.282e-05/0.5873, allocations: 4 kB / 0.6181 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002284/0.5875, allocations: 11.98 kB / 0.6181 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.831e-05/0.5876, allocations: 23.97 kB / 0.6182 GB, free: 10.88 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.5877, allocations: 12 kB / 0.6182 GB, free: 10.87 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002272/0.5879, allocations: 223.2 kB / 0.6184 GB, free: 10.65 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5879, allocations: 0 / 0.6184 GB, free: 10.65 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003819/0.5917, allocations: 0.9332 MB / 0.6193 GB, free: 9.719 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Tank1.y,Tank1.h,Tank2.y,Tank2.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006349/0.5981, allocations: 0.9665 MB / 0.6202 GB, free: 8.758 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001881/0.6, allocations: 0.6825 MB / 0.6209 GB, free: 8.074 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.6001, allocations: 8 kB / 0.6209 GB, free: 8.066 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007326/0.6008, allocations: 386.7 kB / 0.6213 GB, free: 7.691 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.6021, allocations: 225 kB / 0.6215 GB, free: 7.473 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.6042, allocations: 1.278 MB / 0.6227 GB, free: 6.16 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.6047, allocations: 0.8519 MB / 0.6236 GB, free: 5.285 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.6048, allocations: 35.44 kB / 0.6236 GB, free: 5.25 MB / 478.1 MB Notification: Performance of SimCode: time 8.21e-07/0.6048, allocations: 0 / 0.6236 GB, free: 5.25 MB / 478.1 MB Notification: Performance of Templates: time 0.03609/0.6409, allocations: 23.92 MB / 0.647 GB, free: 13.29 MB / 0.4981 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1)