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.00145/0.00145, allocations: 109.3 kB / 17.74 MB, free: 5.359 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.001357/0.001357, allocations: 188.1 kB / 18.67 MB, free: 4.441 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.389/1.389, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2786/0.2786, allocations: 48.86 MB / 320.8 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.001436/0.001436, allocations: 71.89 kB / 451.2 MB, free: 8.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1032, allocations: 59.16 MB / 0.4984 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.2461/0.3493, allocations: 46.46 MB / 0.5438 GB, free: 6.75 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009988/0.3593, allocations: 9.802 MB / 0.5533 GB, free: 1.836 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003942/0.3598, allocations: 10 kB / 0.5534 GB, free: 1.832 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007322/0.3606, allocations: 245.1 kB / 0.5536 GB, free: 1.719 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006276/0.3612, allocations: 295.1 kB / 0.5539 GB, free: 1.555 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01273/0.3739, allocations: 4.689 MB / 0.5584 GB, free: 208 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001218/0.3752, allocations: 0.7642 MB / 0.5592 GB, free: 15.83 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004475/0.3756, allocations: 239.6 kB / 0.5594 GB, free: 15.74 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004436/0.3761, allocations: 291.6 kB / 0.5597 GB, free: 15.62 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003557/0.3765, allocations: 292.6 kB / 0.56 GB, free: 15.49 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.904e-05/0.3765, allocations: 29.94 kB / 0.56 GB, free: 15.49 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01303/0.3896, allocations: 6.211 MB / 0.5661 GB, free: 13.1 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.3897, allocations: 79.78 kB / 0.5662 GB, free: 13.03 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003968/0.3901, allocations: 223.6 kB / 0.5664 GB, free: 12.9 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009058/0.3992, allocations: 3.742 MB / 0.57 GB, free: 10.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3992, allocations: 0 / 0.57 GB, free: 10.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3992, allocations: 0 / 0.57 GB, free: 10.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.3993, allocations: 1.125 kB / 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.003596/0.4029, allocations: 1.136 MB / 0.5711 GB, free: 9.676 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.4029, allocations: 17.59 kB / 0.5711 GB, free: 9.668 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004073/0.4033, allocations: 88.78 kB / 0.5712 GB, free: 9.625 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005087/0.4039, allocations: 334.5 kB / 0.5715 GB, free: 9.305 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.671e-05/0.4039, allocations: 29.72 kB / 0.5716 GB, free: 9.289 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.463e-05/0.4039, allocations: 30.03 kB / 0.5716 GB, free: 9.281 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007996/0.4048, allocations: 421.1 kB / 0.572 GB, free: 8.992 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.4048, allocations: 3.938 kB / 0.572 GB, free: 8.988 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.268e-05/0.4048, allocations: 19.34 kB / 0.572 GB, free: 8.973 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.4048, allocations: 8.188 kB / 0.572 GB, free: 8.973 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006556/0.4055, allocations: 289.2 kB / 0.5723 GB, free: 8.84 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.002044/0.4075, allocations: 2.206 MB / 0.5745 GB, free: 6.645 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006495/0.4082, allocations: 251.5 kB / 0.5747 GB, free: 6.512 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.4084, allocations: 106.8 kB / 0.5748 GB, free: 6.453 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06196/0.4704, allocations: 32.12 MB / 0.6062 GB, free: 7.641 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/0.4704, allocations: 30.56 kB / 0.6062 GB, free: 7.602 MB / 462.1 MB Notification: Performance of pre-optimization done (n=25): time 2.204e-06/0.4705, allocations: 0 / 0.6062 GB, free: 7.602 MB / 462.1 MB Notification: Performance of matching and sorting (n=33): time 0.004958/0.4754, allocations: 1.454 MB / 0.6076 GB, free: 6.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.4755, allocations: 59.34 kB / 0.6077 GB, free: 6.02 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003647/0.4759, allocations: 325.6 kB / 0.608 GB, free: 5.695 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.582e-05/0.4759, allocations: 37.64 kB / 0.608 GB, free: 5.652 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.4761, allocations: 196.4 kB / 0.6082 GB, free: 5.457 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.851e-05/0.4762, allocations: 122.3 kB / 0.6083 GB, free: 5.336 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.4763, allocations: 69.69 kB / 0.6084 GB, free: 5.262 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.4764, allocations: 346.8 kB / 0.6087 GB, free: 4.914 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.4767, allocations: 120.8 kB / 0.6088 GB, free: 4.793 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002569/0.4769, allocations: 172.7 kB / 0.609 GB, free: 4.605 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005134/0.4775, allocations: 304.5 kB / 0.6093 GB, free: 4.289 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.4775, allocations: 0 / 0.6093 GB, free: 4.289 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000973/0.4785, allocations: 442.3 kB / 0.6097 GB, free: 3.844 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.4785, allocations: 7.984 kB / 0.6097 GB, free: 3.836 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.4785, allocations: 4 kB / 0.6097 GB, free: 3.832 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005205/0.479, allocations: 89.8 kB / 0.6098 GB, free: 3.738 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003688/0.4794, allocations: 80.45 kB / 0.6099 GB, free: 3.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008732/0.4803, allocations: 1.116 MB / 0.611 GB, free: 2.492 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003006/0.4806, allocations: 8.031 kB / 0.611 GB, free: 2.484 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/0.4807, allocations: 19.98 kB / 0.611 GB, free: 2.465 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002773/0.4809, allocations: 208.1 kB / 0.6112 GB, free: 2.258 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002259/0.4812, allocations: 161.1 kB / 0.6114 GB, free: 2.082 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004127/0.4816, allocations: 288.9 kB / 0.6116 GB, free: 1.781 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.215e-06/0.4816, allocations: 0 / 0.6116 GB, free: 1.781 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0008305/0.4825, allocations: 438 kB / 0.6121 GB, free: 1.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.4825, allocations: 7.906 kB / 0.6121 GB, free: 1.332 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.4825, allocations: 4 kB / 0.6121 GB, free: 1.328 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004626/0.483, allocations: 93.73 kB / 0.6122 GB, free: 1.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/0.4833, allocations: 79.83 kB / 0.6122 GB, free: 1.156 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008312/0.4841, allocations: 1.113 MB / 0.6133 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002807/0.4844, allocations: 8.031 kB / 0.6133 GB, free: 15.98 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.645e-05/0.4845, allocations: 19.94 kB / 0.6133 GB, free: 15.96 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.0001635/0.4846, allocations: 200.4 kB / 0.6135 GB, free: 15.76 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.392e-05/0.4847, allocations: 43.47 kB / 0.6136 GB, free: 15.71 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001634/0.4864, allocations: 1.167 MB / 0.6147 GB, free: 14.53 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.418e-05/0.4864, allocations: 15.97 kB / 0.6147 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4864, allocations: 4 kB / 0.6147 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4864, allocations: 4 kB / 0.6147 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007995/0.4872, allocations: 0.6734 MB / 0.6154 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.4872, allocations: 0 / 0.6154 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000319/0.4876, allocations: 63.91 kB / 0.6155 GB, free: 13.72 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000635/0.4882, allocations: 145.5 kB / 0.6156 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.102e-05/0.4883, allocations: 11.98 kB / 0.6156 GB, free: 13.56 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008927/0.4892, allocations: 1.187 MB / 0.6168 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4892, allocations: 0 / 0.6168 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.4908, allocations: 1.216 MB / 0.618 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002203/0.491, allocations: 160.3 kB / 0.6181 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.503e-05/0.4911, allocations: 12 kB / 0.6181 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002469/0.4914, allocations: 15.98 kB / 0.6181 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.211e-05/0.4915, allocations: 23.97 kB / 0.6182 GB, free: 10.87 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.4915, allocations: 4 kB / 0.6182 GB, free: 10.86 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002257/0.4917, allocations: 231.2 kB / 0.6184 GB, free: 10.64 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4917, allocations: 0 / 0.6184 GB, free: 10.64 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003384/0.4951, allocations: 0.9254 MB / 0.6193 GB, free: 9.711 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.005567/0.5007, allocations: 0.9759 MB / 0.6202 GB, free: 8.738 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.5024, allocations: 0.6741 MB / 0.6209 GB, free: 8.062 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.5024, allocations: 0.625 kB / 0.6209 GB, free: 8.062 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006535/0.5031, allocations: 398.7 kB / 0.6213 GB, free: 7.676 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001217/0.5043, allocations: 206.4 kB / 0.6215 GB, free: 7.48 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002135/0.5065, allocations: 1.298 MB / 0.6227 GB, free: 6.152 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004517/0.5069, allocations: 0.8519 MB / 0.6236 GB, free: 5.277 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.5071, allocations: 35.44 kB / 0.6236 GB, free: 5.242 MB / 478.1 MB Notification: Performance of SimCode: time 3.5e-07/0.5071, allocations: 0 / 0.6236 GB, free: 5.242 MB / 478.1 MB Notification: Performance of Templates: time 0.03491/0.542, allocations: 23.98 MB / 0.647 GB, free: 13.22 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)