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.001082/0.001082, allocations: 110.4 kB / 17.75 MB, free: 5.336 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.00112/0.00112, allocations: 189.2 kB / 18.67 MB, free: 4.414 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.378/1.378, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2894/0.2894, allocations: 48.83 MB / 320.8 MB, free: 11.02 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.001581/0.001581, allocations: 75.88 kB / 451.2 MB, free: 8.566 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1103, allocations: 59.17 MB / 0.4984 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.295/0.4053, allocations: 46.47 MB / 0.5438 GB, free: 6.699 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0126/0.4179, allocations: 9.793 MB / 0.5534 GB, free: 1.836 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004043/0.4184, allocations: 5.5 kB / 0.5534 GB, free: 1.836 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008609/0.4192, allocations: 245.6 kB / 0.5536 GB, free: 1.723 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008252/0.4201, allocations: 295.6 kB / 0.5539 GB, free: 1.555 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01584/0.436, allocations: 4.689 MB / 0.5585 GB, free: 236 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001488/0.4375, allocations: 0.7591 MB / 0.5592 GB, free: 15.86 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005367/0.4381, allocations: 249.7 kB / 0.5594 GB, free: 15.76 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004329/0.4385, allocations: 283 kB / 0.5597 GB, free: 15.64 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003649/0.4389, allocations: 294.1 kB / 0.56 GB, free: 15.52 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.652e-05/0.4389, allocations: 30.16 kB / 0.56 GB, free: 15.52 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0167/0.4556, allocations: 6.21 MB / 0.5661 GB, free: 13.11 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002009/0.4559, allocations: 80.31 kB / 0.5662 GB, free: 13.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006265/0.4565, allocations: 226.3 kB / 0.5664 GB, free: 12.91 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0126/0.4691, allocations: 3.739 MB / 0.57 GB, free: 10.53 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.4692, allocations: 0 / 0.57 GB, free: 10.53 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.4692, allocations: 0 / 0.57 GB, free: 10.53 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.787e-05/0.4692, allocations: 0 / 0.57 GB, free: 10.53 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.004033/0.4733, allocations: 1.133 MB / 0.5711 GB, free: 9.691 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.4733, allocations: 11.86 kB / 0.5711 GB, free: 9.688 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003936/0.4737, allocations: 88.42 kB / 0.5712 GB, free: 9.645 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005531/0.4743, allocations: 334.8 kB / 0.5715 GB, free: 9.324 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.446e-05/0.4744, allocations: 34.78 kB / 0.5716 GB, free: 9.305 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.501e-05/0.4744, allocations: 30.12 kB / 0.5716 GB, free: 9.297 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008607/0.4753, allocations: 423.6 kB / 0.572 GB, free: 9.004 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.4753, allocations: 5.062 kB / 0.572 GB, free: 9 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.232e-05/0.4754, allocations: 15.47 kB / 0.572 GB, free: 8.988 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.4754, allocations: 12.09 kB / 0.572 GB, free: 8.984 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007038/0.4761, allocations: 288.3 kB / 0.5723 GB, free: 8.852 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.002181/0.4783, allocations: 2.209 MB / 0.5745 GB, free: 6.656 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006673/0.479, allocations: 252.6 kB / 0.5747 GB, free: 6.523 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.4792, allocations: 101.9 kB / 0.5748 GB, free: 6.469 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06366/0.5429, allocations: 32.12 MB / 0.6062 GB, free: 7.656 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.5429, allocations: 32.69 kB / 0.6062 GB, free: 7.617 MB / 462.1 MB Notification: Performance of pre-optimization done (n=25): time 2.585e-06/0.5429, allocations: 0 / 0.6062 GB, free: 7.617 MB / 462.1 MB Notification: Performance of matching and sorting (n=33): time 0.004619/0.5476, allocations: 1.451 MB / 0.6076 GB, free: 6.105 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.5476, allocations: 55.41 kB / 0.6077 GB, free: 6.039 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003551/0.548, allocations: 333.6 kB / 0.608 GB, free: 5.707 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.548, allocations: 29.7 kB / 0.608 GB, free: 5.672 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.5482, allocations: 204.4 kB / 0.6082 GB, free: 5.469 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.966e-05/0.5482, allocations: 114.3 kB / 0.6083 GB, free: 5.355 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.5484, allocations: 65.69 kB / 0.6084 GB, free: 5.285 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.5485, allocations: 346.8 kB / 0.6087 GB, free: 4.938 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.5488, allocations: 120.8 kB / 0.6088 GB, free: 4.816 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002713/0.549, allocations: 184.6 kB / 0.609 GB, free: 4.617 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004912/0.5495, allocations: 300.6 kB / 0.6093 GB, free: 4.305 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5495, allocations: 0 / 0.6093 GB, free: 4.305 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008875/0.5504, allocations: 434.5 kB / 0.6097 GB, free: 3.867 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.5505, allocations: 12 kB / 0.6097 GB, free: 3.855 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.5505, allocations: 0 / 0.6097 GB, free: 3.855 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004803/0.551, allocations: 97.56 kB / 0.6098 GB, free: 3.754 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003426/0.5513, allocations: 79.91 kB / 0.6099 GB, free: 3.676 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008672/0.5522, allocations: 1.112 MB / 0.611 GB, free: 2.512 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/0.5525, allocations: 16.92 kB / 0.611 GB, free: 2.496 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.471e-05/0.5525, allocations: 16 kB / 0.611 GB, free: 2.48 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002993/0.5528, allocations: 212.1 kB / 0.6112 GB, free: 2.27 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002133/0.553, allocations: 157.1 kB / 0.6114 GB, free: 2.098 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004193/0.5534, allocations: 288.9 kB / 0.6116 GB, free: 1.797 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.292e-06/0.5535, allocations: 0 / 0.6116 GB, free: 1.797 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0007861/0.5543, allocations: 438 kB / 0.6121 GB, free: 1.359 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.5543, allocations: 7.906 kB / 0.6121 GB, free: 1.352 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-06/0.5543, allocations: 0 / 0.6121 GB, free: 1.352 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004061/0.5547, allocations: 93.78 kB / 0.6122 GB, free: 1.254 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002938/0.555, allocations: 80.34 kB / 0.6122 GB, free: 1.176 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000723/0.5557, allocations: 1.113 MB / 0.6133 GB, free: 12 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.5559, allocations: 11.98 kB / 0.6133 GB, free: 0 / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.556, allocations: 12.11 kB / 0.6134 GB, free: 15.98 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.0001274/0.5561, allocations: 204.1 kB / 0.6135 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.998e-05/0.5562, allocations: 40.34 kB / 0.6136 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001559/0.5578, allocations: 1.178 MB / 0.6147 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.5578, allocations: 3.984 kB / 0.6147 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.5578, allocations: 0 / 0.6147 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.558, allocations: 156.3 kB / 0.6149 GB, free: 14.37 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.457e-05/0.558, allocations: 8 kB / 0.6149 GB, free: 14.36 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.5583, allocations: 12 kB / 0.6149 GB, free: 14.35 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.047e-05/0.5583, allocations: 31.89 kB / 0.6149 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001351/0.5597, allocations: 0.8104 MB / 0.6157 GB, free: 13.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001278/0.561, allocations: 1.161 MB / 0.6169 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003609/0.5614, allocations: 324.9 kB / 0.6172 GB, free: 12 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000201/0.5616, allocations: 231.2 kB / 0.6174 GB, free: 11.78 MB / 478.1 MB Notification: Performance of Backend: time 5.41e-07/0.5616, allocations: 0 / 0.6174 GB, free: 11.78 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006894/0.5685, allocations: 1.571 MB / 0.6189 GB, free: 10.21 MB / 478.1 MB Notification: Performance of SimCode: time 0.002077/0.5706, allocations: 1.597 MB / 0.6205 GB, free: 8.582 MB / 478.1 MB Notification: Performance of Templates: time 0.05116/0.6218, allocations: 39.71 MB / 0.6593 GB, free: 0.8008 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)