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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 106.2 kB / 16.4 MB, free: 6.488 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 192.6 kB / 19.36 MB, free: 3.75 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.356/1.356, allocations: 205.1 MB / 227.2 MB, free: 12.15 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.04882/0.04882, allocations: 9.102 MB / 285.7 MB, free: 0.9219 MB / 222.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.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"}) [Timeout 660] "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.002092/0.002093, allocations: 74.52 kB / 395.7 MB, free: 49.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0699/0.072, allocations: 48.17 MB / 443.8 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.019/0.09103, allocations: 18.38 MB / 462.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01824/0.1093, allocations: 16.41 MB / 478.6 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.1095, allocations: 4 kB / 478.6 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008208/0.1103, allocations: 294.6 kB / 478.9 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002512/0.1106, allocations: 115.3 kB / 479 MB, free: 3.785 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.01756/0.1282, allocations: 7.025 MB / 486.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003496/0.1285, allocations: 258.5 kB / 486.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.624e-05/0.1286, allocations: 13.06 kB / 486.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/0.1288, allocations: 99.58 kB / 486.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.1289, allocations: 55.75 kB / 486.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.719e-06/0.1289, allocations: 4 kB / 486.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01692/0.1459, allocations: 10.06 MB / 496.5 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.995e-05/0.1459, allocations: 7.938 kB / 496.5 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.1461, allocations: 67.67 kB / 496.6 MB, free: 2.172 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009921/0.156, allocations: 4.259 MB / 0.4891 GB, free: 13.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.156, allocations: 4 kB / 0.4891 GB, free: 13.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1561, allocations: 0 / 0.4891 GB, free: 13.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.1561, allocations: 0 / 0.4891 GB, free: 13.9 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.002003/0.1581, allocations: 0.982 MB / 0.4901 GB, free: 12.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.1581, allocations: 12.03 kB / 0.4901 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.802e-05/0.1582, allocations: 46.55 kB / 0.4901 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.914e-05/0.1582, allocations: 11.91 kB / 0.4902 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.1584, allocations: 186.8 kB / 0.4903 GB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.1584, allocations: 0 / 0.4903 GB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/0.1585, allocations: 4 kB / 0.4903 GB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.1587, allocations: 117.2 kB / 0.4905 GB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.1587, allocations: 0 / 0.4905 GB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.1587, allocations: 3.984 kB / 0.4905 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.1588, allocations: 3.984 kB / 0.4905 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.1589, allocations: 75.98 kB / 0.4905 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000321/0.1592, allocations: 261.2 kB / 0.4908 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001459/0.1594, allocations: 122.5 kB / 0.4909 GB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.1595, allocations: 100.9 kB / 0.491 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3011/0.4605, allocations: 93.06 MB / 0.5819 GB, free: 43.53 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.4606, allocations: 35.97 kB / 0.5819 GB, free: 43.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 1.983e-06/0.4606, allocations: 0 / 0.5819 GB, free: 43.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.0003511/0.461, allocations: 331.8 kB / 0.5822 GB, free: 43.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.185e-05/0.461, allocations: 55.41 kB / 0.5823 GB, free: 43.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.39e-05/0.4611, allocations: 97.86 kB / 0.5824 GB, free: 42.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.803e-06/0.4611, allocations: 25.7 kB / 0.5824 GB, free: 42.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.244e-05/0.4611, allocations: 84.61 kB / 0.5825 GB, free: 42.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.853e-05/0.4611, allocations: 142.5 kB / 0.5826 GB, free: 42.76 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.632e-05/0.4612, allocations: 33.7 kB / 0.5826 GB, free: 42.72 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.184e-05/0.4612, allocations: 326.8 kB / 0.583 GB, free: 42.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.833e-05/0.4613, allocations: 72.11 kB / 0.583 GB, free: 42.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.588e-05/0.4614, allocations: 77 kB / 0.5831 GB, free: 42.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.4615, allocations: 207.4 kB / 0.5833 GB, free: 42.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.4615, allocations: 0 / 0.5833 GB, free: 42.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0001843/0.4617, allocations: 231.6 kB / 0.5835 GB, free: 41.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.4617, allocations: 8 kB / 0.5835 GB, free: 41.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.4617, allocations: 0 / 0.5835 GB, free: 41.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.4617, allocations: 0 / 0.5835 GB, free: 41.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.904e-06/0.4618, allocations: 3.984 kB / 0.5835 GB, free: 41.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.998e-06/0.4618, allocations: 0 / 0.5835 GB, free: 41.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.704e-05/0.4618, allocations: 34.53 kB / 0.5836 GB, free: 41.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.4618, allocations: 4 kB / 0.5836 GB, free: 41.77 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.25e-05/0.4619, allocations: 113.8 kB / 0.5837 GB, free: 41.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.536e-05/0.4619, allocations: 8.641 kB / 0.5837 GB, free: 41.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002931/0.4622, allocations: 376.6 kB / 0.584 GB, free: 41.26 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.4622, allocations: 15.98 kB / 0.5841 GB, free: 41.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.4622, allocations: 0 / 0.5841 GB, free: 41.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.4622, allocations: 3.938 kB / 0.5841 GB, free: 41.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.4624, allocations: 234 kB / 0.5843 GB, free: 40.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.4624, allocations: 1.812 kB / 0.5843 GB, free: 40.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.4624, allocations: 0 / 0.5843 GB, free: 40.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.4624, allocations: 0 / 0.5843 GB, free: 40.97 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.4624, allocations: 4 kB / 0.5843 GB, free: 40.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.4624, allocations: 4.734 kB / 0.5843 GB, free: 40.96 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.4624, allocations: 0 / 0.5843 GB, free: 40.96 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000172/0.4626, allocations: 228.2 kB / 0.5845 GB, free: 40.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.072e-05/0.4626, allocations: 95.34 kB / 0.5846 GB, free: 40.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.4626, allocations: 3.984 kB / 0.5846 GB, free: 40.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.354e-05/0.4627, allocations: 3.938 kB / 0.5846 GB, free: 40.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.183e-05/0.4627, allocations: 4.797 kB / 0.5846 GB, free: 40.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.4627, allocations: 7.938 kB / 0.5846 GB, free: 40.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.588e-05/0.4627, allocations: 99.11 kB / 0.5847 GB, free: 40.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4627, allocations: 0 / 0.5847 GB, free: 40.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001667/0.4644, allocations: 1.113 MB / 0.5858 GB, free: 39.53 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.00299/0.4674, allocations: 2.304 MB / 0.5881 GB, free: 37.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001768/0.4676, allocations: 183.7 kB / 0.5882 GB, free: 37.19 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.4676, allocations: 0 / 0.5882 GB, free: 37.19 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.588e-05/0.4677, allocations: 79.98 kB / 0.5883 GB, free: 37.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007413/0.4684, allocations: 160.8 kB / 0.5885 GB, free: 36.97 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.47, allocations: 2.282 MB / 0.5907 GB, free: 34.6 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.941e-05/0.4701, allocations: 0.7171 MB / 0.5914 GB, free: 33.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.897e-05/0.4702, allocations: 10.48 kB / 0.5914 GB, free: 33.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.832e-05/0.4702, allocations: 35.44 kB / 0.5914 GB, free: 33.82 MB / 414.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4702, allocations: 0 / 0.5914 GB, free: 33.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4745/0.9447, allocations: 32.01 MB / 0.6227 GB, free: 1.879 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.804/10.75, allocations: 0 / 0.6227 GB, free: 1.879 MB / 414.1 MB " [Timeout remaining time 649] (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 os._exit(0), Time elapsed: 13.29048404598143] Failed to read output from testmodel.py, exit status != 0: 10.833230694988742 10.847687858 10.689006054 Calling exit ...