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.00547/0.00547, allocations: 96.98 kB / 15.73 MB, free: 5.988 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.001243/0.001243, allocations: 187.8 kB / 16.67 MB, free: 5.918 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.32/1.32, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04721/0.04721, allocations: 9.092 MB / 279 MB, free: 2.941 MB / 222.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.00148/0.00148, allocations: 76.17 kB / 386.9 MB, free: 47.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06461/0.0661, allocations: 48.18 MB / 435.1 MB, free: 8.133 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01711/0.08325, allocations: 18.39 MB / 453.5 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01567/0.09896, allocations: 16.4 MB / 469.9 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.09912, allocations: 4 kB / 469.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007134/0.09989, allocations: 326.6 kB / 470.2 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002401/0.1001, allocations: 127.3 kB / 470.4 MB, free: 4.77 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.01667/0.1168, allocations: 7.399 MB / 477.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002963/0.1171, allocations: 246.6 kB / 478 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.597e-05/0.1172, allocations: 13.12 kB / 478 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.1174, allocations: 111.5 kB / 478.1 MB, free: 13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.385e-05/0.1174, allocations: 55.73 kB / 478.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.616e-06/0.1175, allocations: 0 / 478.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01649/0.134, allocations: 10.07 MB / 488.2 MB, free: 2.855 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.72e-05/0.134, allocations: 11.94 kB / 488.2 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.1342, allocations: 63.69 kB / 488.3 MB, free: 2.781 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01007/0.1443, allocations: 4.259 MB / 492.6 MB, free: 14.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1443, allocations: 0 / 492.6 MB, free: 14.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1443, allocations: 0 / 492.6 MB, free: 14.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1443, allocations: 0 / 492.6 MB, free: 14.51 MB / 382.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.001862/0.1462, allocations: 0.986 MB / 493.6 MB, free: 13.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.1462, allocations: 8.031 kB / 493.6 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.817e-05/0.1463, allocations: 50.55 kB / 493.6 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.789e-05/0.1463, allocations: 15.91 kB / 493.6 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.1465, allocations: 182.8 kB / 493.8 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.863e-06/0.1465, allocations: 0 / 493.8 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.1465, allocations: 4 kB / 493.8 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.1467, allocations: 121.2 kB / 493.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.984e-06/0.1467, allocations: 0 / 493.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.1467, allocations: 3.984 kB / 493.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.1467, allocations: 11.98 kB / 493.9 MB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.358e-05/0.1468, allocations: 79.91 kB / 494 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002421/0.1471, allocations: 249.3 kB / 494.3 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001226/0.1472, allocations: 118.5 kB / 494.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.1473, allocations: 112.9 kB / 494.5 MB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.291/0.4383, allocations: 93.05 MB / 0.5738 GB, free: 44 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.4383, allocations: 37.55 kB / 0.5738 GB, free: 43.95 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.384e-06/0.4384, allocations: 0 / 0.5738 GB, free: 43.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.0003834/0.4387, allocations: 325.7 kB / 0.5741 GB, free: 43.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.869e-05/0.4388, allocations: 55.41 kB / 0.5742 GB, free: 43.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.546e-05/0.4388, allocations: 97.84 kB / 0.5743 GB, free: 43.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.604e-06/0.4388, allocations: 29.7 kB / 0.5743 GB, free: 43.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.285e-05/0.4389, allocations: 85.27 kB / 0.5744 GB, free: 43.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.194e-05/0.4389, allocations: 130.1 kB / 0.5745 GB, free: 43.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.993e-05/0.439, allocations: 45.69 kB / 0.5745 GB, free: 43.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.966e-05/0.439, allocations: 325.2 kB / 0.5749 GB, free: 42.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.935e-05/0.4391, allocations: 71.97 kB / 0.5749 GB, free: 42.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.828e-05/0.4392, allocations: 77 kB / 0.575 GB, free: 42.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.4393, allocations: 195 kB / 0.5752 GB, free: 42.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4393, allocations: 4 kB / 0.5752 GB, free: 42.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000195/0.4395, allocations: 243 kB / 0.5754 GB, free: 42.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.4395, allocations: 4 kB / 0.5754 GB, free: 42.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.4396, allocations: 4 kB / 0.5754 GB, free: 42.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.4396, allocations: 3.938 kB / 0.5754 GB, free: 42.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-07/0.4396, allocations: 0 / 0.5754 GB, free: 42.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.4396, allocations: 0 / 0.5754 GB, free: 42.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.966e-05/0.4396, allocations: 20.11 kB / 0.5755 GB, free: 42.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.4397, allocations: 0 / 0.5755 GB, free: 42.25 MB / 414.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 5.878e-05/0.4397, allocations: 117.8 kB / 0.5756 GB, free: 42.13 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.4397, allocations: 15.91 kB / 0.5756 GB, free: 42.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003199/0.4401, allocations: 378.8 kB / 0.5759 GB, free: 41.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.4401, allocations: 11.98 kB / 0.576 GB, free: 41.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4401, allocations: 0 / 0.576 GB, free: 41.72 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.4401, allocations: 3.938 kB / 0.576 GB, free: 41.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/0.4403, allocations: 240.1 kB / 0.5762 GB, free: 41.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.4403, allocations: 1.75 kB / 0.5762 GB, free: 41.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.4403, allocations: 4 kB / 0.5762 GB, free: 41.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.4403, allocations: 0 / 0.5762 GB, free: 41.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.4403, allocations: 0 / 0.5762 GB, free: 41.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.4403, allocations: 4 kB / 0.5762 GB, free: 41.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.4403, allocations: 0 / 0.5762 GB, free: 41.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001835/0.4405, allocations: 226.7 kB / 0.5764 GB, free: 41.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.308e-05/0.4405, allocations: 97.16 kB / 0.5765 GB, free: 41.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.857e-05/0.4406, allocations: 7.953 kB / 0.5765 GB, free: 41.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.219e-05/0.4406, allocations: 4 kB / 0.5765 GB, free: 41.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.728e-05/0.4406, allocations: 7.938 kB / 0.5765 GB, free: 41.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.4406, allocations: 4.969 kB / 0.5765 GB, free: 41.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.896e-05/0.4407, allocations: 99.27 kB / 0.5766 GB, free: 40.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4407, allocations: 0 / 0.5766 GB, free: 40.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001903/0.4426, allocations: 1.11 MB / 0.5777 GB, free: 39.99 MB / 414.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.003642/0.4463, allocations: 2.298 MB / 0.5799 GB, free: 37.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002193/0.4465, allocations: 181.2 kB / 0.5801 GB, free: 37.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4465, allocations: 4 kB / 0.5801 GB, free: 37.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.329e-05/0.4466, allocations: 86.88 kB / 0.5802 GB, free: 37.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008429/0.4474, allocations: 151.5 kB / 0.5804 GB, free: 37.44 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002157/0.4496, allocations: 2.282 MB / 0.5826 GB, free: 35.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001058/0.4497, allocations: 0.7092 MB / 0.5833 GB, free: 34.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.026e-05/0.4498, allocations: 10.25 kB / 0.5833 GB, free: 34.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.093e-05/0.4498, allocations: 43.36 kB / 0.5833 GB, free: 34.29 MB / 414.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4498, allocations: 288 / 0.5833 GB, free: 34.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0482/0.4981, allocations: 31.99 MB / 0.6146 GB, free: 2.387 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.833/9.331, allocations: 3.953 kB / 0.6146 GB, free: 2.383 MB / 414.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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 1 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe 2>&1)