Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(HelmholtzMedia.Examples.Parameter.SinglePhase_setState,tolerance=1e-07,outputFormat="empty",numberOfIntervals=4,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState") translateModel(HelmholtzMedia.Examples.Parameter.SinglePhase_setState,tolerance=1e-07,outputFormat="empty",numberOfIntervals=4,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04628/0.04628, allocations: 9.089 MB / 25.82 MB, free: 3.426 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 205.1 MB / 233.2 MB, free: 14.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001042/0.001042, allocations: 109.6 kB / 282.1 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 51.92 kB / 341.1 MB, free: 4.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2723, allocations: 48.17 MB / 389.2 MB, free: 38.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01647/0.2888, allocations: 18.61 MB / 407.8 MB, free: 19.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01177/0.3006, allocations: 16.86 MB / 424.7 MB, free: 2.941 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002012/0.3008, allocations: 0 / 424.7 MB, free: 2.941 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000671/0.3015, allocations: 261 kB / 425 MB, free: 2.688 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.3018, allocations: 103.4 kB / 425.1 MB, free: 2.586 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01649/0.3182, allocations: 5.745 MB / 430.8 MB, free: 12.83 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003895/0.3187, allocations: 242.6 kB / 431 MB, free: 12.59 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.798e-05/0.3187, allocations: 9.125 kB / 431.1 MB, free: 12.58 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.3189, allocations: 103.5 kB / 431.2 MB, free: 12.48 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.889e-05/0.319, allocations: 55.73 kB / 431.2 MB, free: 12.43 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.201e-05/0.319, allocations: 4 kB / 431.2 MB, free: 12.42 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01804/0.3371, allocations: 9.148 MB / 440.4 MB, free: 3.254 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.639e-05/0.3371, allocations: 11.94 kB / 440.4 MB, free: 3.242 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001776/0.3373, allocations: 67.67 kB / 440.4 MB, free: 3.176 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01195/0.3493, allocations: 4.128 MB / 444.6 MB, free: 15.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3493, allocations: 0 / 444.6 MB, free: 15.04 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3493, allocations: 0 / 444.6 MB, free: 15.04 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.249e-06/0.3494, allocations: 0 / 444.6 MB, free: 15.04 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.002134/0.3515, allocations: 0.9514 MB / 445.5 MB, free: 14.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.3515, allocations: 8.031 kB / 445.5 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.292e-05/0.3516, allocations: 11.81 kB / 445.5 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.3518, allocations: 174.9 kB / 445.7 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.3518, allocations: 4 kB / 445.7 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.3518, allocations: 4 kB / 445.7 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001861/0.352, allocations: 117.6 kB / 445.8 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.352, allocations: 0 / 445.8 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.352, allocations: 3.938 kB / 445.8 MB, free: 13.67 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.468e-05/0.3521, allocations: 11.98 kB / 445.8 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.692e-05/0.3521, allocations: 71.97 kB / 445.9 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002633/0.3524, allocations: 253.2 kB / 446.2 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001304/0.3526, allocations: 118.9 kB / 446.3 MB, free: 13.17 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.506e-05/0.3527, allocations: 113.2 kB / 446.4 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3254/0.6781, allocations: 93.06 MB / 0.5268 GB, free: 100.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.6782, allocations: 30.56 kB / 0.5268 GB, free: 100.2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=42): time 3.286e-06/0.6782, allocations: 0 / 0.5268 GB, free: 100.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=42): time 0.0004334/0.6786, allocations: 336.6 kB / 0.5272 GB, free: 99.88 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.795e-05/0.6787, allocations: 59.39 kB / 0.5272 GB, free: 99.81 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.229e-05/0.6787, allocations: 93.86 kB / 0.5273 GB, free: 99.71 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.857e-06/0.6788, allocations: 25.7 kB / 0.5273 GB, free: 99.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.81e-05/0.6788, allocations: 88.05 kB / 0.5274 GB, free: 99.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.208e-05/0.6789, allocations: 131.7 kB / 0.5275 GB, free: 99.47 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.359e-05/0.6789, allocations: 37.7 kB / 0.5276 GB, free: 99.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.844e-05/0.679, allocations: 318.8 kB / 0.5279 GB, free: 99.11 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.244e-05/0.6791, allocations: 76.66 kB / 0.528 GB, free: 99.04 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.011e-05/0.6791, allocations: 79.75 kB / 0.528 GB, free: 98.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.6793, allocations: 209.2 kB / 0.5282 GB, free: 98.76 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.6793, allocations: 0 / 0.5282 GB, free: 98.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002003/0.6795, allocations: 228.2 kB / 0.5284 GB, free: 98.53 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.6795, allocations: 4 kB / 0.5284 GB, free: 98.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.6795, allocations: 0 / 0.5284 GB, free: 98.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.6796, allocations: 4 kB / 0.5285 GB, free: 98.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/0.6796, allocations: 0 / 0.5285 GB, free: 98.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.6796, allocations: 0 / 0.5285 GB, free: 98.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.163e-05/0.6796, allocations: 19.69 kB / 0.5285 GB, free: 98.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.6797, allocations: 6.547 kB / 0.5285 GB, free: 98.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (state_Ts.phase,state_ps.phase,state_ph.phase,state_pd.phase,state_dT.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 7.315e-05/0.6797, allocations: 121.8 kB / 0.5286 GB, free: 98.37 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.729e-05/0.6798, allocations: 7.906 kB / 0.5286 GB, free: 98.36 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003419/0.6801, allocations: 385.8 kB / 0.529 GB, free: 97.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.6801, allocations: 4 kB / 0.529 GB, free: 97.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.6801, allocations: 0 / 0.529 GB, free: 97.98 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.6801, allocations: 7.984 kB / 0.529 GB, free: 97.97 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000141/0.6803, allocations: 242.1 kB / 0.5292 GB, free: 97.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.6803, allocations: 3.656 kB / 0.5292 GB, free: 97.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.51e-07/0.6803, allocations: 0 / 0.5292 GB, free: 97.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.6803, allocations: 4.891 kB / 0.5292 GB, free: 97.68 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.6803, allocations: 0 / 0.5292 GB, free: 97.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.6803, allocations: 3.609 kB / 0.5292 GB, free: 97.68 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.6803, allocations: 0 / 0.5292 GB, free: 97.68 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004047/0.6807, allocations: 0.8618 MB / 0.5301 GB, free: 96.76 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.46e-05/0.6808, allocations: 88.95 kB / 0.5301 GB, free: 96.66 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.6808, allocations: 7.75 kB / 0.5302 GB, free: 96.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.802e-05/0.6809, allocations: 7.938 kB / 0.5302 GB, free: 96.64 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.6809, allocations: 3.984 kB / 0.5302 GB, free: 96.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-06/0.6809, allocations: 4 kB / 0.5302 GB, free: 96.64 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.106e-05/0.6809, allocations: 103.2 kB / 0.5303 GB, free: 96.54 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6809, allocations: 0 / 0.5303 GB, free: 96.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002304/0.6833, allocations: 1.095 MB / 0.5313 GB, free: 95.59 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.00446/0.6877, allocations: 1.633 MB / 0.5329 GB, free: 94.14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002349/0.688, allocations: 179.7 kB / 0.5331 GB, free: 93.96 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.688, allocations: 0 / 0.5331 GB, free: 93.96 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.57e-05/0.6881, allocations: 83.98 kB / 0.5332 GB, free: 93.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008825/0.689, allocations: 157.8 kB / 0.5333 GB, free: 93.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005516/0.6895, allocations: 0.5527 MB / 0.5339 GB, free: 93.14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001391/0.6897, allocations: 0.7248 MB / 0.5346 GB, free: 92.39 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 8.091e-05/0.6898, allocations: 7.469 kB / 0.5346 GB, free: 92.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.951e-05/0.6898, allocations: 15.44 kB / 0.5346 GB, free: 92.38 MB / 394.7 MB Notification: Performance of SimCode: time 3.3e-07/0.6898, allocations: 4 kB / 0.5346 GB, free: 92.37 MB / 394.7 MB Notification: Performance of Templates: time 0.0328/0.7226, allocations: 29.4 MB / 0.5633 GB, free: 62.96 MB / 394.7 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe 2>&1)