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.001174/0.001174, allocations: 110.9 kB / 16.51 MB, free: 6.715 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.001154/0.001154, allocations: 186.5 kB / 17.42 MB, free: 6.074 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.428/1.428, allocations: 205.1 MB / 223.3 MB, free: 12.39 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3052/0.3052, allocations: 48.83 MB / 319.4 MB, free: 11.32 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.001567/0.001567, allocations: 59.83 kB / 389.4 MB, free: 48.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09222/0.0938, allocations: 59.16 MB / 448.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.04367/0.1375, allocations: 45.29 MB / 493.8 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01199/0.1495, allocations: 10.04 MB / 0.492 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004974/0.1501, allocations: 11.88 kB / 0.4921 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006409/0.1508, allocations: 171 kB / 0.4922 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006133/0.1514, allocations: 266.3 kB / 0.4925 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01189/0.1633, allocations: 4.077 MB / 0.4964 GB, free: 14.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001316/0.1647, allocations: 1.036 MB / 0.4975 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003986/0.1651, allocations: 222.3 kB / 0.4977 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007265/0.1658, allocations: 366.3 kB / 0.498 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003509/0.1662, allocations: 294.7 kB / 0.4983 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.387e-05/0.1662, allocations: 16 kB / 0.4983 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0106/0.1768, allocations: 6.079 MB / 0.5043 GB, free: 6.215 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001496/0.177, allocations: 71.62 kB / 0.5043 GB, free: 6.145 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003106/0.1773, allocations: 234.7 kB / 0.5045 GB, free: 5.914 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007433/0.1848, allocations: 3.711 MB / 0.5082 GB, free: 2.195 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1848, allocations: 0 / 0.5082 GB, free: 2.195 MB / 398.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1848, allocations: 0 / 0.5082 GB, free: 2.195 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1848, allocations: 0 / 0.5082 GB, free: 2.195 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.002568/0.1874, allocations: 1.183 MB / 0.5093 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.1874, allocations: 8.031 kB / 0.5093 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002464/0.1877, allocations: 72.27 kB / 0.5094 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004094/0.1881, allocations: 369.9 kB / 0.5098 GB, free: 496 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.447e-05/0.1882, allocations: 25.03 kB / 0.5098 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.277e-05/0.1882, allocations: 28.38 kB / 0.5098 GB, free: 440 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009555/0.1892, allocations: 438.3 kB / 0.5102 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.1892, allocations: 3.938 kB / 0.5102 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.1892, allocations: 12 kB / 0.5102 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.1893, allocations: 12 kB / 0.5103 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.1905, allocations: 371.5 kB / 0.5106 GB, free: 15.57 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.002245/0.1927, allocations: 2.124 MB / 0.5127 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.1939, allocations: 301 kB / 0.513 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003778/0.1943, allocations: 113.7 kB / 0.5131 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2661/0.4604, allocations: 32.09 MB / 0.5444 GB, free: 72.06 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.4605, allocations: 35.84 kB / 0.5445 GB, free: 72.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 2.665e-06/0.4605, allocations: 4 kB / 0.5445 GB, free: 72.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.002034/0.4626, allocations: 417 kB / 0.5449 GB, free: 71.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.4626, allocations: 79.55 kB / 0.5449 GB, free: 71.89 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007607/0.4634, allocations: 436.4 kB / 0.5453 GB, free: 71.77 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.4634, allocations: 29.64 kB / 0.5454 GB, free: 71.74 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.4636, allocations: 227.5 kB / 0.5456 GB, free: 71.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.008e-05/0.4637, allocations: 60 kB / 0.5456 GB, free: 71.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.4638, allocations: 58 kB / 0.5457 GB, free: 71.62 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.4639, allocations: 358.2 kB / 0.546 GB, free: 71.31 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004008/0.4643, allocations: 100 kB / 0.5461 GB, free: 71.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004236/0.4648, allocations: 157.8 kB / 0.5463 GB, free: 71.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007723/0.4656, allocations: 260.5 kB / 0.5465 GB, free: 71.15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.4656, allocations: 1.25 kB / 0.5465 GB, free: 71.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000995/0.4666, allocations: 327.3 kB / 0.5469 GB, free: 71.1 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.4666, allocations: 5.438 kB / 0.5469 GB, free: 71.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.4666, allocations: 2.375 kB / 0.5469 GB, free: 71.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/0.4667, allocations: 7.719 kB / 0.5469 GB, free: 71.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003565/0.467, allocations: 70.3 kB / 0.5469 GB, free: 71.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.467, allocations: 3.75 kB / 0.5469 GB, free: 71.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004652/0.4675, allocations: 58.56 kB / 0.547 GB, free: 71.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-05/0.4676, allocations: 16.91 kB / 0.547 GB, free: 71.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004481/0.468, allocations: 195.2 kB / 0.5472 GB, free: 71 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003595/0.4684, allocations: 158.9 kB / 0.5473 GB, free: 70.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006906/0.4691, allocations: 262.6 kB / 0.5476 GB, free: 70.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.17e-06/0.4691, allocations: 2.5 kB / 0.5476 GB, free: 70.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0009643/0.4701, allocations: 315 kB / 0.5479 GB, free: 70.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.4701, allocations: 6.344 kB / 0.5479 GB, free: 70.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.4701, allocations: 10.61 kB / 0.5479 GB, free: 70.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.535e-06/0.4701, allocations: 3.781 kB / 0.5479 GB, free: 70.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000332/0.4705, allocations: 68.44 kB / 0.548 GB, free: 70.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.4705, allocations: 3.844 kB / 0.548 GB, free: 70.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004176/0.4709, allocations: 42.2 kB / 0.548 GB, free: 70.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.471, allocations: 8.094 kB / 0.548 GB, free: 70.68 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 0.0001013/0.4711, allocations: 196.2 kB / 0.5482 GB, free: 70.49 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.4712, allocations: 45.84 kB / 0.5483 GB, free: 70.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/0.4723, allocations: 452.1 kB / 0.5487 GB, free: 70.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.4723, allocations: 2.594 kB / 0.5487 GB, free: 70.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.4723, allocations: 0 / 0.5487 GB, free: 70.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.4723, allocations: 5.203 kB / 0.5487 GB, free: 70.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006282/0.4729, allocations: 459.5 kB / 0.5491 GB, free: 69.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.473, allocations: 2.25 kB / 0.5491 GB, free: 69.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002904/0.4733, allocations: 52.83 kB / 0.5492 GB, free: 69.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.265e-06/0.4733, allocations: 1.188 kB / 0.5492 GB, free: 69.81 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.4733, allocations: 4.5 kB / 0.5492 GB, free: 69.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.4733, allocations: 5.969 kB / 0.5492 GB, free: 69.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.4733, allocations: 3 kB / 0.5492 GB, free: 69.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000938/0.4743, allocations: 462.7 kB / 0.5497 GB, free: 69.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001628/0.4744, allocations: 119.7 kB / 0.5498 GB, free: 69.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/0.4746, allocations: 20.34 kB / 0.5498 GB, free: 69.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004043/0.475, allocations: 40.95 kB / 0.5498 GB, free: 69.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.975e-05/0.4751, allocations: 10.64 kB / 0.5498 GB, free: 69.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.4751, allocations: 9.516 kB / 0.5498 GB, free: 69.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005174/0.4756, allocations: 411.3 kB / 0.5502 GB, free: 69.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4756, allocations: 0 / 0.5502 GB, free: 69.08 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003118/0.4787, allocations: 0.9312 MB / 0.5511 GB, free: 68.99 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.004673/0.4834, allocations: 0.9576 MB / 0.5521 GB, free: 68.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.4849, allocations: 361.8 kB / 0.5524 GB, free: 68.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4849, allocations: 0 / 0.5524 GB, free: 68.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004201/0.4853, allocations: 111.1 kB / 0.5525 GB, free: 68.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/0.4869, allocations: 226.3 kB / 0.5527 GB, free: 68.47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.4884, allocations: 0.9273 MB / 0.5537 GB, free: 67.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.4886, allocations: 0.8246 MB / 0.5545 GB, free: 67.08 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004444/0.4891, allocations: 158.2 kB / 0.5546 GB, free: 67.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.4892, allocations: 41.2 kB / 0.5546 GB, free: 67 MB / 414.1 MB Notification: Performance of SimCode: time 1.533e-06/0.4892, allocations: 0 / 0.5546 GB, free: 67 MB / 414.1 MB Notification: Performance of Templates: time 0.04326/0.5325, allocations: 34.06 MB / 0.5879 GB, free: 35.95 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)