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.001815/0.001815, allocations: 108.2 kB / 16.45 MB, free: 6.488 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.002491/0.002491, allocations: 220.2 kB / 19.43 MB, free: 3.656 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.588/1.588, allocations: 207.6 MB / 229.8 MB, free: 11.4 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.05363/0.05363, allocations: 9.156 MB / 290.8 MB, free: 13.89 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.002189/0.002189, allocations: 73.55 kB / 405.9 MB, free: 47.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08686/0.08905, allocations: 50.72 MB / 456.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3936/0.4827, allocations: 129.3 MB / 0.5722 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1289/0.6116, allocations: 111.3 MB / 0.6809 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006695/0.6123, allocations: 11.88 kB / 0.6809 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.004697/0.617, allocations: 1.555 MB / 0.6825 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00582/0.6228, allocations: 1.826 MB / 0.6843 GB, free: 5.684 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.09193/0.7147, allocations: 31.94 MB / 0.7154 GB, free: 5.637 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002069/0.7168, allocations: 1.406 MB / 0.7168 GB, free: 4.227 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.717, allocations: 85.72 kB / 0.7169 GB, free: 4.137 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.02147/0.7385, allocations: 11.88 MB / 0.7285 GB, free: 8.234 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006565/0.7392, allocations: 394.4 kB / 0.7289 GB, free: 7.848 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.786e-05/0.7392, allocations: 40 kB / 0.7289 GB, free: 7.809 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3743/1.114, allocations: 37.54 MB / 0.7656 GB, free: 48.73 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002179/1.114, allocations: 117.3 kB / 0.7657 GB, free: 48.73 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005/1.114, allocations: 315.7 kB / 0.766 GB, free: 48.73 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.04954/1.164, allocations: 14.55 MB / 0.7802 GB, free: 48.31 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/1.164, allocations: 0 / 0.7802 GB, free: 48.31 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.794e-06/1.164, allocations: 0 / 0.7802 GB, free: 48.31 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.946e-05/1.164, allocations: 0 / 0.7802 GB, free: 48.31 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.007319/1.171, allocations: 2.678 MB / 0.7828 GB, free: 46.8 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/1.171, allocations: 13.94 kB / 0.7828 GB, free: 46.79 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.636e-05/1.171, allocations: 84.42 kB / 0.7829 GB, free: 46.75 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006576/1.172, allocations: 87.95 kB / 0.783 GB, free: 46.73 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004715/1.172, allocations: 338.8 kB / 0.7833 GB, free: 46.5 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/1.172, allocations: 34.5 kB / 0.7833 GB, free: 46.5 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.029e-05/1.172, allocations: 31.5 kB / 0.7834 GB, free: 46.5 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/1.174, allocations: 0.6009 MB / 0.784 GB, free: 46.4 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.853e-05/1.174, allocations: 1.875 kB / 0.784 GB, free: 46.4 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.832e-05/1.174, allocations: 18.89 kB / 0.784 GB, free: 46.39 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.989e-05/1.174, allocations: 18.94 kB / 0.784 GB, free: 46.39 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/1.175, allocations: 0.5448 MB / 0.7845 GB, free: 46.39 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/1.177, allocations: 2.467 MB / 0.7869 GB, free: 44.77 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/1.178, allocations: 461.2 kB / 0.7874 GB, free: 44.74 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004653/1.179, allocations: 303.6 kB / 0.7877 GB, free: 44.73 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.304/1.483, allocations: 139 MB / 0.9234 GB, free: 8.73 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.711e-05/1.483, allocations: 44.3 kB / 0.9234 GB, free: 8.684 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=77): time 2.925e-06/1.483, allocations: 0 / 0.9234 GB, free: 8.684 MB / 0.6544 GB Notification: Performance of matching and sorting (n=81): time 0.006561/1.489, allocations: 2.355 MB / 0.9257 GB, free: 6.871 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/1.489, allocations: 55.41 kB / 0.9258 GB, free: 6.805 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002952/1.49, allocations: 257.3 kB / 0.926 GB, free: 6.594 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/1.49, allocations: 33.64 kB / 0.9261 GB, free: 6.559 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/1.49, allocations: 195 kB / 0.9263 GB, free: 6.391 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/1.49, allocations: 276.3 kB / 0.9265 GB, free: 6.156 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/1.49, allocations: 98.83 kB / 0.9266 GB, free: 6.09 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001695/1.49, allocations: 355.4 kB / 0.927 GB, free: 5.754 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005248/1.491, allocations: 278.5 kB / 0.9272 GB, free: 5.594 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006255/1.491, allocations: 392.7 kB / 0.9276 GB, free: 5.293 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/1.493, allocations: 0.6969 MB / 0.9283 GB, free: 4.82 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/1.493, allocations: 0 / 0.9283 GB, free: 4.82 MB / 0.6544 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001547/1.494, allocations: 0.7977 MB / 0.9291 GB, free: 4.281 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/1.494, allocations: 4 kB / 0.9291 GB, free: 4.277 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/1.494, allocations: 4 kB / 0.9291 GB, free: 4.273 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002732/1.495, allocations: 68.08 kB / 0.9291 GB, free: 4.215 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000818/1.495, allocations: 139.6 kB / 0.9293 GB, free: 4.09 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07892/1.574, allocations: 22.98 MB / 0.9517 GB, free: 13.59 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004362/1.575, allocations: 24.8 kB / 0.9517 GB, free: 13.57 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.689e-05/1.575, allocations: 19.61 kB / 0.9517 GB, free: 13.55 MB / 0.6856 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.0002977/1.575, allocations: 190.5 kB / 0.9519 GB, free: 13.4 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/1.575, allocations: 55.53 kB / 0.952 GB, free: 13.35 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002314/1.577, allocations: 1.698 MB / 0.9536 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.86e-05/1.577, allocations: 9.203 kB / 0.9536 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/1.577, allocations: 7.984 kB / 0.9536 GB, free: 12.15 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00174/1.579, allocations: 1.283 MB / 0.9549 GB, free: 11.1 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002527/1.582, allocations: 1.735 MB / 0.9566 GB, free: 9.867 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/1.582, allocations: 6.344 kB / 0.9566 GB, free: 9.863 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003611/1.582, allocations: 73.73 kB / 0.9567 GB, free: 9.797 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003583/1.582, allocations: 172.9 kB / 0.9568 GB, free: 9.656 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.318e-05/1.582, allocations: 6 kB / 0.9568 GB, free: 9.656 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/1.585, allocations: 2.568 MB / 0.9593 GB, free: 7.039 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/1.585, allocations: 0 / 0.9593 GB, free: 7.039 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002243/1.587, allocations: 1.369 MB / 0.9607 GB, free: 6.102 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/1.587, allocations: 128.7 kB / 0.9608 GB, free: 5.957 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.034e-05/1.587, allocations: 6.062 kB / 0.9608 GB, free: 5.957 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003465/1.587, allocations: 30.53 kB / 0.9608 GB, free: 5.934 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/1.587, allocations: 42.5 kB / 0.9609 GB, free: 5.898 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.162e-05/1.588, allocations: 13.98 kB / 0.9609 GB, free: 5.887 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002713/1.588, allocations: 223.7 kB / 0.9611 GB, free: 5.707 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1e-07/1.588, allocations: 8.062 kB / 0.9611 GB, free: 5.699 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01131/1.599, allocations: 3.565 MB / 0.9646 GB, free: 2.234 MB / 0.6856 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.2479/1.847, allocations: 6.503 MB / 0.971 GB, free: 347.8 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002403/1.849, allocations: 0.9949 MB / 0.9719 GB, free: 347.6 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/1.849, allocations: 1.344 kB / 0.9719 GB, free: 347.6 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0008041/1.85, allocations: 492.1 kB / 0.9724 GB, free: 347.4 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002032/1.852, allocations: 392.3 kB / 0.9728 GB, free: 347.4 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01392/1.866, allocations: 6.266 MB / 0.9789 GB, free: 345.3 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/1.867, allocations: 0.8509 MB / 0.9797 GB, free: 344.6 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005837/1.867, allocations: 138.8 kB / 0.9798 GB, free: 344.6 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002239/1.867, allocations: 171 kB / 0.98 GB, free: 344.6 MB / 0.6856 GB Notification: Performance of SimCode: time 7.21e-07/1.867, allocations: 0 / 0.98 GB, free: 344.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1903/2.058, allocations: 133.5 MB / 1.11 GB, free: 233 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.44/22.5, allocations: 11.84 kB / 1.11 GB, free: 233 MB / 0.6856 GB " [Timeout remaining time 637] (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: 33.41057522594929] Failed to read output from testmodel.py, exit status != 0: 22.70669382903725 22.72264076 21.555534736 Calling exit ...