Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.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.002163/0.002163, allocations: 106.7 kB / 16.45 MB, free: 6.449 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.003063/0.003063, allocations: 212 kB / 19.43 MB, free: 3.637 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.56/1.56, allocations: 207.6 MB / 229.8 MB, free: 11.41 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.05148/0.05148, allocations: 9.147 MB / 290.8 MB, free: 13.9 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.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",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.002174/0.002174, allocations: 75.89 kB / 405.9 MB, free: 47.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1049, allocations: 50.73 MB / 456.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.4123/0.5172, allocations: 128.5 MB / 0.5715 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.145/0.6622, allocations: 110.3 MB / 0.6792 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005496/0.6627, allocations: 11.88 kB / 0.6792 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003152/0.6659, allocations: 1.458 MB / 0.6806 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004143/0.67, allocations: 1.717 MB / 0.6823 GB, free: 7.926 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.09098/0.761, allocations: 30.49 MB / 0.7121 GB, free: 9.34 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002154/0.7632, allocations: 1.328 MB / 0.7134 GB, free: 8.008 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002568/0.7634, allocations: 93.7 kB / 0.7135 GB, free: 7.91 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.01849/0.7819, allocations: 8.823 MB / 0.7221 GB, free: 15.07 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006566/0.7826, allocations: 382.4 kB / 0.7225 GB, free: 14.69 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.524e-05/0.7827, allocations: 44 kB / 0.7225 GB, free: 14.65 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.419/1.202, allocations: 34.13 MB / 0.7558 GB, free: 49.13 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003793/1.202, allocations: 125.2 kB / 0.756 GB, free: 49.13 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0007246/1.203, allocations: 305.7 kB / 0.7562 GB, free: 49.13 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.05012/1.253, allocations: 14.16 MB / 0.7701 GB, free: 48.72 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/1.253, allocations: 0 / 0.7701 GB, free: 48.72 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.763e-06/1.253, allocations: 0 / 0.7701 GB, free: 48.72 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.978e-05/1.253, allocations: 0 / 0.7701 GB, free: 48.72 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.008352/1.261, allocations: 2.681 MB / 0.7727 GB, free: 47.2 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/1.261, allocations: 10.69 kB / 0.7727 GB, free: 47.2 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.505e-05/1.261, allocations: 85.03 kB / 0.7728 GB, free: 47.16 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005652/1.262, allocations: 90.27 kB / 0.7729 GB, free: 47.14 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004689/1.262, allocations: 345.9 kB / 0.7732 GB, free: 46.91 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.567e-05/1.262, allocations: 30.09 kB / 0.7732 GB, free: 46.91 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.479e-05/1.263, allocations: 32.91 kB / 0.7733 GB, free: 46.91 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/1.264, allocations: 0.5988 MB / 0.7738 GB, free: 46.81 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/1.264, allocations: 10.03 kB / 0.7739 GB, free: 46.81 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.851e-05/1.264, allocations: 13.44 kB / 0.7739 GB, free: 46.81 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/1.264, allocations: 20.83 kB / 0.7739 GB, free: 46.81 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/1.265, allocations: 0.5451 MB / 0.7744 GB, free: 46.81 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00213/1.267, allocations: 2.506 MB / 0.7769 GB, free: 45.13 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/1.268, allocations: 471.6 kB / 0.7773 GB, free: 45.11 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004866/1.269, allocations: 310.5 kB / 0.7776 GB, free: 45.09 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2516/1.52, allocations: 139 MB / 0.9133 GB, free: 16.75 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.531e-05/1.52, allocations: 34.83 kB / 0.9134 GB, free: 16.71 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=78): time 4.389e-06/1.52, allocations: 1.094 kB / 0.9134 GB, free: 16.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=82): time 0.005896/1.526, allocations: 2.344 MB / 0.9157 GB, free: 14.9 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/1.526, allocations: 56.91 kB / 0.9157 GB, free: 14.83 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/1.527, allocations: 256.9 kB / 0.916 GB, free: 14.62 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/1.527, allocations: 33.52 kB / 0.916 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/1.527, allocations: 192.4 kB / 0.9162 GB, free: 14.42 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/1.527, allocations: 280.9 kB / 0.9165 GB, free: 14.18 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/1.527, allocations: 96.67 kB / 0.9165 GB, free: 14.12 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.000152/1.527, allocations: 355.9 kB / 0.9169 GB, free: 13.78 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004539/1.528, allocations: 271.7 kB / 0.9171 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005173/1.528, allocations: 405.5 kB / 0.9175 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/1.529, allocations: 0.7045 MB / 0.9182 GB, free: 12.81 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/1.529, allocations: 0 / 0.9182 GB, free: 12.81 MB / 0.6544 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001461/1.531, allocations: 0.8038 MB / 0.919 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/1.531, allocations: 4 kB / 0.919 GB, free: 12.26 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/1.531, allocations: 4 kB / 0.919 GB, free: 12.26 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002751/1.531, allocations: 61.36 kB / 0.9191 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000683/1.532, allocations: 132 kB / 0.9192 GB, free: 12.09 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07578/1.607, allocations: 19.88 MB / 0.9386 GB, free: 8.664 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005113/1.608, allocations: 35.34 kB / 0.9386 GB, free: 8.637 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.2e-05/1.608, allocations: 23.8 kB / 0.9387 GB, free: 8.617 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {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.0003418/1.608, allocations: 190.5 kB / 0.9388 GB, free: 8.465 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/1.608, allocations: 43.72 kB / 0.9389 GB, free: 8.422 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/1.611, allocations: 1.57 MB / 0.9404 GB, free: 7.316 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.302e-05/1.611, allocations: 14.42 kB / 0.9404 GB, free: 7.309 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/1.611, allocations: 0 / 0.9404 GB, free: 7.309 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001602/1.612, allocations: 1.173 MB / 0.9416 GB, free: 6.324 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002536/1.615, allocations: 1.627 MB / 0.9432 GB, free: 5.152 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/1.615, allocations: 7.938 kB / 0.9432 GB, free: 5.145 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003582/1.615, allocations: 82.66 kB / 0.9433 GB, free: 5.07 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000315/1.615, allocations: 99.09 kB / 0.9433 GB, free: 4.988 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/1.615, allocations: 9.812 kB / 0.9434 GB, free: 4.984 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001883/1.617, allocations: 2 MB / 0.9453 GB, free: 2.938 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/1.617, allocations: 0 / 0.9453 GB, free: 2.938 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002181/1.62, allocations: 1.247 MB / 0.9465 GB, free: 2.066 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/1.62, allocations: 120.7 kB / 0.9466 GB, free: 1.93 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.981e-05/1.62, allocations: 24.5 kB / 0.9467 GB, free: 1.914 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003139/1.62, allocations: 19.86 kB / 0.9467 GB, free: 1.898 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/1.62, allocations: 43.69 kB / 0.9467 GB, free: 1.863 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-05/1.62, allocations: 19.86 kB / 0.9467 GB, free: 1.848 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.000291/1.621, allocations: 240.4 kB / 0.947 GB, free: 1.664 MB / 0.67 GB Notification: Performance of sort global known variables: time 9e-08/1.621, allocations: 0 / 0.947 GB, free: 1.664 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.01331/1.634, allocations: 3.574 MB / 0.9505 GB, free: 14.19 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($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 (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02498/1.659, allocations: 6.272 MB / 0.9566 GB, free: 8.891 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002444/1.661, allocations: 0.9546 MB / 0.9575 GB, free: 8.16 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.661, allocations: 0 / 0.9575 GB, free: 8.16 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.00104/1.662, allocations: 485.7 kB / 0.958 GB, free: 7.805 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002109/1.664, allocations: 401.5 kB / 0.9584 GB, free: 7.457 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01771/1.682, allocations: 6.359 MB / 0.9646 GB, free: 2.051 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000513/1.683, allocations: 0.8486 MB / 0.9654 GB, free: 1.172 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.000525/1.683, allocations: 145.7 kB / 0.9655 GB, free: 1.031 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002242/1.683, allocations: 170.9 kB / 0.9657 GB, free: 0.9805 MB / 0.6856 GB Notification: Performance of SimCode: time 7.21e-07/1.683, allocations: 0 / 0.9657 GB, free: 0.9805 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4531/2.137, allocations: 132.6 MB / 1.095 GB, free: 244 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.99/20.13, allocations: 15.92 kB / 1.095 GB, free: 244 MB / 0.6856 GB " [Timeout remaining time 640] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 23.05115510104224] Failed to read output from testmodel.py, exit status != 0: 20.322406793944538 20.337980559000002 19.081772852 Calling exit ...