Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.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.001287/0.001287, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.001488/0.001488, allocations: 217 kB / 22.25 MB, free: 5.082 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.414/1.414, allocations: 207.6 MB / 233 MB, free: 10.01 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.158 MB / 294.4 MB, free: 12.7 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.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",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.002241/0.002241, allocations: 71.58 kB / 411.1 MB, free: 46.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06892/0.07116, allocations: 50.75 MB / 461.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3226/0.3938, allocations: 129.6 MB / 0.5776 GB, free: 148 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1192/0.513, allocations: 111.4 MB / 0.6864 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004783/0.5134, allocations: 11.94 kB / 0.6864 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003339/0.5168, allocations: 1.551 MB / 0.6879 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004013/0.5208, allocations: 1.833 MB / 0.6897 GB, free: 3.82 MB / 0.4981 GB [/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'. Notification: Performance of NFTyping.typeClassSections: time 0.078/0.5988, allocations: 32.15 MB / 0.7211 GB, free: 3.566 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002099/0.6009, allocations: 1.421 MB / 0.7225 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.6011, allocations: 93.89 kB / 0.7226 GB, free: 2.047 MB / 0.5294 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:620:5-620:120:writable] Warning: assert triggered: setState_pTX: d_min and d_max did not bracket the root Notification: Performance of NFEvalConstants.evaluate: time 0.02133/0.6225, allocations: 12.04 MB / 0.7344 GB, free: 5.977 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006715/0.6231, allocations: 390.4 kB / 0.7347 GB, free: 5.594 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.327e-05/0.6232, allocations: 47.94 kB / 0.7348 GB, free: 5.547 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3023/0.9256, allocations: 38.47 MB / 0.7723 GB, free: 47.3 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002326/0.9258, allocations: 123.5 kB / 0.7725 GB, free: 47.3 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004799/0.9263, allocations: 306.4 kB / 0.7728 GB, free: 47.3 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03662/0.9629, allocations: 14.59 MB / 0.787 GB, free: 46.88 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.9629, allocations: 7.344 kB / 0.787 GB, free: 46.88 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.412e-06/0.9629, allocations: 0 / 0.787 GB, free: 46.88 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.187e-06/0.9629, allocations: 0 / 0.787 GB, free: 46.88 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.006255/0.9692, allocations: 2.599 MB / 0.7896 GB, free: 45.46 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.9692, allocations: 15.2 kB / 0.7896 GB, free: 45.45 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.839e-05/0.9693, allocations: 85.02 kB / 0.7897 GB, free: 45.41 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006393/0.9699, allocations: 89.88 kB / 0.7897 GB, free: 45.39 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003771/0.9703, allocations: 280.7 kB / 0.79 GB, free: 45.23 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.38e-05/0.9703, allocations: 34.44 kB / 0.79 GB, free: 45.23 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.579e-05/0.9704, allocations: 32.84 kB / 0.7901 GB, free: 45.23 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.9714, allocations: 0.6078 MB / 0.7907 GB, free: 45.13 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.9714, allocations: 5.906 kB / 0.7907 GB, free: 45.13 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.9715, allocations: 11.62 kB / 0.7907 GB, free: 45.13 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.9715, allocations: 24 kB / 0.7907 GB, free: 45.13 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.9726, allocations: 0.5536 MB / 0.7912 GB, free: 45.12 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002/0.9746, allocations: 2.438 MB / 0.7936 GB, free: 43.54 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009434/0.9756, allocations: 470.3 kB / 0.7941 GB, free: 43.51 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004478/0.976, allocations: 316.7 kB / 0.7944 GB, free: 43.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2066/1.183, allocations: 43.92 MB / 0.8373 GB, free: 12.66 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/1.183, allocations: 38.5 kB / 0.8373 GB, free: 12.61 MB / 0.545 GB Notification: Performance of pre-optimization done (n=77): time 3.497e-06/1.183, allocations: 0 / 0.8373 GB, free: 12.61 MB / 0.545 GB Notification: Performance of matching and sorting (n=81): time 0.007597/1.19, allocations: 2.247 MB / 0.8395 GB, free: 10.95 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.215e-05/1.19, allocations: 56.34 kB / 0.8395 GB, free: 10.88 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002183/1.191, allocations: 260 kB / 0.8398 GB, free: 10.66 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.909e-05/1.191, allocations: 33.52 kB / 0.8398 GB, free: 10.62 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.615e-05/1.191, allocations: 195.8 kB / 0.84 GB, free: 10.45 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.997e-05/1.191, allocations: 272.1 kB / 0.8403 GB, free: 10.22 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/1.191, allocations: 100.9 kB / 0.8404 GB, free: 10.15 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.486e-05/1.191, allocations: 360 kB / 0.8407 GB, free: 9.812 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004244/1.191, allocations: 283.1 kB / 0.841 GB, free: 9.641 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004522/1.192, allocations: 403.7 kB / 0.8414 GB, free: 9.336 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008852/1.193, allocations: 0.7157 MB / 0.8421 GB, free: 8.844 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/1.193, allocations: 1.812 kB / 0.8421 GB, free: 8.844 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001301/1.194, allocations: 0.8202 MB / 0.8429 GB, free: 8.281 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/1.194, allocations: 5.094 kB / 0.8429 GB, free: 8.277 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/1.194, allocations: 6.062 kB / 0.8429 GB, free: 8.273 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002472/1.194, allocations: 60.88 kB / 0.8429 GB, free: 8.219 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006973/1.195, allocations: 142.3 kB / 0.8431 GB, free: 8.094 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07546/1.27, allocations: 22.79 MB / 0.8653 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004336/1.271, allocations: 29.48 kB / 0.8654 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/1.271, allocations: 15.81 kB / 0.8654 GB, free: 1.793 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002888/1.271, allocations: 185.6 kB / 0.8656 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/1.271, allocations: 55.7 kB / 0.8656 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002314/1.274, allocations: 1.738 MB / 0.8673 GB, free: 368 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.533e-05/1.274, allocations: 18.69 kB / 0.8673 GB, free: 356 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/1.274, allocations: 0 / 0.8673 GB, free: 356 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001812/1.275, allocations: 1.325 MB / 0.8686 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002615/1.278, allocations: 1.75 MB / 0.8703 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/1.278, allocations: 0 / 0.8703 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003648/1.278, allocations: 78.75 kB / 0.8704 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003585/1.279, allocations: 175.9 kB / 0.8706 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/1.279, allocations: 14.17 kB / 0.8706 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001981/1.281, allocations: 2.466 MB / 0.873 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/1.281, allocations: 80 / 0.873 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002516/1.283, allocations: 1.42 MB / 0.8744 GB, free: 10.31 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/1.283, allocations: 51.55 kB / 0.8744 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.067e-05/1.284, allocations: 2.875 kB / 0.8744 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003333/1.284, allocations: 32.34 kB / 0.8745 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/1.284, allocations: 41.3 kB / 0.8745 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-05/1.284, allocations: 17.86 kB / 0.8745 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002627/1.284, allocations: 224.4 kB / 0.8747 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/1.284, allocations: 0 / 0.8747 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01039/1.295, allocations: 3.573 MB / 0.8782 GB, free: 6.543 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$cse8.phase,$cse9.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02362/1.318, allocations: 6.543 MB / 0.8846 GB, free: 0.9961 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002575/1.321, allocations: 1.019 MB / 0.8856 GB, free: 212 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.321, allocations: 0 / 0.8856 GB, free: 212 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008824/1.322, allocations: 498.2 kB / 0.8861 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/1.324, allocations: 394.7 kB / 0.8865 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/1.338, allocations: 6.341 MB / 0.8926 GB, free: 9.859 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005582/1.339, allocations: 0.8486 MB / 0.8935 GB, free: 8.984 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004533/1.339, allocations: 135.2 kB / 0.8936 GB, free: 8.852 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002665/1.34, allocations: 175.4 kB / 0.8938 GB, free: 8.68 MB / 0.5919 GB Notification: Performance of SimCode: time 6.61e-07/1.34, allocations: 0 / 0.8938 GB, free: 8.68 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4655/1.805, allocations: 134.1 MB / 1.025 GB, free: 241.8 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.88/23.68, allocations: 15.7 kB / 1.025 GB, free: 241.7 MB / 0.67 GB " [Timeout remaining time 636] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 34.55014943199785] Failed to read output from testmodel.py, exit status != 0: 23.912226463995466 23.925629005 22.959851452 Calling exit ...