Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.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.TestValveChoked,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked") translateModel(ThermoPower.Test.WaterComponents.TestValveChoked,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001722/0.001722, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001985/0.001985, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.403/1.403, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2815/0.2815, allocations: 48.85 MB / 320.6 MB, free: 11.07 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.001564/0.001564, allocations: 70.73 kB / 390.7 MB, free: 48.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1164, allocations: 59.16 MB / 449.9 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.05175/0.1682, allocations: 44.33 MB / 494.2 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01331/0.1815, allocations: 9.274 MB / 0.4917 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007338/0.1823, allocations: 7.938 kB / 0.4917 GB, free: 3.957 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009942/0.1834, allocations: 206.5 kB / 0.4919 GB, free: 3.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001035/0.1845, allocations: 278.1 kB / 0.4922 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01688/0.2014, allocations: 5.041 MB / 0.4971 GB, free: 14.42 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.2027, allocations: 0.7941 MB / 0.4979 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000587/0.2033, allocations: 270.4 kB / 0.4981 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009264/0.2042, allocations: 382.3 kB / 0.4985 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005921/0.2048, allocations: 294.6 kB / 0.4988 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.733e-05/0.2049, allocations: 35.98 kB / 0.4988 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01289/0.2178, allocations: 6.009 MB / 0.5047 GB, free: 6.641 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001889/0.2181, allocations: 83.62 kB / 0.5048 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004642/0.2186, allocations: 238.8 kB / 0.505 GB, free: 6.324 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.2289, allocations: 3.707 MB / 0.5086 GB, free: 2.609 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.229, allocations: 0 / 0.5086 GB, free: 2.609 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.229, allocations: 0 / 0.5086 GB, free: 2.609 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.348e-05/0.229, allocations: 0 / 0.5086 GB, free: 2.609 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.004435/0.2335, allocations: 1.181 MB / 0.5098 GB, free: 1.379 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.2336, allocations: 15.89 kB / 0.5098 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003563/0.2339, allocations: 68.27 kB / 0.5098 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006313/0.2346, allocations: 366 kB / 0.5102 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/0.2346, allocations: 25.03 kB / 0.5102 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.186e-05/0.2347, allocations: 32.38 kB / 0.5103 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.2358, allocations: 438.3 kB / 0.5107 GB, free: 384 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.2358, allocations: 0 / 0.5107 GB, free: 384 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.607e-05/0.2359, allocations: 12 kB / 0.5107 GB, free: 372 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.2359, allocations: 8 kB / 0.5107 GB, free: 364 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.2372, allocations: 363.6 kB / 0.511 GB, free: 0 / 398.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.002845/0.24, allocations: 2.124 MB / 0.5131 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.2413, allocations: 305 kB / 0.5134 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003922/0.2418, allocations: 109.7 kB / 0.5135 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3093/0.5511, allocations: 32.1 MB / 0.5449 GB, free: 72.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.5511, allocations: 37.67 kB / 0.5449 GB, free: 72.19 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 2.395e-06/0.5511, allocations: 0 / 0.5449 GB, free: 72.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.001686/0.5528, allocations: 425.5 kB / 0.5453 GB, free: 72.15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.5529, allocations: 83.23 kB / 0.5454 GB, free: 72.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004654/0.5534, allocations: 434.4 kB / 0.5458 GB, free: 71.94 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.5534, allocations: 31.08 kB / 0.5458 GB, free: 71.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.5535, allocations: 231 kB / 0.546 GB, free: 71.82 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.471e-05/0.5536, allocations: 55.92 kB / 0.5461 GB, free: 71.81 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.463e-05/0.5537, allocations: 52.2 kB / 0.5461 GB, free: 71.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.354e-05/0.5538, allocations: 362.8 kB / 0.5465 GB, free: 71.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003584/0.5541, allocations: 97.2 kB / 0.5466 GB, free: 71.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003798/0.5545, allocations: 155.8 kB / 0.5467 GB, free: 71.4 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007489/0.5553, allocations: 263.4 kB / 0.547 GB, free: 71.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.5553, allocations: 1.156 kB / 0.547 GB, free: 71.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009049/0.5562, allocations: 330.9 kB / 0.5473 GB, free: 71.26 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.5562, allocations: 5.812 kB / 0.5473 GB, free: 71.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.5562, allocations: 2.906 kB / 0.5473 GB, free: 71.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.5563, allocations: 2.938 kB / 0.5473 GB, free: 71.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003449/0.5566, allocations: 72.59 kB / 0.5474 GB, free: 71.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.5566, allocations: 2.781 kB / 0.5474 GB, free: 71.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003384/0.557, allocations: 53.14 kB / 0.5474 GB, free: 71.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.578e-05/0.557, allocations: 11.92 kB / 0.5474 GB, free: 71.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004068/0.5574, allocations: 198.8 kB / 0.5476 GB, free: 71.16 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003427/0.5578, allocations: 158.5 kB / 0.5478 GB, free: 71.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006693/0.5585, allocations: 262.2 kB / 0.548 GB, free: 70.92 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.443e-06/0.5585, allocations: 0 / 0.548 GB, free: 70.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0008508/0.5593, allocations: 319.3 kB / 0.5483 GB, free: 70.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.168e-06/0.5593, allocations: 5.281 kB / 0.5483 GB, free: 70.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.808e-06/0.5594, allocations: 2.531 kB / 0.5483 GB, free: 70.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.391e-06/0.5594, allocations: 4.062 kB / 0.5484 GB, free: 70.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003108/0.5597, allocations: 68.17 kB / 0.5484 GB, free: 70.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.5597, allocations: 6.906 kB / 0.5484 GB, free: 70.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.56, allocations: 36.31 kB / 0.5485 GB, free: 70.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.56, allocations: 13.09 kB / 0.5485 GB, free: 70.79 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 2 (ValveVap.fluidState.phase,ValveLiqChocked.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.992e-05/0.5601, allocations: 190.5 kB / 0.5487 GB, free: 70.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.19e-05/0.5602, allocations: 46.78 kB / 0.5487 GB, free: 70.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.5613, allocations: 454.9 kB / 0.5491 GB, free: 70.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.5613, allocations: 2.312 kB / 0.5491 GB, free: 70.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.5613, allocations: 1.219 kB / 0.5491 GB, free: 70.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.5613, allocations: 3.984 kB / 0.5491 GB, free: 70.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005166/0.5618, allocations: 460.2 kB / 0.5496 GB, free: 70.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.5618, allocations: 0 / 0.5496 GB, free: 70.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002792/0.5621, allocations: 58.05 kB / 0.5496 GB, free: 70.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.5621, allocations: 2.438 kB / 0.5496 GB, free: 70.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.5621, allocations: 8.562 kB / 0.5496 GB, free: 70.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.5622, allocations: 1.438 kB / 0.5496 GB, free: 70.11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.5622, allocations: 0 / 0.5496 GB, free: 70.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008444/0.563, allocations: 458.2 kB / 0.5501 GB, free: 69.83 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.358e-05/0.5631, allocations: 122.6 kB / 0.5502 GB, free: 69.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.51e-05/0.5632, allocations: 16.75 kB / 0.5502 GB, free: 69.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003292/0.5635, allocations: 23.73 kB / 0.5502 GB, free: 69.69 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.5636, allocations: 18.66 kB / 0.5503 GB, free: 69.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.5636, allocations: 8.266 kB / 0.5503 GB, free: 69.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004414/0.5641, allocations: 413.2 kB / 0.5507 GB, free: 69.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5641, allocations: 0 / 0.5507 GB, free: 69.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003058/0.5671, allocations: 0.9251 MB / 0.5516 GB, free: 69.37 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003344/0.5705, allocations: 0.9626 MB / 0.5525 GB, free: 69.13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.5718, allocations: 374.4 kB / 0.5529 GB, free: 69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.5718, allocations: 0.875 kB / 0.5529 GB, free: 69 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003639/0.5722, allocations: 117.4 kB / 0.553 GB, free: 68.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/0.5736, allocations: 234.8 kB / 0.5532 GB, free: 68.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.5751, allocations: 0.8186 MB / 0.554 GB, free: 68.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.5754, allocations: 0.8274 MB / 0.5548 GB, free: 67.56 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.981e-05/0.5755, allocations: 42.92 kB / 0.5548 GB, free: 67.54 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.5755, allocations: 0 / 0.5548 GB, free: 67.54 MB / 414.1 MB Notification: Performance of Templates: time 0.02506/0.6005, allocations: 20.18 MB / 0.5745 GB, free: 50.48 MB / 414.1 MB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe 2>&1)