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.001096/0.001096, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001067/0.001068, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.352/1.352, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2747/0.2747, allocations: 48.78 MB / 320.8 MB, free: 11.12 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.000536/0.0005363, allocations: 14.8 kB / 391.8 MB, free: 50.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09111/0.09165, allocations: 60.26 MB / 452.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.04649/0.1382, allocations: 46.42 MB / 498.5 MB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01279/0.151, allocations: 10.4 MB / 0.497 GB, free: 168 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005318/0.1516, allocations: 7.938 kB / 0.497 GB, free: 160 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000809/0.1524, allocations: 203 kB / 0.4972 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008334/0.1533, allocations: 282.2 kB / 0.4974 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0133/0.1666, allocations: 3.754 MB / 0.5011 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001667/0.1683, allocations: 1.071 MB / 0.5022 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006077/0.1689, allocations: 205.7 kB / 0.5024 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005775/0.1695, allocations: 258.8 kB / 0.5026 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005675/0.1701, allocations: 290.7 kB / 0.5029 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.406e-05/0.1702, allocations: 16 kB / 0.5029 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01185/0.182, allocations: 6.15 MB / 0.5089 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.1822, allocations: 67.62 kB / 0.509 GB, free: 3.855 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003108/0.1825, allocations: 236.7 kB / 0.5092 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007647/0.1901, allocations: 3.722 MB / 0.5128 GB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1902, allocations: 0 / 0.5128 GB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1902, allocations: 0 / 0.5128 GB, free: 15.89 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.1902, allocations: 0 / 0.5128 GB, free: 15.89 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.003093/0.1933, allocations: 1.064 MB / 0.5139 GB, free: 14.77 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1933, allocations: 11.97 kB / 0.5139 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004253/0.1938, allocations: 88.33 kB / 0.514 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004597/0.1942, allocations: 327.3 kB / 0.5143 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.1943, allocations: 25.03 kB / 0.5143 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.706e-05/0.1944, allocations: 40.3 kB / 0.5143 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009094/0.1953, allocations: 426 kB / 0.5147 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.1953, allocations: 0 / 0.5147 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.463e-05/0.1954, allocations: 16 kB / 0.5148 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.1954, allocations: 8 kB / 0.5148 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007156/0.1961, allocations: 294.3 kB / 0.515 GB, free: 13.49 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.002131/0.1982, allocations: 2.208 MB / 0.5172 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006912/0.1989, allocations: 266.7 kB / 0.5175 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001975/0.1992, allocations: 100.8 kB / 0.5176 GB, free: 10.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2615/0.4607, allocations: 32.28 MB / 0.5491 GB, free: 70.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.218e-05/0.4607, allocations: 36.73 kB / 0.5491 GB, free: 70.53 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.044e-06/0.4608, allocations: 0 / 0.5491 GB, free: 70.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.004686/0.4655, allocations: 1.473 MB / 0.5506 GB, free: 70.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.122e-05/0.4655, allocations: 55.88 kB / 0.5506 GB, free: 69.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003534/0.4659, allocations: 325.3 kB / 0.5509 GB, free: 69.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.4659, allocations: 31.95 kB / 0.5509 GB, free: 69.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.466, allocations: 205.1 kB / 0.5511 GB, free: 69.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.003e-05/0.4661, allocations: 118.5 kB / 0.5513 GB, free: 69.56 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.615e-05/0.4662, allocations: 40.48 kB / 0.5513 GB, free: 69.54 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.725e-05/0.4662, allocations: 350.8 kB / 0.5516 GB, free: 69.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/0.4665, allocations: 117.1 kB / 0.5517 GB, free: 69.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.4668, allocations: 171.1 kB / 0.5519 GB, free: 69.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004742/0.4672, allocations: 310.9 kB / 0.5522 GB, free: 69.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4672, allocations: 1.094 kB / 0.5522 GB, free: 69.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000902/0.4682, allocations: 449.4 kB / 0.5526 GB, free: 68.78 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.406e-05/0.4682, allocations: 127.9 kB / 0.5528 GB, free: 68.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.4682, allocations: 1.469 kB / 0.5528 GB, free: 68.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004745/0.4687, allocations: 88.23 kB / 0.5528 GB, free: 68.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003214/0.469, allocations: 80.39 kB / 0.5529 GB, free: 68.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005908/0.4696, allocations: 1.118 MB / 0.554 GB, free: 67.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.47, allocations: 39.41 kB / 0.554 GB, free: 67.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.865e-05/0.47, allocations: 13.81 kB / 0.5541 GB, free: 67.44 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.774e-06/0.47, allocations: 3.781 kB / 0.5541 GB, free: 67.44 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007466/0.4708, allocations: 380.3 kB / 0.5544 GB, free: 67.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.4708, allocations: 1.094 kB / 0.5544 GB, free: 67.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004214/0.4712, allocations: 93.38 kB / 0.5545 GB, free: 67.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.4715, allocations: 81.3 kB / 0.5546 GB, free: 67.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005409/0.4721, allocations: 1.117 MB / 0.5557 GB, free: 66.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.4723, allocations: 34.88 kB / 0.5557 GB, free: 66.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.22e-05/0.4724, allocations: 17.16 kB / 0.5557 GB, free: 66.05 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.0001497/0.4725, allocations: 231.7 kB / 0.556 GB, free: 65.83 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.628e-05/0.4726, allocations: 42.72 kB / 0.556 GB, free: 65.81 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.4741, allocations: 1.177 MB / 0.5571 GB, free: 65.13 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.4741, allocations: 13.36 kB / 0.5572 GB, free: 65.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4741, allocations: 0 / 0.5572 GB, free: 65.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.4741, allocations: 1.219 kB / 0.5572 GB, free: 65.12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007756/0.4749, allocations: 0.6766 MB / 0.5578 GB, free: 64.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.4749, allocations: 1.5 kB / 0.5578 GB, free: 64.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003215/0.4753, allocations: 63.12 kB / 0.5579 GB, free: 64.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006172/0.4759, allocations: 145 kB / 0.558 GB, free: 64.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/0.4759, allocations: 7.219 kB / 0.558 GB, free: 64.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000612/0.4765, allocations: 1.196 MB / 0.5592 GB, free: 63.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4766, allocations: 0 / 0.5592 GB, free: 63.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.4779, allocations: 1.222 MB / 0.5604 GB, free: 62.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.4781, allocations: 155.4 kB / 0.5605 GB, free: 62.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.604e-05/0.4781, allocations: 13.36 kB / 0.5605 GB, free: 62.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.4784, allocations: 29.64 kB / 0.5606 GB, free: 62.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.568e-05/0.4785, allocations: 22.97 kB / 0.5606 GB, free: 62.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.4785, allocations: 12.23 kB / 0.5606 GB, free: 62.44 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001731/0.4787, allocations: 227.9 kB / 0.5608 GB, free: 62.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4787, allocations: 1.375 kB / 0.5608 GB, free: 62.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002113/0.4808, allocations: 0.9316 MB / 0.5617 GB, free: 62.2 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.003456/0.4843, allocations: 0.9711 MB / 0.5627 GB, free: 61.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.4855, allocations: 0.6907 MB / 0.5634 GB, free: 61.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4855, allocations: 0 / 0.5634 GB, free: 61.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005307/0.4861, allocations: 379.1 kB / 0.5637 GB, free: 61.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.4872, allocations: 204 kB / 0.5639 GB, free: 61.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.4888, allocations: 1.592 MB / 0.5655 GB, free: 60.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001953/0.489, allocations: 0.8518 MB / 0.5663 GB, free: 59.47 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003416/0.4893, allocations: 194.8 kB / 0.5665 GB, free: 59.38 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.523e-05/0.4894, allocations: 42.73 kB / 0.5665 GB, free: 59.36 MB / 414.1 MB Notification: Performance of SimCode: time 4.3e-07/0.4894, allocations: 0 / 0.5665 GB, free: 59.36 MB / 414.1 MB Notification: Performance of Templates: time 0.03714/0.5266, allocations: 35.36 MB / 0.6011 GB, free: 24.29 MB / 414.1 MB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: