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.001361/0.001361, allocations: 105.3 kB / 16.62 MB, free: 6.816 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.001894/0.001894, allocations: 190 kB / 17.55 MB, free: 5.934 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.351/1.351, allocations: 205.1 MB / 223.4 MB, free: 12.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2796/0.2796, allocations: 48.83 MB / 319.6 MB, free: 11.27 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.001392/0.001393, allocations: 70.83 kB / 389.6 MB, free: 48.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09656/0.09796, allocations: 59.16 MB / 448.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.04451/0.1425, allocations: 46.54 MB / 495.3 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01174/0.1543, allocations: 9.909 MB / 0.4933 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004823/0.1548, allocations: 11.94 kB / 0.4933 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009081/0.1558, allocations: 210.9 kB / 0.4935 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006454/0.1565, allocations: 282.3 kB / 0.4938 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01198/0.1685, allocations: 4.133 MB / 0.4978 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001052/0.1695, allocations: 0.7707 MB / 0.4986 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003694/0.1699, allocations: 237.9 kB / 0.4988 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003705/0.1703, allocations: 286.9 kB / 0.4991 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003525/0.1707, allocations: 298.7 kB / 0.4994 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.717e-05/0.1707, allocations: 28 kB / 0.4994 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01062/0.1813, allocations: 6.126 MB / 0.5054 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.1815, allocations: 83.62 kB / 0.5055 GB, free: 5.004 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003139/0.1818, allocations: 226.9 kB / 0.5057 GB, free: 4.781 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006862/0.1887, allocations: 3.754 MB / 0.5094 GB, free: 1.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1887, allocations: 4 kB / 0.5094 GB, free: 1.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1887, allocations: 0 / 0.5094 GB, free: 1.016 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.1888, allocations: 0 / 0.5094 GB, free: 1.016 MB / 398.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.00269/0.1914, allocations: 1.134 MB / 0.5105 GB, free: 15.83 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.1915, allocations: 15.89 kB / 0.5105 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003988/0.1919, allocations: 92.42 kB / 0.5106 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.1923, allocations: 327.2 kB / 0.5109 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/0.1923, allocations: 28.97 kB / 0.5109 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.621e-05/0.1924, allocations: 32.38 kB / 0.5109 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000825/0.1932, allocations: 426 kB / 0.5114 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.1933, allocations: 0 / 0.5114 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.1933, allocations: 12 kB / 0.5114 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.1933, allocations: 8 kB / 0.5114 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006705/0.194, allocations: 290.3 kB / 0.5116 GB, free: 14.56 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.002062/0.1961, allocations: 2.204 MB / 0.5138 GB, free: 12.11 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006868/0.1968, allocations: 258.7 kB / 0.514 GB, free: 11.85 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/0.197, allocations: 100.8 kB / 0.5141 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2486/0.4455, allocations: 31.96 MB / 0.5454 GB, free: 71.69 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.4456, allocations: 36.03 kB / 0.5454 GB, free: 71.65 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.605e-06/0.4456, allocations: 0 / 0.5454 GB, free: 71.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.004651/0.4503, allocations: 1.446 MB / 0.5468 GB, free: 71.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.372e-05/0.4503, allocations: 62.22 kB / 0.5469 GB, free: 71.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000302/0.4506, allocations: 322 kB / 0.5472 GB, free: 71.03 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.4507, allocations: 30.77 kB / 0.5472 GB, free: 71 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.4508, allocations: 203.1 kB / 0.5474 GB, free: 70.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.12e-05/0.4508, allocations: 119.6 kB / 0.5475 GB, free: 70.79 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.451, allocations: 71.62 kB / 0.5476 GB, free: 70.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.803e-05/0.451, allocations: 347.8 kB / 0.5479 GB, free: 70.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.4513, allocations: 125.4 kB / 0.548 GB, free: 70.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002428/0.4515, allocations: 164.8 kB / 0.5482 GB, free: 70.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004569/0.452, allocations: 304.6 kB / 0.5485 GB, free: 70.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.452, allocations: 0 / 0.5485 GB, free: 70.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009423/0.4529, allocations: 444.6 kB / 0.5489 GB, free: 70.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.453, allocations: 5.406 kB / 0.5489 GB, free: 70.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.453, allocations: 2.891 kB / 0.5489 GB, free: 70.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004963/0.4535, allocations: 97.77 kB / 0.549 GB, free: 70.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003583/0.4539, allocations: 76.8 kB / 0.5491 GB, free: 70.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006539/0.4545, allocations: 1.116 MB / 0.5502 GB, free: 69.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003127/0.4548, allocations: 32.06 kB / 0.5502 GB, free: 69.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.599e-05/0.4549, allocations: 16.59 kB / 0.5502 GB, free: 69.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002889/0.4552, allocations: 218.7 kB / 0.5504 GB, free: 68.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002112/0.4554, allocations: 169.6 kB / 0.5506 GB, free: 68.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003895/0.4558, allocations: 289.3 kB / 0.5509 GB, free: 68.64 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.983e-06/0.4558, allocations: 1.25 kB / 0.5509 GB, free: 68.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0007767/0.4566, allocations: 421.7 kB / 0.5513 GB, free: 68.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.4566, allocations: 5.656 kB / 0.5513 GB, free: 68.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.636e-06/0.4566, allocations: 3.609 kB / 0.5513 GB, free: 68.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004366/0.4571, allocations: 93.38 kB / 0.5514 GB, free: 68.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003044/0.4574, allocations: 75.98 kB / 0.5514 GB, free: 68.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005998/0.458, allocations: 1.115 MB / 0.5525 GB, free: 67.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/0.4583, allocations: 37.84 kB / 0.5526 GB, free: 67.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.649e-05/0.4583, allocations: 14.28 kB / 0.5526 GB, free: 67.23 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.0001229/0.4584, allocations: 195.7 kB / 0.5528 GB, free: 67.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.853e-05/0.4585, allocations: 51.84 kB / 0.5528 GB, free: 67.01 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001552/0.4601, allocations: 1.179 MB / 0.554 GB, free: 66.33 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/0.4601, allocations: 12.75 kB / 0.554 GB, free: 66.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.4601, allocations: 0 / 0.554 GB, free: 66.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.4601, allocations: 0.875 kB / 0.554 GB, free: 66.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006668/0.4608, allocations: 0.6743 MB / 0.5546 GB, free: 65.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.4608, allocations: 0 / 0.5546 GB, free: 65.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003142/0.4611, allocations: 69.88 kB / 0.5547 GB, free: 65.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006197/0.4618, allocations: 144.7 kB / 0.5548 GB, free: 65.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.683e-05/0.4618, allocations: 6.312 kB / 0.5548 GB, free: 65.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006843/0.4625, allocations: 1.192 MB / 0.556 GB, free: 64.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.4625, allocations: 2.438 kB / 0.556 GB, free: 64.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.4642, allocations: 1.209 MB / 0.5572 GB, free: 63.85 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.4643, allocations: 160.2 kB / 0.5573 GB, free: 63.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.805e-05/0.4644, allocations: 4 kB / 0.5573 GB, free: 63.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.4647, allocations: 35.83 kB / 0.5574 GB, free: 63.67 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.978e-05/0.4648, allocations: 25.62 kB / 0.5574 GB, free: 63.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.4648, allocations: 11.94 kB / 0.5574 GB, free: 63.66 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001712/0.465, allocations: 228.6 kB / 0.5576 GB, free: 63.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.465, allocations: 0 / 0.5576 GB, free: 63.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002677/0.4676, allocations: 0.9283 MB / 0.5585 GB, free: 63.42 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.003327/0.471, allocations: 0.9899 MB / 0.5595 GB, free: 63.17 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.4725, allocations: 0.6935 MB / 0.5602 GB, free: 62.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.4726, allocations: 0 / 0.5602 GB, free: 62.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005493/0.4731, allocations: 391.5 kB / 0.5606 GB, free: 62.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.4742, allocations: 215.5 kB / 0.5608 GB, free: 62.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00163/0.4759, allocations: 1.483 MB / 0.5622 GB, free: 61.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.4761, allocations: 0.854 MB / 0.563 GB, free: 60.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003695/0.4765, allocations: 193.1 kB / 0.5632 GB, free: 60.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.466e-05/0.4766, allocations: 35.03 kB / 0.5633 GB, free: 60.7 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4766, allocations: 0 / 0.5633 GB, free: 60.7 MB / 414.1 MB Notification: Performance of Templates: time 0.03581/0.5124, allocations: 35.91 MB / 0.5983 GB, free: 25.07 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)