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.004558/0.004562, allocations: 103.9 kB / 15.73 MB, free: 6.473 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: 196.9 kB / 16.67 MB, free: 6.379 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.203/1.203, allocations: 205.1 MB / 222.6 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04307/0.04307, allocations: 9.108 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.001333/0.001333, allocations: 68.22 kB / 387.4 MB, free: 8.055 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.206, 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.0169/0.2229, allocations: 18.38 MB / 454 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01464/0.2376, allocations: 16.41 MB / 470.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.411e-05/0.2377, allocations: 1.281 kB / 470.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006206/0.2383, allocations: 324.8 kB / 470.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.2385, allocations: 133.8 kB / 470.8 MB, free: 12.09 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.01554/0.2541, allocations: 7.4 MB / 478.2 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002422/0.2543, allocations: 246.6 kB / 478.5 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.686e-05/0.2544, allocations: 17.05 kB / 478.5 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.2545, allocations: 99.64 kB / 478.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.816e-05/0.2546, allocations: 63.67 kB / 478.7 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.908e-06/0.2547, allocations: 4 kB / 478.7 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01377/0.2684, allocations: 10.06 MB / 488.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.703e-05/0.2685, allocations: 7.938 kB / 488.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.379e-05/0.2686, allocations: 59.69 kB / 488.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006536/0.2751, allocations: 4.261 MB / 493.1 MB, free: 7.148 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2751, allocations: 0 / 493.1 MB, free: 7.148 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2751, allocations: 4 kB / 493.1 MB, free: 7.145 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.2751, allocations: 0 / 493.1 MB, free: 7.145 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.001656/0.2768, allocations: 0.9474 MB / 494 MB, free: 6.148 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.2768, allocations: 12.03 kB / 494 MB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.144e-05/0.2769, allocations: 15.91 kB / 494 MB, free: 6.121 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.277, allocations: 182.7 kB / 494.2 MB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.277, allocations: 0 / 494.2 MB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.127e-05/0.277, allocations: 4 kB / 494.2 MB, free: 5.898 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001594/0.2772, allocations: 121.2 kB / 494.3 MB, free: 5.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.2772, allocations: 4 kB / 494.3 MB, free: 5.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.076e-06/0.2772, allocations: 0 / 494.3 MB, free: 5.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.2772, allocations: 7.984 kB / 494.3 MB, free: 5.762 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.534e-05/0.2773, allocations: 79.97 kB / 494.4 MB, free: 5.684 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002176/0.2776, allocations: 249.3 kB / 494.7 MB, free: 5.391 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.2777, allocations: 118.5 kB / 494.8 MB, free: 5.266 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.686e-05/0.2778, allocations: 104.9 kB / 494.9 MB, free: 5.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1358/0.4136, allocations: 93.06 MB / 0.5742 GB, free: 7.824 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.4136, allocations: 30.56 kB / 0.5742 GB, free: 7.785 MB / 478.1 MB Notification: Performance of pre-optimization done (n=42): time 2.686e-06/0.4137, allocations: 4 kB / 0.5742 GB, free: 7.781 MB / 478.1 MB Notification: Performance of matching and sorting (n=42): time 0.0004524/0.4141, allocations: 329.6 kB / 0.5745 GB, free: 7.453 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.4142, allocations: 63.34 kB / 0.5746 GB, free: 7.379 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.34e-05/0.4142, allocations: 89.86 kB / 0.5747 GB, free: 7.281 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.4142, allocations: 25.7 kB / 0.5747 GB, free: 7.25 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.261e-05/0.4143, allocations: 89.14 kB / 0.5748 GB, free: 7.16 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.821e-05/0.4144, allocations: 126 kB / 0.5749 GB, free: 7.035 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.256e-05/0.4144, allocations: 37.83 kB / 0.5749 GB, free: 6.992 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.541e-05/0.4145, allocations: 330.8 kB / 0.5752 GB, free: 6.66 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.543e-05/0.4146, allocations: 75.97 kB / 0.5753 GB, free: 6.586 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.851e-05/0.4147, allocations: 77 kB / 0.5754 GB, free: 6.512 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.4149, allocations: 192.9 kB / 0.5756 GB, free: 6.32 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4149, allocations: 0 / 0.5756 GB, free: 6.32 MB / 478.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002547/0.4151, allocations: 244.6 kB / 0.5758 GB, free: 6.074 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.4152, allocations: 7.938 kB / 0.5758 GB, free: 6.066 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4152, allocations: 3.938 kB / 0.5758 GB, free: 6.062 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.4152, allocations: 7.984 kB / 0.5758 GB, free: 6.055 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.4152, allocations: 4 kB / 0.5758 GB, free: 6.051 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.4152, allocations: 0 / 0.5758 GB, free: 6.051 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.898e-05/0.4153, allocations: 15.75 kB / 0.5758 GB, free: 6.035 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.4153, allocations: 0 / 0.5758 GB, free: 6.035 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 7.603e-05/0.4154, allocations: 125.7 kB / 0.576 GB, free: 5.902 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.085e-05/0.4154, allocations: 15.75 kB / 0.576 GB, free: 5.887 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003938/0.4158, allocations: 376.5 kB / 0.5763 GB, free: 5.488 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.4158, allocations: 7.984 kB / 0.5763 GB, free: 5.48 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.4158, allocations: 0 / 0.5763 GB, free: 5.48 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.4158, allocations: 4 kB / 0.5763 GB, free: 5.477 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001872/0.416, allocations: 237.3 kB / 0.5766 GB, free: 5.195 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-06/0.416, allocations: 3.938 kB / 0.5766 GB, free: 5.191 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.22e-07/0.416, allocations: 256 / 0.5766 GB, free: 5.191 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.416, allocations: 0 / 0.5766 GB, free: 5.191 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.4161, allocations: 7.984 kB / 0.5766 GB, free: 5.184 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.4161, allocations: 0 / 0.5766 GB, free: 5.184 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.4161, allocations: 4 kB / 0.5766 GB, free: 5.18 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002198/0.4163, allocations: 225.4 kB / 0.5768 GB, free: 4.941 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.838e-05/0.4164, allocations: 100.8 kB / 0.5769 GB, free: 4.824 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.4164, allocations: 4 kB / 0.5769 GB, free: 4.82 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.663e-05/0.4164, allocations: 4 kB / 0.5769 GB, free: 4.816 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.215e-05/0.4164, allocations: 0 / 0.5769 GB, free: 4.816 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.143e-06/0.4164, allocations: 4 kB / 0.5769 GB, free: 4.812 MB / 478.1 MB Notification: Performance of sorting global known variables: time 5.354e-05/0.4165, allocations: 103.3 kB / 0.577 GB, free: 4.711 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4165, allocations: 0 / 0.577 GB, free: 4.711 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001871/0.4184, allocations: 1.089 MB / 0.5781 GB, free: 3.621 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.003582/0.422, allocations: 1.623 MB / 0.5797 GB, free: 1.988 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0002218/0.4222, allocations: 179.8 kB / 0.5798 GB, free: 1.812 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.4222, allocations: 0 / 0.5798 GB, free: 1.812 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 7.71e-05/0.4223, allocations: 79.98 kB / 0.5799 GB, free: 1.734 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007891/0.4231, allocations: 156.2 kB / 0.5801 GB, free: 1.582 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004222/0.4235, allocations: 293.6 kB / 0.5803 GB, free: 1.27 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.4238, allocations: 0.7129 MB / 0.581 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 5.669e-05/0.4238, allocations: 11.98 kB / 0.581 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.607e-05/0.4238, allocations: 15.44 kB / 0.5811 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4238, allocations: 0 / 0.5811 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of Templates: time 0.1755/0.5994, allocations: 29.52 MB / 0.6099 GB, free: 172 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)