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.000999/0.0009987, allocations: 90.73 kB / 16.31 MB, free: 5.539 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.0008979/0.0008983, allocations: 184.5 kB / 17.21 MB, free: 5.457 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.765/1.765, allocations: 205.4 MB / 223.4 MB, free: 13.14 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3234/0.3234, allocations: 48.78 MB / 320.4 MB, free: 11.21 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.0005088/0.0005089, allocations: 14.08 kB / 391.2 MB, free: 50.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1024, allocations: 60.27 MB / 451.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.03719/0.1396, allocations: 41.31 MB / 492.7 MB, free: 128 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01095/0.1506, allocations: 8.686 MB / 0.4897 GB, free: 7.418 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000346/0.151, allocations: 11.94 kB / 0.4897 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000556/0.1516, allocations: 162.8 kB / 0.4898 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005699/0.1521, allocations: 298 kB / 0.4901 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01196/0.1641, allocations: 3.869 MB / 0.4939 GB, free: 3.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001331/0.1655, allocations: 0.8916 MB / 0.4948 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004719/0.1659, allocations: 197.8 kB / 0.495 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007944/0.1667, allocations: 354.4 kB / 0.4953 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000376/0.1671, allocations: 274.8 kB / 0.4956 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.1672, allocations: 20 kB / 0.4956 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01095/0.1781, allocations: 5.849 MB / 0.5013 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.1783, allocations: 63.69 kB / 0.5014 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002308/0.1786, allocations: 113.5 kB / 0.5015 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004911/0.1835, allocations: 2.456 MB / 0.5039 GB, free: 8.844 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.1835, allocations: 0 / 0.5039 GB, free: 8.844 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1835, allocations: 3.938 kB / 0.5039 GB, free: 8.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.495e-06/0.1836, allocations: 0 / 0.5039 GB, free: 8.84 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.003364/0.1869, allocations: 1.122 MB / 0.505 GB, free: 7.668 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.187, allocations: 16.03 kB / 0.505 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003408/0.1873, allocations: 63.42 kB / 0.505 GB, free: 7.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.1878, allocations: 356.9 kB / 0.5054 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.177e-05/0.1878, allocations: 28.66 kB / 0.5054 GB, free: 7.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.117e-05/0.1879, allocations: 28 kB / 0.5054 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000903/0.1888, allocations: 438.5 kB / 0.5058 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1888, allocations: 4 kB / 0.5058 GB, free: 6.672 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.985e-05/0.1889, allocations: 12 kB / 0.5059 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.1889, allocations: 8 kB / 0.5059 GB, free: 6.652 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.1899, allocations: 379.6 kB / 0.5062 GB, free: 6.281 MB / 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.002405/0.1924, allocations: 2.148 MB / 0.5083 GB, free: 3.949 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.1935, allocations: 341.1 kB / 0.5087 GB, free: 3.598 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003342/0.1938, allocations: 117.7 kB / 0.5088 GB, free: 3.477 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2502/0.4441, allocations: 32.41 MB / 0.5404 GB, free: 77.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.4441, allocations: 34.59 kB / 0.5404 GB, free: 77.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.793e-06/0.4441, allocations: 5.875 kB / 0.5405 GB, free: 77.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.001633/0.4458, allocations: 450.9 kB / 0.5409 GB, free: 77.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.929e-05/0.4458, allocations: 84.64 kB / 0.541 GB, free: 77.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004136/0.4462, allocations: 430.8 kB / 0.5414 GB, free: 77.45 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.4463, allocations: 29.27 kB / 0.5414 GB, free: 77.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.4464, allocations: 227.5 kB / 0.5416 GB, free: 77.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.392e-05/0.4464, allocations: 59.19 kB / 0.5417 GB, free: 77.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.493e-05/0.4465, allocations: 3.062 kB / 0.5417 GB, free: 77.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.575e-05/0.4466, allocations: 359.9 kB / 0.542 GB, free: 77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003181/0.4469, allocations: 96.58 kB / 0.5421 GB, free: 77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003718/0.4473, allocations: 163.5 kB / 0.5423 GB, free: 76.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000502/0.4478, allocations: 119.2 kB / 0.5424 GB, free: 76.92 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.4478, allocations: 5.406 kB / 0.5424 GB, free: 76.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001232/0.449, allocations: 340.9 kB / 0.5427 GB, free: 76.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.099e-05/0.4491, allocations: 142.9 kB / 0.5429 GB, free: 76.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-06/0.4492, allocations: 1.594 kB / 0.5429 GB, free: 76.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.4492, allocations: 5.25 kB / 0.5429 GB, free: 76.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004648/0.4497, allocations: 72.23 kB / 0.5429 GB, free: 76.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.4497, allocations: 3.125 kB / 0.5429 GB, free: 76.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003973/0.4501, allocations: 68.98 kB / 0.543 GB, free: 76.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.4501, allocations: 14.25 kB / 0.543 GB, free: 76.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.122e-06/0.4502, allocations: 3.25 kB / 0.543 GB, free: 76.66 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007123/0.4509, allocations: 264.1 kB / 0.5433 GB, free: 76.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.4509, allocations: 2.781 kB / 0.5433 GB, free: 76.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.671e-06/0.4509, allocations: 3.812 kB / 0.5433 GB, free: 76.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002892/0.4512, allocations: 73.8 kB / 0.5433 GB, free: 76.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.4512, allocations: 3.531 kB / 0.5433 GB, free: 76.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002942/0.4515, allocations: 60.14 kB / 0.5434 GB, free: 76.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.4515, allocations: 9.156 kB / 0.5434 GB, free: 76.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001604/0.4517, allocations: 230.1 kB / 0.5436 GB, free: 76.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.927e-05/0.4518, allocations: 48.94 kB / 0.5437 GB, free: 76.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/0.4528, allocations: 475.5 kB / 0.5441 GB, free: 76.31 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.4528, allocations: 4.781 kB / 0.5441 GB, free: 76.31 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4528, allocations: 3.938 kB / 0.5441 GB, free: 76.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4528, allocations: 5.047 kB / 0.5441 GB, free: 76.3 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005103/0.4533, allocations: 457.5 kB / 0.5446 GB, free: 76.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.4534, allocations: 2.844 kB / 0.5446 GB, free: 76.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.4536, allocations: 60.08 kB / 0.5446 GB, free: 76.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.4536, allocations: 1.406 kB / 0.5446 GB, free: 76.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.4536, allocations: 5 kB / 0.5446 GB, free: 76.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.4537, allocations: 1.438 kB / 0.5446 GB, free: 76.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4537, allocations: 0 / 0.5446 GB, free: 76.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00084/0.4545, allocations: 486.1 kB / 0.5451 GB, free: 75.78 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.4546, allocations: 161.3 kB / 0.5453 GB, free: 75.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.355e-05/0.4547, allocations: 2.281 kB / 0.5453 GB, free: 75.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003894/0.4551, allocations: 41.69 kB / 0.5453 GB, free: 75.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.432e-05/0.4552, allocations: 11.8 kB / 0.5453 GB, free: 75.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.4552, allocations: 9.797 kB / 0.5453 GB, free: 75.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003872/0.4556, allocations: 403 kB / 0.5457 GB, free: 75.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4556, allocations: 0 / 0.5457 GB, free: 75.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002617/0.4582, allocations: 0.934 MB / 0.5466 GB, free: 75.32 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002941/0.4611, allocations: 0.9615 MB / 0.5476 GB, free: 75.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.4623, allocations: 384.5 kB / 0.5479 GB, free: 74.94 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4623, allocations: 0 / 0.5479 GB, free: 74.94 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003218/0.4626, allocations: 122.8 kB / 0.548 GB, free: 74.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.4638, allocations: 230.3 kB / 0.5483 GB, free: 74.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.4652, allocations: 0.9361 MB / 0.5492 GB, free: 74.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.4655, allocations: 0.8313 MB / 0.55 GB, free: 73.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004115/0.4659, allocations: 160.5 kB / 0.5501 GB, free: 73.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.881e-05/0.466, allocations: 41.89 kB / 0.5502 GB, free: 73.27 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.466, allocations: 0 / 0.5502 GB, free: 73.27 MB / 414.1 MB Notification: Performance of Templates: time 0.03513/0.5011, allocations: 34.44 MB / 0.5838 GB, free: 42 MB / 414.1 MB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: