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.001545/0.001545, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001961/0.001961, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.407/1.407, allocations: 205.1 MB / 222.4 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04671/0.04671, allocations: 9.095 MB / 278.9 MB, free: 12.18 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.001599/0.001599, allocations: 75.89 kB / 338.1 MB, free: 25.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08863/0.09024, allocations: 48.15 MB / 386.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01995/0.1102, allocations: 18.39 MB / 404.7 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.1262, allocations: 16.41 MB / 421.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.1264, allocations: 0 / 421.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007808/0.1272, allocations: 286.9 kB / 421.4 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002028/0.1274, allocations: 107.3 kB / 421.5 MB, free: 5.797 MB / 318.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.1748/0.3022, allocations: 7.03 MB / 428.5 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002756/0.3025, allocations: 247.7 kB / 428.8 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.87e-05/0.3025, allocations: 12.38 kB / 428.8 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.3027, allocations: 101.2 kB / 428.9 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.285e-05/0.3028, allocations: 54.03 kB / 428.9 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.181e-05/0.3028, allocations: 5.562 kB / 428.9 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01541/0.3182, allocations: 9.553 MB / 438.5 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.665e-05/0.3183, allocations: 11.23 kB / 438.5 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.3184, allocations: 64.02 kB / 438.6 MB, free: 17.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008323/0.3268, allocations: 4.261 MB / 442.8 MB, free: 17.4 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3268, allocations: 0 / 442.8 MB, free: 17.4 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3268, allocations: 0 / 442.8 MB, free: 17.4 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.3268, allocations: 0 / 442.8 MB, free: 17.4 MB / 318.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.001749/0.3286, allocations: 0.9532 MB / 443.8 MB, free: 16.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.3286, allocations: 8.844 kB / 443.8 MB, free: 16.73 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.747e-05/0.3287, allocations: 50.98 kB / 443.8 MB, free: 16.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.469e-05/0.3287, allocations: 10.75 kB / 443.8 MB, free: 16.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.063e-05/0.3288, allocations: 174.9 kB / 444 MB, free: 16.47 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.3288, allocations: 1.406 kB / 444 MB, free: 16.47 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.3288, allocations: 8.328 kB / 444 MB, free: 16.47 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/0.329, allocations: 122.6 kB / 444.1 MB, free: 16.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.329, allocations: 0 / 444.1 MB, free: 16.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.329, allocations: 0 / 444.1 MB, free: 16.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.329, allocations: 9.609 kB / 444.1 MB, free: 16.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.048e-05/0.3291, allocations: 79.03 kB / 444.2 MB, free: 16.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001779/0.3293, allocations: 262.4 kB / 444.5 MB, free: 16.19 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/0.3294, allocations: 116.5 kB / 444.6 MB, free: 16.16 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.631e-05/0.3295, allocations: 104.6 kB / 444.7 MB, free: 16.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1414/0.4709, allocations: 93.07 MB / 0.5252 GB, free: 9.527 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.4709, allocations: 33.47 kB / 0.5252 GB, free: 9.488 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 3.346e-06/0.4709, allocations: 4 kB / 0.5252 GB, free: 9.484 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.000489/0.4714, allocations: 326.8 kB / 0.5255 GB, free: 9.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.4715, allocations: 55.41 kB / 0.5256 GB, free: 9.094 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.81e-05/0.4716, allocations: 97.84 kB / 0.5256 GB, free: 8.988 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.4716, allocations: 25.7 kB / 0.5257 GB, free: 8.957 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.934e-05/0.4716, allocations: 85.14 kB / 0.5258 GB, free: 8.867 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.552e-05/0.4717, allocations: 132 kB / 0.5259 GB, free: 8.742 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.028e-05/0.4718, allocations: 39.58 kB / 0.5259 GB, free: 8.699 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4719, allocations: 323 kB / 0.5262 GB, free: 8.375 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.802e-05/0.472, allocations: 83.53 kB / 0.5263 GB, free: 8.297 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.545e-05/0.4721, allocations: 77 kB / 0.5264 GB, free: 8.223 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001988/0.4723, allocations: 192.7 kB / 0.5266 GB, free: 8.031 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.4723, allocations: 3.938 kB / 0.5266 GB, free: 8.027 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002523/0.4726, allocations: 240.1 kB / 0.5268 GB, free: 7.789 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.4726, allocations: 4 kB / 0.5268 GB, free: 7.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.4726, allocations: 0 / 0.5268 GB, free: 7.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.4726, allocations: 4 kB / 0.5268 GB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.372e-06/0.4726, allocations: 6.844 kB / 0.5268 GB, free: 7.777 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.4726, allocations: 0 / 0.5268 GB, free: 7.777 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.112e-05/0.4727, allocations: 15.75 kB / 0.5268 GB, free: 7.762 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/0.4727, allocations: 0 / 0.5268 GB, free: 7.762 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 9.364e-05/0.4728, allocations: 122.9 kB / 0.5269 GB, free: 7.633 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.089e-05/0.4728, allocations: 15.81 kB / 0.527 GB, free: 7.617 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004218/0.4733, allocations: 378.5 kB / 0.5273 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/0.4733, allocations: 11.88 kB / 0.5273 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.4733, allocations: 0 / 0.5273 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.4733, allocations: 8 kB / 0.5273 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.4735, allocations: 245.2 kB / 0.5276 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.4735, allocations: 0 / 0.5276 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.743e-06/0.4735, allocations: 0 / 0.5276 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.4735, allocations: 1.969 kB / 0.5276 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.4735, allocations: 3.188 kB / 0.5276 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4736, allocations: 0 / 0.5276 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.4736, allocations: 0 / 0.5276 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002313/0.4738, allocations: 229.5 kB / 0.5278 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.4738, allocations: 92.86 kB / 0.5279 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.4739, allocations: 5 kB / 0.5279 GB, free: 6.578 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.819e-05/0.4739, allocations: 4 kB / 0.5279 GB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.173e-05/0.4739, allocations: 3.984 kB / 0.5279 GB, free: 6.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.004e-06/0.474, allocations: 4 kB / 0.5279 GB, free: 6.566 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.821e-05/0.474, allocations: 102.1 kB / 0.528 GB, free: 6.469 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.474, allocations: 0 / 0.528 GB, free: 6.469 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003049/0.4771, allocations: 1.091 MB / 0.5291 GB, free: 5.379 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.004753/0.4818, allocations: 2.279 MB / 0.5313 GB, free: 3.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000292/0.4821, allocations: 178.5 kB / 0.5315 GB, free: 3.078 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4822, allocations: 0 / 0.5315 GB, free: 3.078 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.624e-05/0.4823, allocations: 84.86 kB / 0.5315 GB, free: 2.996 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008833/0.4831, allocations: 157.7 kB / 0.5317 GB, free: 2.848 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/0.4861, allocations: 2.244 MB / 0.5339 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.4864, allocations: 0.709 MB / 0.5346 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.71e-05/0.4865, allocations: 11.78 kB / 0.5346 GB, free: 15.78 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.399e-05/0.4866, allocations: 39.42 kB / 0.5346 GB, free: 15.74 MB / 430.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4866, allocations: 0 / 0.5346 GB, free: 15.74 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06354/0.5501, allocations: 31.93 MB / 0.5658 GB, free: 15.83 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.589/9.139, allocations: 9.031 kB / 0.5658 GB, free: 15.82 MB / 462.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)