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.001073/0.001073, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008249/0.0008249, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8785/0.8785, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo): time 0.02808/0.02808, allocations: 7.512 MB / 266.7 MB, free: 6.203 MB / 250.7 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 3.938 kB / 391.8 MB, free: 6.309 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.998e-05/2.167e-05, allocations: 2.281 kB / 391.8 MB, free: 6.305 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.2538/0.2538, allocations: 115 MB / 0.4949 GB, free: 24.12 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.05995/0.3137, allocations: 98.63 MB / 0.5912 GB, free: 8.117 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005007/0.3142, allocations: 15.88 kB / 0.5912 GB, free: 8.102 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002177/0.3164, allocations: 1.24 MB / 0.5924 GB, free: 6.859 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00253/0.319, allocations: 1.598 MB / 0.594 GB, free: 5.254 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.05181/0.3708, allocations: 32.46 MB / 0.6257 GB, free: 4.734 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001365/0.3721, allocations: 1.425 MB / 0.6271 GB, free: 3.305 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.3723, allocations: 89.64 kB / 0.6272 GB, free: 3.219 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/Interfaces/PartialHelmholtzMedium/package.mo:621:5-621:120:writable] Warning: assert triggered: setState_pTX: d_min and d_max did not bracket the root Notification: Performance of NFEvalConstants.evaluate: time 0.2352/0.6075, allocations: 12.19 MB / 0.6391 GB, free: 29.87 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003213/0.6078, allocations: 338.4 kB / 0.6394 GB, free: 29.86 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 4.89e-05/0.6078, allocations: 43.47 kB / 0.6394 GB, free: 29.86 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03825/0.6461, allocations: 26.36 MB / 0.6652 GB, free: 29.79 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0002089/0.6463, allocations: 129.2 kB / 0.6653 GB, free: 29.77 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0003686/0.6467, allocations: 219 kB / 0.6655 GB, free: 29.75 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.03326/0.6799, allocations: 14.77 MB / 0.6799 GB, free: 29.04 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.6799, allocations: 3.875 kB / 0.6799 GB, free: 29.04 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.603e-06/0.6799, allocations: 6.656 kB / 0.68 GB, free: 29.04 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.6799, allocations: 0 / 0.68 GB, free: 29.04 MB / 0.4948 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.005096/0.685, allocations: 2.58 MB / 0.6825 GB, free: 27.59 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.6851, allocations: 10.12 kB / 0.6825 GB, free: 27.59 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.059e-05/0.6851, allocations: 87.47 kB / 0.6826 GB, free: 27.55 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000313/0.6855, allocations: 89.33 kB / 0.6827 GB, free: 27.52 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000366/0.6858, allocations: 284.4 kB / 0.6829 GB, free: 27.36 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.6859, allocations: 33.31 kB / 0.683 GB, free: 27.36 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.367e-05/0.6859, allocations: 31.75 kB / 0.683 GB, free: 27.36 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007287/0.6866, allocations: 0.7607 MB / 0.6837 GB, free: 27.07 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.6866, allocations: 2.625 kB / 0.6837 GB, free: 27.07 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.558e-05/0.6867, allocations: 17.09 kB / 0.6837 GB, free: 27.07 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.6867, allocations: 22.69 kB / 0.6838 GB, free: 27.07 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006825/0.6874, allocations: 0.5495 MB / 0.6843 GB, free: 27.07 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001349/0.6887, allocations: 1.712 MB / 0.686 GB, free: 26.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005702/0.6893, allocations: 482 kB / 0.6864 GB, free: 26.22 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.6895, allocations: 313.2 kB / 0.6867 GB, free: 26.21 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08994/0.7795, allocations: 44.04 MB / 0.7297 GB, free: 9.188 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.7795, allocations: 39.34 kB / 0.7298 GB, free: 9.148 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=77): time 2.385e-06/0.7795, allocations: 0 / 0.7298 GB, free: 9.148 MB / 0.5105 GB Notification: Performance of matching and sorting (n=81): time 0.003747/0.7833, allocations: 2.247 MB / 0.732 GB, free: 7.465 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.7833, allocations: 55.41 kB / 0.732 GB, free: 7.398 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/0.7835, allocations: 263.5 kB / 0.7323 GB, free: 7.184 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.7835, allocations: 29.45 kB / 0.7323 GB, free: 7.152 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 9.585e-05/0.7836, allocations: 202.4 kB / 0.7325 GB, free: 6.984 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.7837, allocations: 269.6 kB / 0.7328 GB, free: 6.754 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.153e-05/0.7838, allocations: 96.8 kB / 0.7328 GB, free: 6.688 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.892e-05/0.7839, allocations: 355.8 kB / 0.7332 GB, free: 6.352 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002796/0.7842, allocations: 285.6 kB / 0.7335 GB, free: 6.18 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.7845, allocations: 405.8 kB / 0.7338 GB, free: 5.863 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000639/0.7852, allocations: 0.7139 MB / 0.7345 GB, free: 5.375 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.7852, allocations: 0 / 0.7345 GB, free: 5.375 MB / 0.5105 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0008184/0.786, allocations: 0.8225 MB / 0.7353 GB, free: 4.809 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.786, allocations: 4 kB / 0.7353 GB, free: 4.805 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.786, allocations: 5.406 kB / 0.7354 GB, free: 4.801 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000163/0.7862, allocations: 63.86 kB / 0.7354 GB, free: 4.746 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003608/0.7865, allocations: 141 kB / 0.7355 GB, free: 4.621 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0368/0.8233, allocations: 22.78 MB / 0.7578 GB, free: 14.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/0.8236, allocations: 31.66 kB / 0.7578 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.8236, allocations: 15.88 kB / 0.7578 GB, free: 14.38 MB / 0.5417 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.0002077/0.8238, allocations: 199.7 kB / 0.758 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.712e-05/0.8239, allocations: 43.72 kB / 0.7581 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001287/0.8252, allocations: 1.749 MB / 0.7598 GB, free: 12.94 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.8252, allocations: 20.33 kB / 0.7598 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.8252, allocations: 3.938 kB / 0.7598 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008936/0.8261, allocations: 1.313 MB / 0.7611 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001596/0.8277, allocations: 1.713 MB / 0.7628 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.8277, allocations: 0 / 0.7628 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.8278, allocations: 76.75 kB / 0.7628 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001822/0.828, allocations: 163.3 kB / 0.763 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.828, allocations: 15.67 kB / 0.763 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009629/0.829, allocations: 2.458 MB / 0.7654 GB, free: 7.926 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.829, allocations: 4.344 kB / 0.7654 GB, free: 7.926 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.8302, allocations: 1.411 MB / 0.7668 GB, free: 6.941 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.677e-05/0.8302, allocations: 47.27 kB / 0.7668 GB, free: 6.898 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.905e-05/0.8303, allocations: 7.188 kB / 0.7668 GB, free: 6.895 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.8304, allocations: 31.66 kB / 0.7669 GB, free: 6.871 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.169e-05/0.8305, allocations: 43.84 kB / 0.7669 GB, free: 6.832 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.8305, allocations: 19.92 kB / 0.7669 GB, free: 6.816 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001573/0.8307, allocations: 228.7 kB / 0.7672 GB, free: 6.637 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4e-08/0.8307, allocations: 0 / 0.7672 GB, free: 6.637 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008013/0.8387, allocations: 3.564 MB / 0.7706 GB, free: 3.172 MB / 0.5417 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.01275/0.8514, allocations: 6.936 MB / 0.7774 GB, free: 13.24 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00164/0.8531, allocations: 1.022 MB / 0.7784 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.8531, allocations: 0 / 0.7784 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0004371/0.8535, allocations: 494.6 kB / 0.7789 GB, free: 12.07 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.8545, allocations: 397.3 kB / 0.7793 GB, free: 11.73 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007095/0.8616, allocations: 6.311 MB / 0.7854 GB, free: 6.352 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001569/0.8618, allocations: 255.5 kB / 0.7857 GB, free: 6.074 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0002525/0.8621, allocations: 134.4 kB / 0.7858 GB, free: 5.945 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.8622, allocations: 165.6 kB / 0.7859 GB, free: 5.898 MB / 0.5573 GB Notification: Performance of SimCode: time 6.51e-07/0.8622, allocations: 4 kB / 0.7859 GB, free: 5.895 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3313/1.194, allocations: 135.9 MB / 0.9187 GB, free: 218.5 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 13/14.2, allocations: 6.859 kB / 0.9187 GB, free: 218.4 MB / 0.6198 GB " [Timeout remaining time 646] (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: 19.12577166315168] Failed to read output from testmodel.py, exit status != 0: 14.36798403877765 14.3747266 13.693195311 Calling exit ...