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/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/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005575/0.005575, allocations: 101.9 kB / 15.73 MB, free: 6.039 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.001356/0.001356, allocations: 195.7 kB / 16.67 MB, free: 5.969 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.329/1.329, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04581/0.04581, allocations: 9.097 MB / 279 MB, free: 12.11 MB / 238.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.001409/0.001409, allocations: 66.41 kB / 387.4 MB, free: 8.062 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2274, allocations: 48.16 MB / 435.6 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01758/0.245, allocations: 18.38 MB / 454 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01505/0.2601, allocations: 16.41 MB / 470.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.2603, allocations: 0 / 470.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007622/0.2611, allocations: 300.9 kB / 470.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002233/0.2614, allocations: 113.3 kB / 470.8 MB, free: 12.11 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.01764/0.279, allocations: 7.029 MB / 477.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002895/0.2793, allocations: 254.6 kB / 478.1 MB, free: 6.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.525e-05/0.2794, allocations: 13.12 kB / 478.1 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.2795, allocations: 103.6 kB / 478.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.584e-05/0.2796, allocations: 55.72 kB / 478.2 MB, free: 5.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.173e-05/0.2797, allocations: 4 kB / 478.2 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01596/0.2956, allocations: 10.07 MB / 488.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.295e-05/0.2957, allocations: 11.92 kB / 488.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001219/0.2958, allocations: 63.69 kB / 488.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009364/0.3052, allocations: 4.253 MB / 492.6 MB, free: 7.547 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3052, allocations: 0 / 492.6 MB, free: 7.547 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3052, allocations: 4 kB / 492.6 MB, free: 7.543 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.3052, allocations: 4 kB / 492.6 MB, free: 7.539 MB / 366.1 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.001527/0.3067, allocations: 0.9513 MB / 493.6 MB, free: 6.539 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.3068, allocations: 12.03 kB / 493.6 MB, free: 6.527 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.879e-05/0.3068, allocations: 7.906 kB / 493.6 MB, free: 6.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.307, allocations: 182.7 kB / 493.8 MB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.576e-06/0.307, allocations: 4 kB / 493.8 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.307, allocations: 4 kB / 493.8 MB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001707/0.3072, allocations: 121.2 kB / 493.9 MB, free: 6.168 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.341e-06/0.3072, allocations: 0 / 493.9 MB, free: 6.168 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.3072, allocations: 4 kB / 493.9 MB, free: 6.164 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.3072, allocations: 7.984 kB / 493.9 MB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.3074, allocations: 79.91 kB / 494 MB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003037/0.3077, allocations: 249.3 kB / 494.3 MB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001196/0.3078, allocations: 114.5 kB / 494.4 MB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.3079, allocations: 108.9 kB / 494.5 MB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.15/0.4579, allocations: 93.06 MB / 0.5738 GB, free: 8.219 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.458, allocations: 30.56 kB / 0.5738 GB, free: 8.18 MB / 478.1 MB Notification: Performance of pre-optimization done (n=42): time 2.905e-06/0.458, allocations: 0 / 0.5738 GB, free: 8.18 MB / 478.1 MB Notification: Performance of matching and sorting (n=42): time 0.0004757/0.4585, allocations: 333.6 kB / 0.5741 GB, free: 7.848 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.4585, allocations: 51.41 kB / 0.5742 GB, free: 7.785 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.507e-05/0.4586, allocations: 93.86 kB / 0.5743 GB, free: 7.684 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.4586, allocations: 25.83 kB / 0.5743 GB, free: 7.652 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.703e-05/0.4587, allocations: 89.14 kB / 0.5744 GB, free: 7.562 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.4588, allocations: 130 kB / 0.5745 GB, free: 7.434 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.935e-05/0.4588, allocations: 33.7 kB / 0.5745 GB, free: 7.395 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.459, allocations: 330.8 kB / 0.5748 GB, free: 7.062 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.375e-05/0.4591, allocations: 71.98 kB / 0.5749 GB, free: 6.992 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.128e-05/0.4592, allocations: 80.94 kB / 0.575 GB, free: 6.914 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002024/0.4594, allocations: 196.9 kB / 0.5752 GB, free: 6.719 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4594, allocations: 0 / 0.5752 GB, free: 6.719 MB / 478.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002937/0.4597, allocations: 248.6 kB / 0.5754 GB, free: 6.469 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.4597, allocations: 4 kB / 0.5754 GB, free: 6.465 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.4597, allocations: 0 / 0.5754 GB, free: 6.465 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.4598, allocations: 4 kB / 0.5754 GB, free: 6.461 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.4598, allocations: 0 / 0.5754 GB, free: 6.461 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.4598, allocations: 3.984 kB / 0.5754 GB, free: 6.457 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.991e-05/0.4598, allocations: 19.69 kB / 0.5754 GB, free: 6.438 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.4599, allocations: 0 / 0.5754 GB, free: 6.438 MB / 478.1 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 8.346e-05/0.46, allocations: 121.7 kB / 0.5756 GB, free: 6.309 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.216e-05/0.46, allocations: 23.75 kB / 0.5756 GB, free: 6.285 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004668/0.4605, allocations: 376.5 kB / 0.5759 GB, free: 5.887 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.4605, allocations: 3.984 kB / 0.5759 GB, free: 5.883 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4605, allocations: 0 / 0.5759 GB, free: 5.883 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4605, allocations: 4 kB / 0.5759 GB, free: 5.879 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.4607, allocations: 229.4 kB / 0.5762 GB, free: 5.605 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4607, allocations: 7.938 kB / 0.5762 GB, free: 5.598 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-07/0.4607, allocations: 4 kB / 0.5762 GB, free: 5.594 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.4607, allocations: 0 / 0.5762 GB, free: 5.594 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.4607, allocations: 4.188 kB / 0.5762 GB, free: 5.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.4607, allocations: 3.984 kB / 0.5762 GB, free: 5.586 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4607, allocations: 4 kB / 0.5762 GB, free: 5.582 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002905/0.461, allocations: 225.4 kB / 0.5764 GB, free: 5.344 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.856e-05/0.4611, allocations: 92.89 kB / 0.5765 GB, free: 5.234 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.4612, allocations: 7.984 kB / 0.5765 GB, free: 5.227 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.311e-05/0.4612, allocations: 8 kB / 0.5765 GB, free: 5.219 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.604e-05/0.4612, allocations: 0 / 0.5765 GB, free: 5.219 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.4613, allocations: 4 kB / 0.5765 GB, free: 5.215 MB / 478.1 MB Notification: Performance of sorting global known variables: time 6.22e-05/0.4613, allocations: 103.2 kB / 0.5766 GB, free: 5.113 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4613, allocations: 0 / 0.5766 GB, free: 5.113 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002261/0.4636, allocations: 1.089 MB / 0.5777 GB, free: 4.023 MB / 478.1 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.004292/0.4679, allocations: 1.611 MB / 0.5792 GB, free: 2.402 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0002678/0.4682, allocations: 187.7 kB / 0.5794 GB, free: 2.219 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4682, allocations: 0 / 0.5794 GB, free: 2.219 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 8.798e-05/0.4683, allocations: 79.98 kB / 0.5795 GB, free: 2.141 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000894/0.4692, allocations: 160.2 kB / 0.5796 GB, free: 1.984 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004636/0.4697, allocations: 289.6 kB / 0.5799 GB, free: 1.676 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.4699, allocations: 0.7168 MB / 0.5806 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 6.834e-05/0.47, allocations: 11.98 kB / 0.5806 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.243e-05/0.4701, allocations: 15.44 kB / 0.5807 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4701, allocations: 0 / 0.5807 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of Templates: time 0.1963/0.6663, allocations: 29.53 MB / 0.6095 GB, free: 172.5 MB / 494.1 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)