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.001495/0.001501, allocations: 113.5 kB / 17.7 MB, free: 5.309 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.001716/0.001716, allocations: 191 kB / 18.63 MB, free: 4.375 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.32/1.32, allocations: 205.1 MB / 224.5 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2594/0.2594, allocations: 48.84 MB / 320.7 MB, free: 11.05 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.001454/0.001454, allocations: 74.31 kB / 391.5 MB, free: 48.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07824/0.07971, allocations: 59.17 MB / 450.7 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.0425/0.1222, allocations: 46.46 MB / 497.2 MB, free: 10.42 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01082/0.1331, allocations: 9.803 MB / 0.4951 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002772/0.1334, allocations: 7.938 kB / 0.4951 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006475/0.1341, allocations: 246.4 kB / 0.4953 GB, free: 340 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005107/0.1346, allocations: 302 kB / 0.4956 GB, free: 36 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01043/0.1451, allocations: 4.679 MB / 0.5002 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008837/0.146, allocations: 0.7707 MB / 0.5009 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003641/0.1463, allocations: 241.8 kB / 0.5012 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003234/0.1467, allocations: 286.8 kB / 0.5014 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003109/0.147, allocations: 290.8 kB / 0.5017 GB, free: 9.758 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.174e-05/0.147, allocations: 28 kB / 0.5017 GB, free: 9.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009959/0.157, allocations: 6.212 MB / 0.5078 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.815e-05/0.1571, allocations: 71.7 kB / 0.5079 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002789/0.1574, allocations: 230.9 kB / 0.5081 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006497/0.1639, allocations: 3.735 MB / 0.5117 GB, free: 15.47 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.164, allocations: 0 / 0.5117 GB, free: 15.47 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.164, allocations: 0 / 0.5117 GB, free: 15.47 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.164, allocations: 0 / 0.5117 GB, free: 15.47 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.002461/0.1664, allocations: 1.142 MB / 0.5129 GB, free: 14.28 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1665, allocations: 15.89 kB / 0.5129 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003936/0.1669, allocations: 88.36 kB / 0.513 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004699/0.1674, allocations: 339.2 kB / 0.5133 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.1674, allocations: 29.03 kB / 0.5133 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.137e-05/0.1675, allocations: 32.38 kB / 0.5133 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.1685, allocations: 418 kB / 0.5137 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.1685, allocations: 0 / 0.5137 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.952e-05/0.1686, allocations: 20 kB / 0.5138 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.1686, allocations: 8 kB / 0.5138 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008248/0.1695, allocations: 286.3 kB / 0.514 GB, free: 13.01 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.001922/0.1714, allocations: 2.212 MB / 0.5162 GB, free: 10.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006733/0.1721, allocations: 258.6 kB / 0.5164 GB, free: 10.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.1723, allocations: 108.8 kB / 0.5165 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2154/0.3877, allocations: 32.1 MB / 0.5479 GB, free: 70.33 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.3878, allocations: 35.89 kB / 0.5479 GB, free: 70.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.655e-06/0.3878, allocations: 0 / 0.5479 GB, free: 70.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.004444/0.3922, allocations: 1.45 MB / 0.5493 GB, free: 69.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.987e-05/0.3923, allocations: 56.75 kB / 0.5494 GB, free: 69.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003064/0.3926, allocations: 324.2 kB / 0.5497 GB, free: 69.58 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.3926, allocations: 30.83 kB / 0.5497 GB, free: 69.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3927, allocations: 202.3 kB / 0.5499 GB, free: 69.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.64e-05/0.3928, allocations: 114.7 kB / 0.55 GB, free: 69.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.3929, allocations: 74.88 kB / 0.5501 GB, free: 69.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.976e-05/0.393, allocations: 348.5 kB / 0.5504 GB, free: 68.99 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000227/0.3932, allocations: 125.2 kB / 0.5506 GB, free: 68.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.3934, allocations: 169.3 kB / 0.5507 GB, free: 68.9 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004698/0.3939, allocations: 305 kB / 0.551 GB, free: 68.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3939, allocations: 0 / 0.551 GB, free: 68.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008861/0.3948, allocations: 442.3 kB / 0.5514 GB, free: 68.67 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.3948, allocations: 7.594 kB / 0.5514 GB, free: 68.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3949, allocations: 1.375 kB / 0.5514 GB, free: 68.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004741/0.3953, allocations: 92.61 kB / 0.5515 GB, free: 68.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000346/0.3957, allocations: 81.7 kB / 0.5516 GB, free: 68.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006193/0.3963, allocations: 1.106 MB / 0.5527 GB, free: 67.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002436/0.3966, allocations: 13.38 kB / 0.5527 GB, free: 67.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.422e-05/0.3966, allocations: 19.08 kB / 0.5527 GB, free: 67.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002705/0.3969, allocations: 214.3 kB / 0.5529 GB, free: 67.35 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001978/0.3971, allocations: 164.6 kB / 0.5531 GB, free: 67.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003831/0.3975, allocations: 287.9 kB / 0.5534 GB, free: 67.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.605e-06/0.3975, allocations: 5.469 kB / 0.5534 GB, free: 67.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0007851/0.3983, allocations: 433.8 kB / 0.5538 GB, free: 66.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.899e-06/0.3983, allocations: 5.562 kB / 0.5538 GB, free: 66.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.3983, allocations: 3.875 kB / 0.5538 GB, free: 66.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004264/0.3988, allocations: 89.33 kB / 0.5539 GB, free: 66.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.3991, allocations: 82.58 kB / 0.5539 GB, free: 66.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005536/0.3997, allocations: 1.113 MB / 0.555 GB, free: 65.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.3999, allocations: 10.84 kB / 0.555 GB, free: 65.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.3999, allocations: 14.16 kB / 0.5551 GB, free: 65.66 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 9.495e-05/0.4, allocations: 201.4 kB / 0.5552 GB, free: 65.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.319e-05/0.4001, allocations: 38.31 kB / 0.5553 GB, free: 65.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001511/0.4016, allocations: 1.18 MB / 0.5564 GB, free: 64.76 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/0.4016, allocations: 13.89 kB / 0.5564 GB, free: 64.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4017, allocations: 0 / 0.5564 GB, free: 64.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.4017, allocations: 0.5312 kB / 0.5564 GB, free: 64.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006721/0.4023, allocations: 0.6785 MB / 0.5571 GB, free: 64.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.4024, allocations: 0 / 0.5571 GB, free: 64.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002994/0.4027, allocations: 58.97 kB / 0.5572 GB, free: 64.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005484/0.4032, allocations: 150.1 kB / 0.5573 GB, free: 64.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.4033, allocations: 9.906 kB / 0.5573 GB, free: 64.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005622/0.4038, allocations: 1.19 MB / 0.5585 GB, free: 63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.4038, allocations: 3.75 kB / 0.5585 GB, free: 63 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.4052, allocations: 1.207 MB / 0.5597 GB, free: 62.28 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.4054, allocations: 157.1 kB / 0.5598 GB, free: 62.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.729e-05/0.4054, allocations: 13.03 kB / 0.5598 GB, free: 62.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.4057, allocations: 10.83 kB / 0.5598 GB, free: 62.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.182e-05/0.4057, allocations: 23.88 kB / 0.5599 GB, free: 62.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.4057, allocations: 6.875 kB / 0.5599 GB, free: 62.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001804/0.4059, allocations: 229.2 kB / 0.5601 GB, free: 61.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.31e-07/0.4059, allocations: 4 kB / 0.5601 GB, free: 61.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001972/0.4079, allocations: 0.9297 MB / 0.561 GB, free: 61.86 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.003477/0.4114, allocations: 0.9763 MB / 0.562 GB, free: 61.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.4127, allocations: 0.6769 MB / 0.5626 GB, free: 61.33 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4127, allocations: 0 / 0.5626 GB, free: 61.33 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005369/0.4133, allocations: 397.4 kB / 0.563 GB, free: 61.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009923/0.4143, allocations: 207.9 kB / 0.5632 GB, free: 61.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.4158, allocations: 1.265 MB / 0.5644 GB, free: 60.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.4161, allocations: 0.8511 MB / 0.5653 GB, free: 59.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003147/0.4164, allocations: 195 kB / 0.5654 GB, free: 59.4 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.681e-05/0.4165, allocations: 40.31 kB / 0.5655 GB, free: 59.39 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4165, allocations: 0 / 0.5655 GB, free: 59.39 MB / 414.1 MB Notification: Performance of Templates: time 0.03707/0.4536, allocations: 35.88 MB / 0.6005 GB, free: 23.57 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 -s gbode -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1)