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.0007354/0.0007354, 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.00081/0.00081, 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.8703/0.8703, 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.02849/0.02849, allocations: 7.514 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.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: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 391.8 MB, free: 6.324 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.562e-05/1.683e-05, allocations: 5.234 kB / 391.8 MB, free: 6.32 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.2453/0.2453, allocations: 126.8 MB / 0.5064 GB, free: 16.1 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.05292/0.2982, allocations: 86.74 MB / 0.5911 GB, free: 8.246 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004004/0.2986, allocations: 11.94 kB / 0.5911 GB, free: 8.234 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002029/0.3007, allocations: 1.24 MB / 0.5924 GB, free: 6.992 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002445/0.3031, allocations: 1.61 MB / 0.5939 GB, free: 5.375 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.05595/0.3591, allocations: 31.86 MB / 0.625 GB, free: 5.465 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001709/0.3608, allocations: 1.433 MB / 0.6264 GB, free: 4.027 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.361, allocations: 89.7 kB / 0.6265 GB, free: 3.938 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.232/0.593, allocations: 10.43 MB / 0.6367 GB, free: 28.82 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003425/0.5933, allocations: 339.5 kB / 0.637 GB, free: 28.81 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 4.62e-05/0.5933, allocations: 41.69 kB / 0.6371 GB, free: 28.81 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03303/0.6264, allocations: 24.86 MB / 0.6613 GB, free: 28.76 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.000198/0.6266, allocations: 127.2 kB / 0.6615 GB, free: 28.76 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0003652/0.6269, allocations: 220.1 kB / 0.6617 GB, free: 28.76 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.03033/0.6573, allocations: 14.53 MB / 0.6759 GB, free: 28.23 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.6573, allocations: 2.969 kB / 0.6759 GB, free: 28.23 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6573, allocations: 0 / 0.6759 GB, free: 28.23 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.6573, allocations: 0 / 0.6759 GB, free: 28.23 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.003593/0.6609, allocations: 2.583 MB / 0.6784 GB, free: 26.78 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.6609, allocations: 9.906 kB / 0.6784 GB, free: 26.78 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.569e-05/0.661, allocations: 86.8 kB / 0.6785 GB, free: 26.74 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003284/0.6613, allocations: 89.08 kB / 0.6786 GB, free: 26.71 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003233/0.6616, allocations: 285.1 kB / 0.6788 GB, free: 26.55 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.6616, allocations: 36.69 kB / 0.6789 GB, free: 26.55 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.354e-05/0.6617, allocations: 31.56 kB / 0.6789 GB, free: 26.55 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007028/0.6624, allocations: 0.76 MB / 0.6796 GB, free: 26.27 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.6624, allocations: 0 / 0.6796 GB, free: 26.27 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.596e-05/0.6624, allocations: 18.72 kB / 0.6797 GB, free: 26.27 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.6624, allocations: 15.31 kB / 0.6797 GB, free: 26.27 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006755/0.6631, allocations: 0.5529 MB / 0.6802 GB, free: 26.26 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.6643, allocations: 1.708 MB / 0.6819 GB, free: 25.45 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006082/0.665, allocations: 485.4 kB / 0.6823 GB, free: 25.42 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.6652, allocations: 312.4 kB / 0.6826 GB, free: 25.41 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08996/0.7552, allocations: 44.03 MB / 0.7256 GB, free: 12.29 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.7552, allocations: 34.72 kB / 0.7257 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=78): time 2.214e-06/0.7552, allocations: 4 kB / 0.7257 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=82): time 0.00358/0.7588, allocations: 2.238 MB / 0.7279 GB, free: 10.57 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.7588, allocations: 55.41 kB / 0.7279 GB, free: 10.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.759, allocations: 268.5 kB / 0.7282 GB, free: 10.28 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.7591, allocations: 33.64 kB / 0.7282 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.938e-05/0.7591, allocations: 186.8 kB / 0.7284 GB, free: 10.09 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.7593, allocations: 281.2 kB / 0.7287 GB, free: 9.852 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.619e-05/0.7593, allocations: 96.17 kB / 0.7287 GB, free: 9.785 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.7594, allocations: 354.2 kB / 0.7291 GB, free: 9.449 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002769/0.7597, allocations: 283.3 kB / 0.7294 GB, free: 9.281 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003257/0.76, allocations: 418.1 kB / 0.7298 GB, free: 8.945 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006296/0.7607, allocations: 0.7323 MB / 0.7305 GB, free: 8.434 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.7607, allocations: 0 / 0.7305 GB, free: 8.434 MB / 0.5105 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0008343/0.7615, allocations: 0.8189 MB / 0.7313 GB, free: 7.867 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.7615, allocations: 8 kB / 0.7313 GB, free: 7.859 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.7615, allocations: 4 kB / 0.7313 GB, free: 7.855 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001562/0.7617, allocations: 68.02 kB / 0.7313 GB, free: 7.797 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003385/0.762, allocations: 125.8 kB / 0.7315 GB, free: 7.684 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0359/0.7979, allocations: 18.89 MB / 0.7499 GB, free: 5.371 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/0.7982, allocations: 35.81 kB / 0.75 GB, free: 5.344 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.7982, allocations: 19.94 kB / 0.75 GB, free: 5.328 MB / 0.5261 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.0002206/0.7985, allocations: 197.4 kB / 0.7502 GB, free: 5.168 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.169e-05/0.7985, allocations: 43.72 kB / 0.7502 GB, free: 5.125 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00124/0.7998, allocations: 1.62 MB / 0.7518 GB, free: 3.969 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.7998, allocations: 19.62 kB / 0.7518 GB, free: 3.957 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.7998, allocations: 4.812 kB / 0.7518 GB, free: 3.953 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008409/0.8006, allocations: 1.205 MB / 0.753 GB, free: 2.941 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/0.8019, allocations: 1.588 MB / 0.7545 GB, free: 1.797 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.8019, allocations: 0 / 0.7545 GB, free: 1.797 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.8021, allocations: 83.69 kB / 0.7546 GB, free: 1.723 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001542/0.8023, allocations: 106.5 kB / 0.7547 GB, free: 1.633 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.8023, allocations: 15.25 kB / 0.7547 GB, free: 1.629 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009485/0.8032, allocations: 1.885 MB / 0.7566 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.8032, allocations: 0 / 0.7566 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.8044, allocations: 1.281 MB / 0.7578 GB, free: 14.81 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.04e-05/0.8044, allocations: 39.69 kB / 0.7579 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.387e-05/0.8044, allocations: 15.45 kB / 0.7579 GB, free: 14.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.8046, allocations: 27.84 kB / 0.7579 GB, free: 14.74 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.025e-05/0.8047, allocations: 47.73 kB / 0.7579 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.8047, allocations: 15.92 kB / 0.758 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001578/0.8048, allocations: 244.9 kB / 0.7582 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7e-08/0.8048, allocations: 0 / 0.7582 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00781/0.8127, allocations: 3.571 MB / 0.7617 GB, free: 11.03 MB / 0.5417 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.01229/0.8249, allocations: 6.658 MB / 0.7682 GB, free: 5.355 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001256/0.8262, allocations: 0.9836 MB / 0.7691 GB, free: 4.582 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.8262, allocations: 0 / 0.7691 GB, free: 4.582 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004673/0.8267, allocations: 477.7 kB / 0.7696 GB, free: 4.23 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.8277, allocations: 402.6 kB / 0.77 GB, free: 3.879 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006866/0.8345, allocations: 6.399 MB / 0.7762 GB, free: 14.4 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000158/0.8347, allocations: 250.2 kB / 0.7765 GB, free: 14.12 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.000281/0.835, allocations: 145.3 kB / 0.7766 GB, free: 13.99 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.8351, allocations: 166.9 kB / 0.7768 GB, free: 13.94 MB / 0.5573 GB Notification: Performance of SimCode: time 6.71e-07/0.8351, allocations: 4 kB / 0.7768 GB, free: 13.94 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3257/1.161, allocations: 134.8 MB / 0.9084 GB, free: 214.2 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.89, allocations: 8.906 kB / 0.9084 GB, free: 214.2 MB / 0.6198 GB " [Timeout remaining time 647] (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: 17.888644309714437] Failed to read output from testmodel.py, exit status != 0: 13.0418372284621 13.048715296 12.389938665 Calling exit ...