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.0009442/0.0009442, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001366/0.001366, allocations: 165.9 kB / 22.46 MB, free: 2.109 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.8652/0.8652, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.0296/0.0296, allocations: 7.52 MB / 266.7 MB, free: 6.188 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.393e-06/1.393e-06, allocations: 0 / 391.8 MB, free: 6.289 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.173e-05/1.313e-05, allocations: 2.281 kB / 391.8 MB, free: 6.285 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.2343/0.2343, allocations: 115 MB / 0.4949 GB, free: 24.1 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.06198/0.2963, allocations: 98.64 MB / 0.5912 GB, free: 8.121 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004689/0.2967, allocations: 7.938 kB / 0.5912 GB, free: 8.113 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002227/0.299, allocations: 1.24 MB / 0.5924 GB, free: 6.871 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002608/0.3016, allocations: 1.606 MB / 0.594 GB, free: 5.258 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.05712/0.3587, allocations: 32.45 MB / 0.6257 GB, free: 4.742 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001378/0.3601, allocations: 1.425 MB / 0.6271 GB, free: 3.312 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.3603, allocations: 93.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.2197/0.58, allocations: 12.18 MB / 0.6391 GB, free: 29.79 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003246/0.5803, allocations: 338.8 kB / 0.6394 GB, free: 29.79 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 4.725e-05/0.5803, allocations: 41.5 kB / 0.6394 GB, free: 29.79 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03697/0.6173, allocations: 26.37 MB / 0.6652 GB, free: 29.71 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0002194/0.6175, allocations: 131.8 kB / 0.6653 GB, free: 29.7 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0003558/0.6179, allocations: 217.1 kB / 0.6655 GB, free: 29.68 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.02954/0.6474, allocations: 14.77 MB / 0.6799 GB, free: 28.98 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.6474, allocations: 0 / 0.6799 GB, free: 28.98 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6474, allocations: 3.938 kB / 0.6799 GB, free: 28.98 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.6474, allocations: 0 / 0.6799 GB, free: 28.98 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.004046/0.6515, allocations: 2.582 MB / 0.6825 GB, free: 27.53 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.6515, allocations: 16.14 kB / 0.6825 GB, free: 27.52 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.736e-05/0.6516, allocations: 84.39 kB / 0.6826 GB, free: 27.48 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003256/0.6519, allocations: 88.77 kB / 0.6827 GB, free: 27.46 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.6522, allocations: 282.2 kB / 0.6829 GB, free: 27.3 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.128e-05/0.6523, allocations: 31.7 kB / 0.683 GB, free: 27.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.894e-05/0.6523, allocations: 36.56 kB / 0.683 GB, free: 27.29 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000738/0.653, allocations: 0.762 MB / 0.6837 GB, free: 27.01 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.6531, allocations: 3.594 kB / 0.6837 GB, free: 27.01 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/0.6531, allocations: 14.84 kB / 0.6837 GB, free: 27.01 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.6531, allocations: 17.17 kB / 0.6838 GB, free: 27.01 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006668/0.6538, allocations: 0.5537 MB / 0.6843 GB, free: 27 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.655, allocations: 1.715 MB / 0.686 GB, free: 26.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005554/0.6556, allocations: 474.9 kB / 0.6864 GB, free: 26.16 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002742/0.6558, allocations: 321.1 kB / 0.6867 GB, free: 26.15 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09083/0.7467, allocations: 44.03 MB / 0.7297 GB, free: 9.25 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/0.7467, allocations: 40.38 kB / 0.7298 GB, free: 9.207 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=77): time 1.943e-06/0.7467, allocations: 0 / 0.7298 GB, free: 9.207 MB / 0.5105 GB Notification: Performance of matching and sorting (n=81): time 0.003569/0.7503, allocations: 2.248 MB / 0.732 GB, free: 7.527 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.075e-05/0.7503, allocations: 55.41 kB / 0.732 GB, free: 7.461 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.7505, allocations: 267.8 kB / 0.7323 GB, free: 7.242 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.7505, allocations: 29.64 kB / 0.7323 GB, free: 7.211 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.7507, allocations: 192.1 kB / 0.7325 GB, free: 7.051 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.7508, allocations: 278.7 kB / 0.7328 GB, free: 6.812 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.824e-05/0.7509, allocations: 103.3 kB / 0.7329 GB, free: 6.746 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.629e-05/0.751, allocations: 352.5 kB / 0.7332 GB, free: 6.41 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.7513, allocations: 288.8 kB / 0.7335 GB, free: 6.238 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003254/0.7516, allocations: 405 kB / 0.7339 GB, free: 5.922 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006216/0.7522, allocations: 0.718 MB / 0.7346 GB, free: 5.434 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.7522, allocations: 0 / 0.7346 GB, free: 5.434 MB / 0.5105 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0008326/0.753, allocations: 0.8208 MB / 0.7354 GB, free: 4.867 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.753, allocations: 12.03 kB / 0.7354 GB, free: 4.855 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.7531, allocations: 0 / 0.7354 GB, free: 4.855 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001561/0.7532, allocations: 61.23 kB / 0.7354 GB, free: 4.801 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003827/0.7536, allocations: 141.8 kB / 0.7356 GB, free: 4.676 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03786/0.7915, allocations: 22.78 MB / 0.7578 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003604/0.7918, allocations: 31.5 kB / 0.7578 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.7918, allocations: 19.61 kB / 0.7579 GB, free: 14.45 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.0002472/0.7921, allocations: 190.3 kB / 0.758 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.289e-05/0.7921, allocations: 43.72 kB / 0.7581 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001715/0.7939, allocations: 1.748 MB / 0.7598 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.7939, allocations: 13.62 kB / 0.7598 GB, free: 13 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.7939, allocations: 4.812 kB / 0.7598 GB, free: 13 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009119/0.7948, allocations: 1.318 MB / 0.7611 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001382/0.7962, allocations: 1.711 MB / 0.7628 GB, free: 10.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.7962, allocations: 0 / 0.7628 GB, free: 10.69 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.7963, allocations: 79.12 kB / 0.7628 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001985/0.7965, allocations: 167.5 kB / 0.763 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.7966, allocations: 13.12 kB / 0.763 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/0.7976, allocations: 2.463 MB / 0.7654 GB, free: 7.988 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.7976, allocations: 1.125 kB / 0.7654 GB, free: 7.988 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.7988, allocations: 1.415 MB / 0.7668 GB, free: 7.008 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.291e-05/0.7988, allocations: 43.67 kB / 0.7668 GB, free: 6.965 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.236e-05/0.7988, allocations: 7.562 kB / 0.7668 GB, free: 6.961 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.799, allocations: 27.78 kB / 0.7669 GB, free: 6.941 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.149e-05/0.7991, allocations: 42.92 kB / 0.7669 GB, free: 6.906 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.7991, allocations: 11.98 kB / 0.7669 GB, free: 6.895 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001523/0.7992, allocations: 227.7 kB / 0.7671 GB, free: 6.715 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8e-08/0.7992, allocations: 64 / 0.7671 GB, free: 6.715 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008841/0.8081, allocations: 3.573 MB / 0.7706 GB, free: 3.238 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.01241/0.8205, allocations: 6.948 MB / 0.7774 GB, free: 13.3 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001417/0.8219, allocations: 1.007 MB / 0.7784 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.8219, allocations: 0 / 0.7784 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0004385/0.8223, allocations: 0.4921 MB / 0.7789 GB, free: 12.14 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.8234, allocations: 397.4 kB / 0.7793 GB, free: 11.79 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00703/0.8304, allocations: 6.307 MB / 0.7854 GB, free: 6.418 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.8306, allocations: 256.2 kB / 0.7857 GB, free: 6.141 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0002613/0.8308, allocations: 138.8 kB / 0.7858 GB, free: 6.008 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.831, allocations: 169.8 kB / 0.786 GB, free: 5.957 MB / 0.5573 GB Notification: Performance of SimCode: time 6.32e-07/0.831, allocations: 0 / 0.786 GB, free: 5.957 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3224/1.153, allocations: 135.4 MB / 0.9181 GB, free: 218.7 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.92, allocations: 10.92 kB / 0.9182 GB, free: 218.7 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: 18.874429165385664] Failed to read output from testmodel.py, exit status != 0: 14.090272308327258 14.097248179 13.448273044 Calling exit ...