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: "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.SinglePhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.SinglePhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007605/0.007605, allocations: 104.1 kB / 15.74 MB, free: 6.047 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.001783/0.001783, allocations: 188 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.34/1.34, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04667/0.04667, allocations: 9.096 MB / 279 MB, free: 12.08 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.00166/0.00166, allocations: 63.91 kB / 387 MB, free: 8.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2984, allocations: 48.17 MB / 435.1 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.0235/0.3219, allocations: 18.38 MB / 453.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01751/0.3395, allocations: 16.41 MB / 469.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.3397, allocations: 1.031 kB / 469.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008431/0.3406, allocations: 294.2 kB / 470.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002394/0.3408, allocations: 103.8 kB / 470.3 MB, free: 11.87 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.02251/0.3634, allocations: 7.05 MB / 477.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004051/0.3638, allocations: 250.6 kB / 477.6 MB, free: 6.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.074e-05/0.3639, allocations: 17.12 kB / 477.6 MB, free: 6.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.3641, allocations: 91.66 kB / 477.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.3642, allocations: 63.67 kB / 477.8 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.171e-05/0.3642, allocations: 0 / 477.8 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02025/0.3845, allocations: 10.06 MB / 487.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.133e-05/0.3845, allocations: 11.94 kB / 487.8 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001958/0.3848, allocations: 75.66 kB / 487.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01387/0.3986, allocations: 4.257 MB / 492.2 MB, free: 7.582 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3987, allocations: 0 / 492.2 MB, free: 7.582 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3987, allocations: 0 / 492.2 MB, free: 7.582 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.3987, allocations: 0 / 492.2 MB, free: 7.582 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.002498/0.4012, allocations: 0.9474 MB / 493.1 MB, free: 6.586 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/0.4013, allocations: 8.031 kB / 493.1 MB, free: 6.578 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.009e-05/0.4013, allocations: 42.55 kB / 493.2 MB, free: 6.527 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.4014, allocations: 7.906 kB / 493.2 MB, free: 6.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/0.4016, allocations: 186.7 kB / 493.4 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.4016, allocations: 4 kB / 493.4 MB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.4016, allocations: 7.984 kB / 493.4 MB, free: 6.285 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.4018, allocations: 121.2 kB / 493.5 MB, free: 6.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.4019, allocations: 0 / 493.5 MB, free: 6.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.4019, allocations: 0 / 493.5 MB, free: 6.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.721e-05/0.4019, allocations: 11.98 kB / 493.5 MB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.402, allocations: 71.97 kB / 493.6 MB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002984/0.4023, allocations: 257.2 kB / 493.8 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001528/0.4025, allocations: 122.5 kB / 493.9 MB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.4026, allocations: 100.9 kB / 494 MB, free: 5.547 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1569/0.5595, allocations: 93.06 MB / 0.5733 GB, free: 8.211 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.5596, allocations: 34.56 kB / 0.5734 GB, free: 8.168 MB / 478.1 MB Notification: Performance of pre-optimization done (n=42): time 2.685e-06/0.5596, allocations: 0 / 0.5734 GB, free: 8.168 MB / 478.1 MB Notification: Performance of matching and sorting (n=42): time 0.000544/0.5602, allocations: 329.6 kB / 0.5737 GB, free: 7.84 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.5602, allocations: 51.41 kB / 0.5737 GB, free: 7.777 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.704e-05/0.5603, allocations: 105.8 kB / 0.5738 GB, free: 7.664 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.5603, allocations: 25.7 kB / 0.5739 GB, free: 7.633 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.399e-05/0.5604, allocations: 81.14 kB / 0.5739 GB, free: 7.551 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.5605, allocations: 134 kB / 0.5741 GB, free: 7.418 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.92e-05/0.5606, allocations: 37.69 kB / 0.5741 GB, free: 7.375 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.5607, allocations: 322.8 kB / 0.5744 GB, free: 7.051 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.646e-05/0.5608, allocations: 75.97 kB / 0.5745 GB, free: 6.977 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.702e-05/0.5609, allocations: 77 kB / 0.5746 GB, free: 6.902 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000197/0.5611, allocations: 201 kB / 0.5747 GB, free: 6.703 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.5611, allocations: 3.938 kB / 0.5747 GB, free: 6.699 MB / 478.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002624/0.5614, allocations: 240.7 kB / 0.575 GB, free: 6.457 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.5614, allocations: 8 kB / 0.575 GB, free: 6.449 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.5614, allocations: 0 / 0.575 GB, free: 6.449 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.5614, allocations: 0 / 0.575 GB, free: 6.449 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.5614, allocations: 0 / 0.575 GB, free: 6.449 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.5614, allocations: 0 / 0.575 GB, free: 6.449 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.447e-05/0.5615, allocations: 15.75 kB / 0.575 GB, free: 6.434 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.5615, allocations: 4 kB / 0.575 GB, free: 6.43 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.695e-05/0.5616, allocations: 121.8 kB / 0.5751 GB, free: 6.301 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.32e-05/0.5617, allocations: 19.92 kB / 0.5751 GB, free: 6.281 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004279/0.5621, allocations: 368.6 kB / 0.5755 GB, free: 5.891 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.514e-05/0.5621, allocations: 12.05 kB / 0.5755 GB, free: 5.879 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.5621, allocations: 4 kB / 0.5755 GB, free: 5.875 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.5621, allocations: 4 kB / 0.5755 GB, free: 5.871 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002188/0.5624, allocations: 241.3 kB / 0.5757 GB, free: 5.586 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.5624, allocations: 0 / 0.5757 GB, free: 5.586 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.5624, allocations: 0 / 0.5757 GB, free: 5.586 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.5624, allocations: 0 / 0.5757 GB, free: 5.586 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.5624, allocations: 4 kB / 0.5757 GB, free: 5.582 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.5624, allocations: 0 / 0.5757 GB, free: 5.582 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.5624, allocations: 3.938 kB / 0.5757 GB, free: 5.578 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.5626, allocations: 241.3 kB / 0.576 GB, free: 5.324 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-05/0.5627, allocations: 88.95 kB / 0.5761 GB, free: 5.219 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.767e-05/0.5627, allocations: 0 / 0.5761 GB, free: 5.219 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.921e-05/0.5628, allocations: 4 kB / 0.5761 GB, free: 5.215 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.719e-05/0.5628, allocations: 7.984 kB / 0.5761 GB, free: 5.207 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.5628, allocations: 0 / 0.5761 GB, free: 5.207 MB / 478.1 MB Notification: Performance of sorting global known variables: time 6.624e-05/0.5629, allocations: 99.27 kB / 0.5762 GB, free: 5.109 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5629, allocations: 0 / 0.5762 GB, free: 5.109 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002491/0.5654, allocations: 1.089 MB / 0.5772 GB, free: 4.02 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.004279/0.5697, allocations: 2.279 MB / 0.5795 GB, free: 1.711 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0002892/0.57, allocations: 179.8 kB / 0.5796 GB, free: 1.535 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.57, allocations: 0 / 0.5796 GB, free: 1.535 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 8.791e-05/0.5701, allocations: 83.97 kB / 0.5797 GB, free: 1.453 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008022/0.5709, allocations: 155.7 kB / 0.5799 GB, free: 1.305 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.5736, allocations: 2.261 MB / 0.5821 GB, free: 14.96 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002613/0.5739, allocations: 0.7168 MB / 0.5828 GB, free: 14.22 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.269e-05/0.574, allocations: 11.98 kB / 0.5828 GB, free: 14.21 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.138e-05/0.574, allocations: 31.42 kB / 0.5828 GB, free: 14.18 MB / 494.1 MB Notification: Performance of SimCode: time 1.894e-06/0.574, allocations: 8 kB / 0.5828 GB, free: 14.17 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2608/0.8348, allocations: 32.05 MB / 0.6141 GB, free: 163.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.953/9.788, allocations: 3.656 kB / 0.6141 GB, free: 163.4 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe 2>&1)