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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 110.4 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 210.6 kB / 22.25 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 207.6 MB / 233 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05261/0.05261, allocations: 9.161 MB / 294.4 MB, free: 12.71 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002283/0.002283, allocations: 75.39 kB / 411.1 MB, free: 46.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06698/0.06927, allocations: 50.75 MB / 461.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.02283/0.0921, allocations: 18.5 MB / 480.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01801/0.1101, allocations: 16.45 MB / 496.8 MB, free: 9.676 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.1102, allocations: 0 / 496.8 MB, free: 9.676 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007643/0.111, allocations: 326.6 kB / 497.1 MB, free: 9.355 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002242/0.1112, allocations: 127.3 kB / 497.2 MB, free: 9.23 MB / 366.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.01826/0.1295, allocations: 7.46 MB / 0.4928 GB, free: 1.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003481/0.1298, allocations: 258.6 kB / 0.4931 GB, free: 1.516 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.489e-05/0.1299, allocations: 9.25 kB / 0.4931 GB, free: 1.508 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.1301, allocations: 103.6 kB / 0.4932 GB, free: 1.406 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.1302, allocations: 63.67 kB / 0.4932 GB, free: 1.344 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.1302, allocations: 4 kB / 0.4932 GB, free: 1.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01931/0.1495, allocations: 10.54 MB / 0.5035 GB, free: 6.781 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.805e-05/0.1495, allocations: 3.938 kB / 0.5035 GB, free: 6.777 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.1497, allocations: 67.67 kB / 0.5036 GB, free: 6.711 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01042/0.1601, allocations: 4.275 MB / 0.5078 GB, free: 2.426 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.1601, allocations: 0 / 0.5078 GB, free: 2.426 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1601, allocations: 0 / 0.5078 GB, free: 2.426 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.1601, allocations: 0 / 0.5078 GB, free: 2.426 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.002046/0.1621, allocations: 0.9185 MB / 0.5087 GB, free: 1.473 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.1622, allocations: 11.98 kB / 0.5087 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.666e-05/0.1622, allocations: 42.55 kB / 0.5087 GB, free: 1.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.1623, allocations: 11.91 kB / 0.5087 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.1624, allocations: 129 kB / 0.5089 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.1624, allocations: 4 kB / 0.5089 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.534e-05/0.1624, allocations: 3.984 kB / 0.5089 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.1626, allocations: 125.4 kB / 0.509 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.1627, allocations: 0 / 0.509 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.1627, allocations: 8 kB / 0.509 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.1627, allocations: 3.984 kB / 0.509 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.836e-05/0.1628, allocations: 79.97 kB / 0.5091 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000271/0.163, allocations: 228.3 kB / 0.5093 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.1632, allocations: 98.55 kB / 0.5094 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.592e-05/0.1633, allocations: 84.89 kB / 0.5095 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2891/0.4524, allocations: 27.44 MB / 0.5363 GB, free: 70.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.4524, allocations: 35.72 kB / 0.5363 GB, free: 70.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.315e-06/0.4524, allocations: 1.375 kB / 0.5363 GB, free: 70.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0004872/0.4529, allocations: 347.9 kB / 0.5366 GB, free: 70.22 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.184e-05/0.4529, allocations: 60.52 kB / 0.5367 GB, free: 70.15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.406e-05/0.453, allocations: 101.1 kB / 0.5368 GB, free: 70.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.706e-06/0.453, allocations: 25.7 kB / 0.5368 GB, free: 70.01 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.5e-05/0.453, allocations: 82.33 kB / 0.5369 GB, free: 69.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.113e-05/0.4531, allocations: 142.8 kB / 0.537 GB, free: 69.83 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.204e-05/0.4531, allocations: 33.98 kB / 0.5371 GB, free: 69.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 4.305e-05/0.4532, allocations: 322.3 kB / 0.5374 GB, free: 69.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.518e-05/0.4532, allocations: 82.41 kB / 0.5374 GB, free: 69.44 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.79e-05/0.4533, allocations: 81.5 kB / 0.5375 GB, free: 69.4 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.4535, allocations: 210.4 kB / 0.5377 GB, free: 69.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.4535, allocations: 0 / 0.5377 GB, free: 69.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002428/0.4537, allocations: 251.7 kB / 0.538 GB, free: 69.15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.4537, allocations: 5.812 kB / 0.538 GB, free: 69.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.4537, allocations: 1.5 kB / 0.538 GB, free: 69.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.4538, allocations: 0 / 0.538 GB, free: 69.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.353e-06/0.4538, allocations: 2.641 kB / 0.538 GB, free: 69.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.4538, allocations: 0 / 0.538 GB, free: 69.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.023e-05/0.4538, allocations: 15.78 kB / 0.538 GB, free: 69.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.4538, allocations: 10.2 kB / 0.538 GB, free: 69.14 MB / 398.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 6.211e-05/0.4539, allocations: 122.1 kB / 0.5381 GB, free: 69.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.096e-05/0.4539, allocations: 12.81 kB / 0.5381 GB, free: 69.01 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003715/0.4543, allocations: 391.3 kB / 0.5385 GB, free: 68.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.4543, allocations: 6.531 kB / 0.5385 GB, free: 68.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4543, allocations: 7.984 kB / 0.5385 GB, free: 68.74 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4543, allocations: 1.281 kB / 0.5385 GB, free: 68.74 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000136/0.4544, allocations: 213.8 kB / 0.5387 GB, free: 68.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4544, allocations: 0 / 0.5387 GB, free: 68.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.91e-07/0.4544, allocations: 0 / 0.5387 GB, free: 68.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4544, allocations: 1.531 kB / 0.5387 GB, free: 68.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.4545, allocations: 1.5 kB / 0.5387 GB, free: 68.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.4545, allocations: 0 / 0.5387 GB, free: 68.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4545, allocations: 0 / 0.5387 GB, free: 68.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002053/0.4547, allocations: 240 kB / 0.539 GB, free: 68.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.981e-05/0.4547, allocations: 16.84 kB / 0.539 GB, free: 68.38 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.722e-05/0.4547, allocations: 1.031 kB / 0.539 GB, free: 68.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.861e-05/0.4547, allocations: 1.062 kB / 0.539 GB, free: 68.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.8e-05/0.4548, allocations: 13.83 kB / 0.539 GB, free: 68.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.311e-06/0.4548, allocations: 1.156 kB / 0.539 GB, free: 68.37 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.638e-05/0.4548, allocations: 104 kB / 0.5391 GB, free: 68.28 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4548, allocations: 0 / 0.5391 GB, free: 68.28 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002102/0.4569, allocations: 1.118 MB / 0.5402 GB, free: 68.14 MB / 398.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.00418/0.4611, allocations: 2.305 MB / 0.5424 GB, free: 67 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002285/0.4613, allocations: 153.6 kB / 0.5426 GB, free: 66.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4613, allocations: 0 / 0.5426 GB, free: 66.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.329e-05/0.4614, allocations: 77.45 kB / 0.5426 GB, free: 66.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000813/0.4622, allocations: 148.4 kB / 0.5428 GB, free: 66.83 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.4646, allocations: 2.32 MB / 0.5451 GB, free: 65.07 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001351/0.4648, allocations: 0.7164 MB / 0.5458 GB, free: 64.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.477e-05/0.4648, allocations: 8.922 kB / 0.5458 GB, free: 64.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.572e-05/0.4649, allocations: 37.66 kB / 0.5458 GB, free: 64.32 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4649, allocations: 5.812 kB / 0.5458 GB, free: 64.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06118/0.5261, allocations: 32.32 MB / 0.5774 GB, free: 32.35 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/13.06, allocations: 4.062 kB / 0.5774 GB, free: 32.34 MB / 398.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.624764907006465] Failed to read output from testmodel.py, exit status != 0: 13.184950443996058 13.204796732 13.042199904 Calling exit ...