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.001113/0.001112, allocations: 116.5 kB / 17.7 MB, free: 5.438 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.001235/0.001235, allocations: 191 kB / 18.63 MB, free: 4.508 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.318/1.318, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2749/0.2749, allocations: 48.83 MB / 320.7 MB, free: 11.04 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.001448/0.001448, allocations: 67.61 kB / 391.5 MB, free: 48.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09208/0.09354, allocations: 59.16 MB / 450.7 MB, free: 9.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.04395/0.1375, allocations: 44.33 MB / 495 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01188/0.1495, allocations: 9.274 MB / 0.4925 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004075/0.1499, allocations: 11.94 kB / 0.4925 GB, free: 3.254 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007527/0.1507, allocations: 210.5 kB / 0.4927 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005701/0.1513, allocations: 282 kB / 0.493 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01243/0.1637, allocations: 5.044 MB / 0.4979 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001019/0.1648, allocations: 0.7902 MB / 0.4987 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004133/0.1652, allocations: 262.5 kB / 0.4989 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006623/0.1659, allocations: 394.2 kB / 0.4993 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000348/0.1662, allocations: 298.7 kB / 0.4996 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.073e-05/0.1663, allocations: 32 kB / 0.4996 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01052/0.1768, allocations: 6.138 MB / 0.5056 GB, free: 5.797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.177, allocations: 87.61 kB / 0.5057 GB, free: 5.711 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003404/0.1773, allocations: 242.7 kB / 0.5059 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007532/0.1849, allocations: 3.696 MB / 0.5095 GB, free: 1.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.537e-06/0.1849, allocations: 7.984 kB / 0.5095 GB, free: 1.762 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1849, allocations: 4 kB / 0.5095 GB, free: 1.758 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.1849, allocations: 0 / 0.5095 GB, free: 1.758 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.002878/0.1878, allocations: 1.177 MB / 0.5107 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.1879, allocations: 11.89 kB / 0.5107 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002456/0.1881, allocations: 80.25 kB / 0.5108 GB, free: 452 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000533/0.1887, allocations: 370 kB / 0.5111 GB, free: 40 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.017e-05/0.1887, allocations: 25.03 kB / 0.5111 GB, free: 12 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.034e-05/0.1888, allocations: 28.42 kB / 0.5112 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009545/0.1897, allocations: 438.3 kB / 0.5116 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1898, allocations: 3.938 kB / 0.5116 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.567e-05/0.1898, allocations: 19.98 kB / 0.5116 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.1898, allocations: 8 kB / 0.5116 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.1911, allocations: 355.6 kB / 0.5119 GB, free: 15.14 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.002336/0.1934, allocations: 2.112 MB / 0.514 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.1947, allocations: 309 kB / 0.5143 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003849/0.1951, allocations: 105.7 kB / 0.5144 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2508/0.4459, allocations: 32.23 MB / 0.5459 GB, free: 70.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.446, allocations: 35.94 kB / 0.5459 GB, free: 70.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.884e-06/0.446, allocations: 1.344 kB / 0.5459 GB, free: 70.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.001776/0.4478, allocations: 417 kB / 0.5463 GB, free: 70.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.4478, allocations: 85.42 kB / 0.5464 GB, free: 70.53 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000506/0.4484, allocations: 438.9 kB / 0.5468 GB, free: 70.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.4484, allocations: 27.08 kB / 0.5468 GB, free: 70.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.4485, allocations: 229.9 kB / 0.5471 GB, free: 70.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.057e-05/0.4486, allocations: 60.52 kB / 0.5471 GB, free: 70.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.035e-05/0.4487, allocations: 51.47 kB / 0.5472 GB, free: 70.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.708e-05/0.4488, allocations: 358.1 kB / 0.5475 GB, free: 69.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003628/0.4491, allocations: 106.3 kB / 0.5476 GB, free: 69.94 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003691/0.4495, allocations: 159.7 kB / 0.5478 GB, free: 69.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006848/0.4502, allocations: 260.2 kB / 0.548 GB, free: 69.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.4502, allocations: 1.281 kB / 0.548 GB, free: 69.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.00094/0.4512, allocations: 328.6 kB / 0.5483 GB, free: 69.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.4512, allocations: 4.875 kB / 0.5483 GB, free: 69.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.4512, allocations: 6.156 kB / 0.5483 GB, free: 69.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.4513, allocations: 2.094 kB / 0.5483 GB, free: 69.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003615/0.4516, allocations: 68.97 kB / 0.5484 GB, free: 69.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.4516, allocations: 6 kB / 0.5484 GB, free: 69.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003783/0.452, allocations: 54.5 kB / 0.5485 GB, free: 69.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.028e-05/0.4521, allocations: 13.86 kB / 0.5485 GB, free: 69.71 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004063/0.4525, allocations: 195.5 kB / 0.5487 GB, free: 69.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000354/0.4528, allocations: 160.5 kB / 0.5488 GB, free: 69.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006696/0.4535, allocations: 263.9 kB / 0.5491 GB, free: 69.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.085e-06/0.4535, allocations: 1.156 kB / 0.5491 GB, free: 69.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0008779/0.4544, allocations: 318.4 kB / 0.5494 GB, free: 69.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.4544, allocations: 6.375 kB / 0.5494 GB, free: 69.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.4545, allocations: 2.5 kB / 0.5494 GB, free: 69.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.705e-06/0.4545, allocations: 3.406 kB / 0.5494 GB, free: 69.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003282/0.4548, allocations: 65.14 kB / 0.5494 GB, free: 69.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.4548, allocations: 14.67 kB / 0.5495 GB, free: 69.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.4552, allocations: 34.84 kB / 0.5495 GB, free: 69.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.4552, allocations: 9.094 kB / 0.5495 GB, free: 69.25 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 9.89e-05/0.4553, allocations: 199 kB / 0.5497 GB, free: 69.06 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.4554, allocations: 46.94 kB / 0.5497 GB, free: 69.04 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.4565, allocations: 445.1 kB / 0.5502 GB, free: 68.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.4565, allocations: 2.844 kB / 0.5502 GB, free: 68.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.4565, allocations: 0 / 0.5502 GB, free: 68.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.4565, allocations: 5.234 kB / 0.5502 GB, free: 68.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005322/0.457, allocations: 462 kB / 0.5506 GB, free: 68.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.457, allocations: 0 / 0.5506 GB, free: 68.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002833/0.4573, allocations: 55.17 kB / 0.5507 GB, free: 68.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.4573, allocations: 1.219 kB / 0.5507 GB, free: 68.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.4574, allocations: 5.031 kB / 0.5507 GB, free: 68.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.4574, allocations: 1.219 kB / 0.5507 GB, free: 68.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.4574, allocations: 1.125 kB / 0.5507 GB, free: 68.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008597/0.4582, allocations: 462 kB / 0.5511 GB, free: 68.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.4584, allocations: 128 kB / 0.5512 GB, free: 68.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.874e-05/0.4585, allocations: 11.78 kB / 0.5512 GB, free: 68.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003839/0.4588, allocations: 24.64 kB / 0.5513 GB, free: 68.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.942e-05/0.4589, allocations: 15.03 kB / 0.5513 GB, free: 68.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.4589, allocations: 7.375 kB / 0.5513 GB, free: 68.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004444/0.4594, allocations: 406.5 kB / 0.5517 GB, free: 67.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.82e-07/0.4594, allocations: 0 / 0.5517 GB, free: 67.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002674/0.4621, allocations: 0.9338 MB / 0.5526 GB, free: 67.8 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.00408/0.4662, allocations: 0.9645 MB / 0.5535 GB, free: 67.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001325/0.4675, allocations: 361.6 kB / 0.5539 GB, free: 67.42 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.4675, allocations: 1.938 kB / 0.5539 GB, free: 67.42 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000388/0.4679, allocations: 116.7 kB / 0.554 GB, free: 67.38 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.4693, allocations: 234.1 kB / 0.5542 GB, free: 67.26 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001598/0.4709, allocations: 0.7796 MB / 0.555 GB, free: 66.78 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.4712, allocations: 0.827 MB / 0.5558 GB, free: 66.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000396/0.4716, allocations: 163.7 kB / 0.5559 GB, free: 65.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.4717, allocations: 40.73 kB / 0.556 GB, free: 65.93 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4717, allocations: 0 / 0.556 GB, free: 65.93 MB / 414.1 MB Notification: Performance of Templates: time 0.03798/0.5097, allocations: 34.36 MB / 0.5895 GB, free: 34.93 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 -s gbode -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe 2>&1)