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.001143/0.001143, 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.001336/0.001336, 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.868/0.868, 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.02778/0.02778, allocations: 7.516 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 2.023e-06/2.023e-06, allocations: 0 / 391.8 MB, free: 6.312 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.517e-05/2.719e-05, allocations: 5.234 kB / 391.8 MB, free: 6.309 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.2725/0.2725, allocations: 126.8 MB / 0.5064 GB, free: 16.12 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0578/0.3303, allocations: 86.73 MB / 0.5911 GB, free: 8.23 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005622/0.3309, allocations: 7.938 kB / 0.5911 GB, free: 8.223 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002386/0.3333, allocations: 1.243 MB / 0.5924 GB, free: 6.977 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00325/0.3365, allocations: 1.606 MB / 0.5939 GB, free: 5.363 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.06233/0.3989, allocations: 31.86 MB / 0.625 GB, free: 5.449 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001873/0.4007, allocations: 1.433 MB / 0.6264 GB, free: 4.012 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002118/0.401, allocations: 93.77 kB / 0.6265 GB, free: 3.918 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.2483/0.6493, allocations: 10.43 MB / 0.6367 GB, free: 28.91 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004563/0.6498, allocations: 336.2 kB / 0.637 GB, free: 28.91 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 5.153e-05/0.6498, allocations: 40.94 kB / 0.6371 GB, free: 28.91 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04567/0.6955, allocations: 24.85 MB / 0.6613 GB, free: 28.86 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0003176/0.6958, allocations: 133.2 kB / 0.6615 GB, free: 28.86 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0005306/0.6963, allocations: 215.6 kB / 0.6617 GB, free: 28.86 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.04067/0.737, allocations: 14.54 MB / 0.6759 GB, free: 28.33 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.737, allocations: 0 / 0.6759 GB, free: 28.33 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.036e-06/0.737, allocations: 0 / 0.6759 GB, free: 28.33 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.193e-05/0.737, allocations: 2.906 kB / 0.6759 GB, free: 28.33 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.007379/0.7444, allocations: 2.579 MB / 0.6784 GB, free: 26.88 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.7444, allocations: 13.88 kB / 0.6784 GB, free: 26.88 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.007e-05/0.7445, allocations: 83.02 kB / 0.6785 GB, free: 26.84 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003923/0.7449, allocations: 90.05 kB / 0.6786 GB, free: 26.81 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004704/0.7454, allocations: 285.2 kB / 0.6788 GB, free: 26.65 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/0.7454, allocations: 30.25 kB / 0.6789 GB, free: 26.65 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.068e-05/0.7454, allocations: 36.28 kB / 0.6789 GB, free: 26.64 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008626/0.7463, allocations: 0.7621 MB / 0.6796 GB, free: 26.36 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.7463, allocations: 0 / 0.6796 GB, free: 26.36 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.7464, allocations: 14.22 kB / 0.6797 GB, free: 26.36 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.7464, allocations: 20.53 kB / 0.6797 GB, free: 26.36 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00069/0.7471, allocations: 0.552 MB / 0.6802 GB, free: 26.36 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.7485, allocations: 1.708 MB / 0.6819 GB, free: 25.55 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006312/0.7491, allocations: 482.2 kB / 0.6823 GB, free: 25.52 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002789/0.7494, allocations: 315.7 kB / 0.6826 GB, free: 25.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09353/0.843, allocations: 44.04 MB / 0.7256 GB, free: 12.24 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.958e-05/0.843, allocations: 34.72 kB / 0.7257 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=78): time 3.657e-06/0.843, allocations: 7.188 kB / 0.7257 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=82): time 0.004174/0.8472, allocations: 2.245 MB / 0.7279 GB, free: 10.52 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.8472, allocations: 55.41 kB / 0.7279 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002097/0.8474, allocations: 258.4 kB / 0.7282 GB, free: 10.23 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.8475, allocations: 37.64 kB / 0.7282 GB, free: 10.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 9.42e-05/0.8476, allocations: 188 kB / 0.7284 GB, free: 10.04 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.8477, allocations: 275.4 kB / 0.7287 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.8478, allocations: 100.1 kB / 0.7288 GB, free: 9.738 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.8479, allocations: 350.3 kB / 0.7291 GB, free: 9.402 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003065/0.8482, allocations: 283.4 kB / 0.7294 GB, free: 9.234 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003506/0.8486, allocations: 425.6 kB / 0.7298 GB, free: 8.895 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006929/0.8492, allocations: 0.7219 MB / 0.7305 GB, free: 8.391 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.8493, allocations: 4 kB / 0.7305 GB, free: 8.387 MB / 0.5105 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0008982/0.8501, allocations: 0.8173 MB / 0.7313 GB, free: 7.82 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.8502, allocations: 4 kB / 0.7313 GB, free: 7.816 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.8502, allocations: 11.92 kB / 0.7313 GB, free: 7.805 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001786/0.8504, allocations: 60.19 kB / 0.7313 GB, free: 7.754 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003738/0.8507, allocations: 130 kB / 0.7315 GB, free: 7.637 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04071/0.8914, allocations: 18.9 MB / 0.7499 GB, free: 5.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005785/0.892, allocations: 31.72 kB / 0.75 GB, free: 5.297 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.222e-05/0.8921, allocations: 19.94 kB / 0.75 GB, free: 5.281 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.0004226/0.8925, allocations: 201.7 kB / 0.7502 GB, free: 5.117 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.8926, allocations: 43.72 kB / 0.7502 GB, free: 5.074 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001855/0.8945, allocations: 1.617 MB / 0.7518 GB, free: 3.922 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-05/0.8945, allocations: 15.89 kB / 0.7518 GB, free: 3.91 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.8945, allocations: 0.8125 kB / 0.7518 GB, free: 3.91 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001309/0.8958, allocations: 1.206 MB / 0.753 GB, free: 2.898 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00228/0.8981, allocations: 1.584 MB / 0.7545 GB, free: 1.754 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.8e-06/0.8981, allocations: 0 / 0.7545 GB, free: 1.754 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002739/0.8983, allocations: 87.16 kB / 0.7546 GB, free: 1.676 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002656/0.8986, allocations: 111.9 kB / 0.7547 GB, free: 1.586 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.319e-05/0.8986, allocations: 5.312 kB / 0.7547 GB, free: 1.586 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/0.9003, allocations: 1.886 MB / 0.7566 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.9003, allocations: 3.938 kB / 0.7566 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0019/0.9022, allocations: 1.285 MB / 0.7578 GB, free: 14.76 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.9024, allocations: 39.69 kB / 0.7579 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.222e-05/0.9024, allocations: 11.83 kB / 0.7579 GB, free: 14.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002909/0.9027, allocations: 31.66 kB / 0.7579 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.9029, allocations: 43.67 kB / 0.7579 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-05/0.9029, allocations: 19.98 kB / 0.758 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002749/0.9032, allocations: 243.7 kB / 0.7582 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9032, allocations: 0 / 0.7582 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008947/0.9121, allocations: 3.571 MB / 0.7617 GB, free: 10.98 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.01973/0.9318, allocations: 6.664 MB / 0.7682 GB, free: 5.301 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001804/0.9336, allocations: 0.9771 MB / 0.7691 GB, free: 4.535 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.9336, allocations: 0 / 0.7691 GB, free: 4.535 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005375/0.9342, allocations: 479 kB / 0.7696 GB, free: 4.184 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.9353, allocations: 392.6 kB / 0.77 GB, free: 3.84 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01372/0.9491, allocations: 6.407 MB / 0.7762 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001827/0.9492, allocations: 250.2 kB / 0.7765 GB, free: 14.08 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0004099/0.9497, allocations: 141.9 kB / 0.7766 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.9498, allocations: 170.6 kB / 0.7768 GB, free: 13.89 MB / 0.5573 GB Notification: Performance of SimCode: time 1.192e-06/0.9498, allocations: 4 kB / 0.7768 GB, free: 13.89 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.361/1.311, allocations: 135.4 MB / 0.909 GB, free: 214.3 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/13.01, allocations: 12.09 kB / 0.909 GB, free: 214.3 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: 18.181620310992002] Failed to read output from testmodel.py, exit status != 0: 13.1695486176759 13.178100938 12.438238698 Calling exit ...