Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.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.001736/0.001736, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001402/0.001402, allocations: 211.6 kB / 22.24 MB, free: 5.258 MB / 14.72 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 1.364/1.364, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.04879/0.04879, allocations: 9.144 MB / 321.6 MB, free: 10.22 MB / 254.1 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.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 71.89 kB / 446.6 MB, free: 0.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1043, allocations: 54.93 MB / 0.4897 GB, free: 9.504 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.3336/0.4378, allocations: 127 MB / 0.6138 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.09141/0.5292, allocations: 86.74 MB / 0.6985 GB, free: 9.898 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006009/0.5298, allocations: 7.938 kB / 0.6985 GB, free: 9.891 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003088/0.5329, allocations: 1.227 MB / 0.6997 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003819/0.5367, allocations: 1.567 MB / 0.7012 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.3349/0.8717, allocations: 31.35 MB / 0.7318 GB, free: 22.98 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001525/0.8732, allocations: 1.424 MB / 0.7332 GB, free: 22.98 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.8734, allocations: 80.81 kB / 0.7333 GB, free: 22.97 MB / 0.545 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.01458/0.888, allocations: 10.11 MB / 0.7432 GB, free: 22.76 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004733/0.8884, allocations: 373.8 kB / 0.7435 GB, free: 22.76 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.027e-05/0.8885, allocations: 40.97 kB / 0.7436 GB, free: 22.76 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04055/0.9291, allocations: 25.37 MB / 0.7683 GB, free: 22.69 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003011/0.9294, allocations: 127.3 kB / 0.7685 GB, free: 22.69 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000636/0.93, allocations: 254.2 kB / 0.7687 GB, free: 22.69 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03264/0.9626, allocations: 12.76 MB / 0.7812 GB, free: 21.29 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.9626, allocations: 0 / 0.7812 GB, free: 21.29 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.713e-06/0.9626, allocations: 0 / 0.7812 GB, free: 21.29 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.736e-06/0.9626, allocations: 0 / 0.7812 GB, free: 21.29 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.005813/0.9685, allocations: 2.687 MB / 0.7838 GB, free: 19.64 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.9685, allocations: 10.38 kB / 0.7838 GB, free: 19.64 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.493e-05/0.9686, allocations: 87.14 kB / 0.7839 GB, free: 19.59 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005064/0.9691, allocations: 80.7 kB / 0.784 GB, free: 19.56 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.9695, allocations: 277.2 kB / 0.7842 GB, free: 19.37 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.493e-05/0.9695, allocations: 31.31 kB / 0.7843 GB, free: 19.37 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.369e-05/0.9696, allocations: 35.25 kB / 0.7843 GB, free: 19.37 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009901/0.9706, allocations: 0.7449 MB / 0.785 GB, free: 18.99 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.9706, allocations: 5.375 kB / 0.785 GB, free: 18.99 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.9706, allocations: 14.53 kB / 0.785 GB, free: 18.99 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.9706, allocations: 17.95 kB / 0.7851 GB, free: 18.99 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009922/0.9716, allocations: 0.529 MB / 0.7856 GB, free: 18.89 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.9734, allocations: 1.699 MB / 0.7872 GB, free: 17.91 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000842/0.9742, allocations: 465.9 kB / 0.7877 GB, free: 17.82 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004241/0.9746, allocations: 317.7 kB / 0.788 GB, free: 17.77 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1061/1.081, allocations: 30.71 MB / 0.818 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.975e-05/1.081, allocations: 38.78 kB / 0.818 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=78): time 2.304e-06/1.081, allocations: 0 / 0.818 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of matching and sorting (n=83): time 0.006066/1.087, allocations: 2.342 MB / 0.8203 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/1.087, allocations: 55.41 kB / 0.8203 GB, free: 9.965 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002841/1.087, allocations: 259.1 kB / 0.8206 GB, free: 9.746 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/1.087, allocations: 33.45 kB / 0.8206 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/1.087, allocations: 192.9 kB / 0.8208 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002012/1.088, allocations: 284.3 kB / 0.8211 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/1.088, allocations: 96.8 kB / 0.8212 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001729/1.088, allocations: 358.5 kB / 0.8215 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004892/1.088, allocations: 291.7 kB / 0.8218 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005766/1.089, allocations: 404.6 kB / 0.8222 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/1.09, allocations: 0.738 MB / 0.8229 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/1.09, allocations: 0.7656 kB / 0.8229 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001491/1.091, allocations: 0.8376 MB / 0.8237 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/1.092, allocations: 8 kB / 0.8237 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/1.092, allocations: 0 / 0.8237 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002788/1.092, allocations: 84.19 kB / 0.8238 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004975/1.092, allocations: 122 kB / 0.8239 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05037/1.143, allocations: 14.5 MB / 0.8381 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004323/1.143, allocations: 31.09 kB / 0.8381 GB, free: 8.914 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.516e-05/1.143, allocations: 15.38 kB / 0.8381 GB, free: 8.902 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002906/1.143, allocations: 194.8 kB / 0.8383 GB, free: 8.746 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/1.144, allocations: 48.31 kB / 0.8384 GB, free: 8.699 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002194/1.146, allocations: 1.763 MB / 0.8401 GB, free: 7.449 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/1.146, allocations: 14.47 kB / 0.8401 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/1.146, allocations: 0 / 0.8401 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00161/1.147, allocations: 1.29 MB / 0.8413 GB, free: 6.371 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002422/1.15, allocations: 1.728 MB / 0.843 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/1.15, allocations: 4 kB / 0.843 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000346/1.15, allocations: 78.94 kB / 0.8431 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003096/1.15, allocations: 112.6 kB / 0.8432 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/1.15, allocations: 15.67 kB / 0.8432 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001719/1.152, allocations: 1.985 MB / 0.8452 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/1.152, allocations: 6.75 kB / 0.8452 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00217/1.154, allocations: 1.463 MB / 0.8466 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/1.154, allocations: 43.67 kB / 0.8467 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.923e-05/1.155, allocations: 10.62 kB / 0.8467 GB, free: 1.922 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003058/1.155, allocations: 27.09 kB / 0.8467 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/1.155, allocations: 48.8 kB / 0.8467 GB, free: 1.863 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/1.155, allocations: 14.11 kB / 0.8467 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002284/1.155, allocations: 226.9 kB / 0.847 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/1.155, allocations: 0 / 0.847 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008274/1.163, allocations: 3.04 MB / 0.8499 GB, free: 14.73 MB / 0.5919 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.T) * Number of discrete variables: 10 ($cse11.phase,$cse12.phase,$cse14.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 (41): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(2,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.01892/1.182, allocations: 5.716 MB / 0.8555 GB, free: 9.941 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002195/1.185, allocations: 1.013 MB / 0.8565 GB, free: 9.164 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.299e-06/1.185, allocations: 0 / 0.8565 GB, free: 9.164 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008517/1.185, allocations: 0.5275 MB / 0.857 GB, free: 8.773 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/1.187, allocations: 410.8 kB / 0.8574 GB, free: 8.422 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/1.201, allocations: 6.392 MB / 0.8637 GB, free: 3.012 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/1.201, allocations: 254.6 kB / 0.8639 GB, free: 2.734 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004169/1.202, allocations: 121.3 kB / 0.864 GB, free: 2.617 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002028/1.202, allocations: 175.9 kB / 0.8642 GB, free: 2.562 MB / 0.5919 GB Notification: Performance of SimCode: time 6.71e-07/1.202, allocations: 3.281 kB / 0.8642 GB, free: 2.562 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.407/1.609, allocations: 120.8 MB / 0.9821 GB, free: 333.3 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.56/19.17, allocations: 12.84 kB / 0.9821 GB, free: 333.3 MB / 0.7012 GB " [Timeout remaining time 641] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT_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_pT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.855442791245878] Failed to read output from testmodel.py, exit status != 0: 19.363287209998816 19.375624479 18.410309022 Calling exit ...