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.001409/0.001409, allocations: 108.8 kB / 16.51 MB, free: 6.707 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.001649/0.001649, allocations: 186.5 kB / 17.42 MB, free: 6.074 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.391/1.391, allocations: 205.1 MB / 223.3 MB, free: 12.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2552/0.2552, allocations: 48.84 MB / 319.5 MB, free: 11.32 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.001315/0.001315, allocations: 63.23 kB / 389.4 MB, free: 49.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08677/0.0881, allocations: 59.16 MB / 448.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.04602/0.1342, allocations: 47.37 MB / 495.9 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01361/0.1478, allocations: 10.55 MB / 0.4946 GB, free: 148 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006403/0.1485, allocations: 7.938 kB / 0.4946 GB, free: 140 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009057/0.1495, allocations: 206.9 kB / 0.4948 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007087/0.1503, allocations: 286.3 kB / 0.495 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01069/0.161, allocations: 3.758 MB / 0.4987 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001216/0.1622, allocations: 1.079 MB / 0.4998 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004312/0.1626, allocations: 209.6 kB / 0.5 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004349/0.1631, allocations: 254.9 kB / 0.5002 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004226/0.1635, allocations: 302.6 kB / 0.5005 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.85e-05/0.1636, allocations: 20 kB / 0.5005 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01065/0.1742, allocations: 6.142 MB / 0.5065 GB, free: 3.879 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.1744, allocations: 67.69 kB / 0.5066 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003321/0.1747, allocations: 218.9 kB / 0.5068 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007557/0.1823, allocations: 3.742 MB / 0.5104 GB, free: 15.85 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1823, allocations: 0 / 0.5104 GB, free: 15.85 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1824, allocations: 4 kB / 0.5104 GB, free: 15.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.1824, allocations: 0 / 0.5104 GB, free: 15.84 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.002897/0.1853, allocations: 1.138 MB / 0.5116 GB, free: 14.66 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.1853, allocations: 8.031 kB / 0.5116 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004296/0.1858, allocations: 88.42 kB / 0.5117 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000427/0.1862, allocations: 339.2 kB / 0.512 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.1862, allocations: 21.03 kB / 0.512 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.092e-05/0.1863, allocations: 36.38 kB / 0.512 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008641/0.1872, allocations: 418 kB / 0.5124 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1872, allocations: 4 kB / 0.5124 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.1872, allocations: 12 kB / 0.5124 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.1873, allocations: 8 kB / 0.5125 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007123/0.188, allocations: 294.3 kB / 0.5127 GB, free: 13.38 MB / 414.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.002198/0.1902, allocations: 2.208 MB / 0.5149 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006958/0.1909, allocations: 254.7 kB / 0.5151 GB, free: 10.67 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001971/0.1911, allocations: 104.8 kB / 0.5152 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2371/0.4282, allocations: 31.96 MB / 0.5464 GB, free: 70.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.4283, allocations: 41.89 kB / 0.5465 GB, free: 70.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.4283, allocations: 0 / 0.5465 GB, free: 70.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.004698/0.433, allocations: 1.439 MB / 0.5479 GB, free: 70.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.292e-05/0.4331, allocations: 60.06 kB / 0.5479 GB, free: 70.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002997/0.4334, allocations: 325.7 kB / 0.5483 GB, free: 70.03 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.4334, allocations: 30.52 kB / 0.5483 GB, free: 70 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.805e-05/0.4335, allocations: 203.2 kB / 0.5485 GB, free: 69.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.471e-05/0.4336, allocations: 121 kB / 0.5486 GB, free: 69.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.4337, allocations: 66.44 kB / 0.5487 GB, free: 69.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.394e-05/0.4338, allocations: 348.6 kB / 0.549 GB, free: 69.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002379/0.434, allocations: 130.4 kB / 0.5491 GB, free: 69.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002431/0.4343, allocations: 162.9 kB / 0.5493 GB, free: 69.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004783/0.4348, allocations: 306.4 kB / 0.5496 GB, free: 69.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.4348, allocations: 1.125 kB / 0.5496 GB, free: 69.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009124/0.4357, allocations: 446.6 kB / 0.55 GB, free: 69.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.4357, allocations: 5.5 kB / 0.55 GB, free: 69.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.4357, allocations: 1.312 kB / 0.55 GB, free: 69.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005151/0.4362, allocations: 92.09 kB / 0.5501 GB, free: 69.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003514/0.4366, allocations: 84.23 kB / 0.5502 GB, free: 69.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006124/0.4372, allocations: 1.116 MB / 0.5513 GB, free: 68.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/0.4375, allocations: 33.5 kB / 0.5513 GB, free: 68.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.403e-05/0.4376, allocations: 18.55 kB / 0.5513 GB, free: 68.03 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002626/0.4379, allocations: 215.3 kB / 0.5515 GB, free: 67.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002044/0.4381, allocations: 165.9 kB / 0.5517 GB, free: 67.76 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004096/0.4385, allocations: 293 kB / 0.5519 GB, free: 67.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.934e-06/0.4385, allocations: 1.375 kB / 0.5519 GB, free: 67.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0008329/0.4393, allocations: 425.7 kB / 0.5524 GB, free: 67.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.518e-06/0.4394, allocations: 5.875 kB / 0.5524 GB, free: 67.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-06/0.4394, allocations: 1.25 kB / 0.5524 GB, free: 67.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004554/0.4398, allocations: 91.95 kB / 0.5524 GB, free: 67.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003003/0.4401, allocations: 79.86 kB / 0.5525 GB, free: 67.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005725/0.4407, allocations: 1.112 MB / 0.5536 GB, free: 66.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000273/0.441, allocations: 41 kB / 0.5537 GB, free: 66.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.313e-05/0.441, allocations: 10.19 kB / 0.5537 GB, free: 66.18 MB / 414.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.0001018/0.4411, allocations: 204.2 kB / 0.5539 GB, free: 65.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.534e-05/0.4412, allocations: 38.06 kB / 0.5539 GB, free: 65.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001653/0.4429, allocations: 1.175 MB / 0.555 GB, free: 65.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/0.4429, allocations: 17.17 kB / 0.5551 GB, free: 65.28 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4429, allocations: 4.719 kB / 0.5551 GB, free: 65.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.4429, allocations: 5.109 kB / 0.5551 GB, free: 65.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007662/0.4437, allocations: 0.6711 MB / 0.5557 GB, free: 64.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.4437, allocations: 0 / 0.5557 GB, free: 64.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003126/0.444, allocations: 67.98 kB / 0.5558 GB, free: 64.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006296/0.4447, allocations: 140.6 kB / 0.5559 GB, free: 64.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.4447, allocations: 7.969 kB / 0.5559 GB, free: 64.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006234/0.4454, allocations: 1.191 MB / 0.5571 GB, free: 63.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4454, allocations: 0 / 0.5571 GB, free: 63.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/0.4468, allocations: 1.217 MB / 0.5583 GB, free: 62.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.4469, allocations: 156.9 kB / 0.5584 GB, free: 62.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.662e-05/0.447, allocations: 9.344 kB / 0.5584 GB, free: 62.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.4473, allocations: 21.33 kB / 0.5585 GB, free: 62.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.867e-05/0.4473, allocations: 32.44 kB / 0.5585 GB, free: 62.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.4474, allocations: 11.47 kB / 0.5585 GB, free: 62.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000184/0.4476, allocations: 225.9 kB / 0.5587 GB, free: 62.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.412e-06/0.4476, allocations: 0 / 0.5587 GB, free: 62.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002151/0.4497, allocations: 0.9339 MB / 0.5596 GB, free: 62.37 MB / 414.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.003219/0.453, allocations: 0.9729 MB / 0.5606 GB, free: 62.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.4543, allocations: 0.6822 MB / 0.5612 GB, free: 61.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4544, allocations: 0 / 0.5612 GB, free: 61.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005735/0.4549, allocations: 386.8 kB / 0.5616 GB, free: 61.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.4561, allocations: 201.2 kB / 0.5618 GB, free: 61.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.4579, allocations: 1.487 MB / 0.5633 GB, free: 60.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.4582, allocations: 0.8573 MB / 0.5641 GB, free: 59.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004078/0.4586, allocations: 189.8 kB / 0.5643 GB, free: 59.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.4587, allocations: 34.92 kB / 0.5643 GB, free: 59.67 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4587, allocations: 5.438 kB / 0.5643 GB, free: 59.67 MB / 414.1 MB Notification: Performance of Templates: time 0.03601/0.4947, allocations: 35.43 MB / 0.5989 GB, free: 24.39 MB / 414.1 MB 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)