Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.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.001587/0.001587, allocations: 108.4 kB / 16.45 MB, free: 6.5 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.001492/0.001492, allocations: 216 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.529/1.529, 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.05302/0.05302, allocations: 9.156 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.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",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.002192/0.002192, allocations: 76.11 kB / 405.9 MB, free: 47.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0859/0.08809, allocations: 50.72 MB / 456.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.47/0.5581, allocations: 142.6 MB / 0.5852 GB, free: 7.957 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1117/0.6697, allocations: 97.91 MB / 0.6809 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007883/0.6705, allocations: 7.938 kB / 0.6809 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003925/0.6744, allocations: 1.559 MB / 0.6824 GB, free: 7.707 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004406/0.6789, allocations: 1.822 MB / 0.6842 GB, free: 5.879 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.08645/0.7653, allocations: 31.34 MB / 0.7148 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002247/0.7676, allocations: 1.402 MB / 0.7161 GB, free: 5.031 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002574/0.7678, allocations: 93.7 kB / 0.7162 GB, free: 4.934 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.01968/0.7875, allocations: 10.06 MB / 0.7261 GB, free: 10.85 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006144/0.7881, allocations: 394.4 kB / 0.7264 GB, free: 10.46 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.922e-05/0.7882, allocations: 44 kB / 0.7265 GB, free: 10.42 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3715/1.16, allocations: 35.88 MB / 0.7615 GB, free: 47.33 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002478/1.16, allocations: 123.8 kB / 0.7616 GB, free: 47.33 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005613/1.161, allocations: 306.5 kB / 0.7619 GB, free: 47.33 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.04344/1.204, allocations: 14.2 MB / 0.7758 GB, free: 46.92 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/1.204, allocations: 0 / 0.7758 GB, free: 46.92 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.653e-06/1.204, allocations: 0 / 0.7758 GB, free: 46.92 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.753e-05/1.204, allocations: 0 / 0.7758 GB, free: 46.92 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.006406/1.21, allocations: 2.684 MB / 0.7784 GB, free: 45.4 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/1.21, allocations: 8.281 kB / 0.7784 GB, free: 45.4 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.026e-05/1.211, allocations: 91.31 kB / 0.7785 GB, free: 45.36 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006375/1.211, allocations: 88.09 kB / 0.7786 GB, free: 45.34 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004642/1.212, allocations: 343.5 kB / 0.7789 GB, free: 45.11 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.349e-05/1.212, allocations: 33.08 kB / 0.7789 GB, free: 45.11 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.196e-05/1.212, allocations: 31.94 kB / 0.779 GB, free: 45.11 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/1.213, allocations: 0.603 MB / 0.7796 GB, free: 45 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/1.213, allocations: 1.203 kB / 0.7796 GB, free: 45 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.877e-05/1.213, allocations: 14.44 kB / 0.7796 GB, free: 45 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.386e-05/1.213, allocations: 18.22 kB / 0.7796 GB, free: 45 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/1.214, allocations: 0.5485 MB / 0.7801 GB, free: 45 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00202/1.216, allocations: 2.508 MB / 0.7826 GB, free: 43.31 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/1.217, allocations: 478.5 kB / 0.783 GB, free: 43.29 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004617/1.218, allocations: 310.5 kB / 0.7833 GB, free: 43.27 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2634/1.481, allocations: 139 MB / 0.9191 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.021e-05/1.481, allocations: 42.16 kB / 0.9191 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=78): time 5.25e-06/1.481, allocations: 4 kB / 0.9191 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of matching and sorting (n=82): time 0.00655/1.488, allocations: 2.331 MB / 0.9214 GB, free: 9.125 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/1.488, allocations: 59.41 kB / 0.9214 GB, free: 9.055 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003154/1.488, allocations: 257.6 kB / 0.9217 GB, free: 8.84 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.38e-05/1.488, allocations: 29.64 kB / 0.9217 GB, free: 8.809 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000136/1.488, allocations: 191.7 kB / 0.9219 GB, free: 8.645 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002212/1.488, allocations: 281.7 kB / 0.9222 GB, free: 8.406 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001602/1.489, allocations: 97.14 kB / 0.9222 GB, free: 8.34 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.000183/1.489, allocations: 357.4 kB / 0.9226 GB, free: 8.004 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005594/1.489, allocations: 274.8 kB / 0.9229 GB, free: 7.844 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006469/1.49, allocations: 407.3 kB / 0.9232 GB, free: 7.52 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/1.491, allocations: 0.707 MB / 0.9239 GB, free: 7.027 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/1.491, allocations: 2.719 kB / 0.9239 GB, free: 7.027 MB / 0.6544 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001609/1.493, allocations: 0.8051 MB / 0.9247 GB, free: 6.488 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/1.493, allocations: 8 kB / 0.9247 GB, free: 6.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/1.493, allocations: 4 kB / 0.9247 GB, free: 6.477 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000298/1.493, allocations: 65.77 kB / 0.9248 GB, free: 6.418 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007022/1.494, allocations: 128.9 kB / 0.9249 GB, free: 6.305 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08195/1.576, allocations: 19.08 MB / 0.9436 GB, free: 3.695 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004803/1.576, allocations: 39.72 kB / 0.9436 GB, free: 3.664 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.721e-05/1.576, allocations: 23.92 kB / 0.9436 GB, free: 3.645 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.0003538/1.577, allocations: 187.8 kB / 0.9438 GB, free: 3.496 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/1.577, allocations: 47.72 kB / 0.9438 GB, free: 3.449 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002264/1.579, allocations: 1.565 MB / 0.9454 GB, free: 2.348 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.721e-05/1.579, allocations: 19.25 kB / 0.9454 GB, free: 2.336 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/1.579, allocations: 0 / 0.9454 GB, free: 2.336 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001699/1.581, allocations: 1.176 MB / 0.9465 GB, free: 1.348 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/1.583, allocations: 1.63 MB / 0.9481 GB, free: 180 kB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/1.583, allocations: 0 / 0.9481 GB, free: 180 kB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003716/1.584, allocations: 78.5 kB / 0.9482 GB, free: 104 kB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002943/1.584, allocations: 109.9 kB / 0.9483 GB, free: 12 kB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/1.584, allocations: 3.938 kB / 0.9483 GB, free: 12 kB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001683/1.586, allocations: 2.003 MB / 0.9503 GB, free: 13.97 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/1.586, allocations: 0 / 0.9503 GB, free: 13.97 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002117/1.588, allocations: 1.25 MB / 0.9515 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/1.588, allocations: 124.7 kB / 0.9516 GB, free: 12.95 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.775e-05/1.588, allocations: 21.66 kB / 0.9516 GB, free: 12.94 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003237/1.588, allocations: 19.86 kB / 0.9516 GB, free: 12.93 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/1.589, allocations: 45.69 kB / 0.9517 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/1.589, allocations: 15.98 kB / 0.9517 GB, free: 12.88 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0003096/1.589, allocations: 246.7 kB / 0.9519 GB, free: 12.69 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1e-07/1.589, allocations: 0 / 0.9519 GB, free: 12.69 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01029/1.599, allocations: 3.57 MB / 0.9554 GB, free: 9.219 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.02229/1.621, allocations: 6.245 MB / 0.9615 GB, free: 3.949 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002315/1.624, allocations: 0.9489 MB / 0.9624 GB, free: 3.215 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/1.624, allocations: 0 / 0.9624 GB, free: 3.215 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0009457/1.625, allocations: 490.9 kB / 0.9629 GB, free: 2.855 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002081/1.627, allocations: 394.8 kB / 0.9633 GB, free: 2.512 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2205/1.847, allocations: 6.359 MB / 0.9695 GB, free: 345.3 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/1.848, allocations: 0.8512 MB / 0.9703 GB, free: 344.6 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005498/1.848, allocations: 139.3 kB / 0.9705 GB, free: 344.6 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002705/1.849, allocations: 168.8 kB / 0.9706 GB, free: 344.6 MB / 0.6856 GB Notification: Performance of SimCode: time 1.563e-06/1.849, allocations: 0 / 0.9706 GB, free: 344.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2084/2.057, allocations: 132.9 MB / 1.1 GB, free: 238.1 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.25/20.31, allocations: 3.984 kB / 1.1 GB, free: 238.1 MB / 0.6856 GB " [Timeout remaining time 640] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph_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_ButaneTestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 27.222331129945815] Failed to read output from testmodel.py, exit status != 0: 20.49995362991467 20.51637336 19.308851871 Calling exit ...