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.0007747/0.0007747, 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.0008249/0.0008249, 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.9188/0.9188, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.03048/0.03048, allocations: 7.514 MB / 266.7 MB, free: 6.199 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.443e-06/1.443e-06, allocations: 0 / 391.8 MB, free: 6.316 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.325e-05/1.469e-05, allocations: 6.219 kB / 391.8 MB, free: 6.309 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.2626/0.2626, allocations: 126.8 MB / 0.5064 GB, free: 16.11 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.06449/0.3271, allocations: 86.74 MB / 0.5911 GB, free: 8.258 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005956/0.3277, allocations: 7.938 kB / 0.5911 GB, free: 8.25 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002565/0.3303, allocations: 1.244 MB / 0.5924 GB, free: 7.004 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003178/0.3335, allocations: 1.606 MB / 0.5939 GB, free: 5.391 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.06546/0.3989, allocations: 31.85 MB / 0.625 GB, free: 5.469 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.00198/0.4009, allocations: 1.433 MB / 0.6264 GB, free: 4.031 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002634/0.4012, allocations: 97.64 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.24/0.6412, allocations: 10.43 MB / 0.6367 GB, free: 29.05 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004115/0.6416, allocations: 334.2 kB / 0.637 GB, free: 29.05 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 4.907e-05/0.6416, allocations: 41.88 kB / 0.6371 GB, free: 29.05 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03867/0.6803, allocations: 24.85 MB / 0.6613 GB, free: 29 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0003152/0.6806, allocations: 128.7 kB / 0.6615 GB, free: 29 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0005003/0.6811, allocations: 221.4 kB / 0.6617 GB, free: 29 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.03957/0.7207, allocations: 14.53 MB / 0.6759 GB, free: 28.46 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.7207, allocations: 4 kB / 0.6759 GB, free: 28.46 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.615e-06/0.7207, allocations: 0 / 0.6759 GB, free: 28.46 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.084e-05/0.7207, allocations: 0 / 0.6759 GB, free: 28.46 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.007384/0.7281, allocations: 2.583 MB / 0.6784 GB, free: 27.01 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.7281, allocations: 11.34 kB / 0.6784 GB, free: 27.01 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.163e-05/0.7282, allocations: 81.81 kB / 0.6785 GB, free: 26.97 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004114/0.7286, allocations: 96.44 kB / 0.6786 GB, free: 26.94 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005242/0.7291, allocations: 279.8 kB / 0.6788 GB, free: 26.78 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.872e-05/0.7292, allocations: 32.47 kB / 0.6789 GB, free: 26.78 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.327e-05/0.7292, allocations: 33.78 kB / 0.6789 GB, free: 26.78 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007941/0.73, allocations: 0.7619 MB / 0.6796 GB, free: 26.5 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.73, allocations: 3.125 kB / 0.6796 GB, free: 26.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.879e-05/0.7301, allocations: 17.75 kB / 0.6797 GB, free: 26.5 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.7301, allocations: 19.09 kB / 0.6797 GB, free: 26.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006727/0.7307, allocations: 0.5532 MB / 0.6802 GB, free: 26.49 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/0.7322, allocations: 1.706 MB / 0.6819 GB, free: 25.68 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006063/0.7328, allocations: 476.4 kB / 0.6823 GB, free: 25.65 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002666/0.7331, allocations: 322.2 kB / 0.6826 GB, free: 25.64 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09305/0.8261, allocations: 44.03 MB / 0.7256 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.8262, allocations: 37.22 kB / 0.7257 GB, free: 12.45 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=78): time 3.807e-06/0.8262, allocations: 7.984 kB / 0.7257 GB, free: 12.44 MB / 0.5105 GB Notification: Performance of matching and sorting (n=82): time 0.00381/0.83, allocations: 2.242 MB / 0.7279 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.83, allocations: 55.41 kB / 0.7279 GB, free: 10.69 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.8302, allocations: 259.7 kB / 0.7282 GB, free: 10.48 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.8303, allocations: 37.39 kB / 0.7282 GB, free: 10.44 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 9.142e-05/0.8303, allocations: 189.9 kB / 0.7284 GB, free: 10.28 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.8305, allocations: 276.3 kB / 0.7287 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.303e-05/0.8306, allocations: 96.8 kB / 0.7288 GB, free: 9.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.946e-05/0.8307, allocations: 353.8 kB / 0.7291 GB, free: 9.645 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000284/0.8309, allocations: 284.2 kB / 0.7294 GB, free: 9.473 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.8313, allocations: 413.9 kB / 0.7298 GB, free: 9.145 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006567/0.8319, allocations: 0.7342 MB / 0.7305 GB, free: 8.633 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.8319, allocations: 0 / 0.7305 GB, free: 8.633 MB / 0.5105 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0008946/0.8328, allocations: 0.826 MB / 0.7313 GB, free: 8.059 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.8329, allocations: 4 kB / 0.7313 GB, free: 8.055 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.8329, allocations: 4 kB / 0.7313 GB, free: 8.051 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001802/0.833, allocations: 63.73 kB / 0.7313 GB, free: 7.996 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003825/0.8334, allocations: 125.8 kB / 0.7315 GB, free: 7.883 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03646/0.8699, allocations: 18.91 MB / 0.7499 GB, free: 5.551 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000342/0.8702, allocations: 27.28 kB / 0.75 GB, free: 5.531 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.071e-05/0.8703, allocations: 19.06 kB / 0.75 GB, free: 5.516 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.0002501/0.8705, allocations: 208.3 kB / 0.7502 GB, free: 5.348 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.399e-05/0.8706, allocations: 43.72 kB / 0.7502 GB, free: 5.305 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001264/0.8718, allocations: 1.612 MB / 0.7518 GB, free: 4.152 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.8719, allocations: 18.38 kB / 0.7518 GB, free: 4.141 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.8719, allocations: 0.8125 kB / 0.7518 GB, free: 4.141 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009714/0.8728, allocations: 1.205 MB / 0.753 GB, free: 3.129 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.8744, allocations: 1.59 MB / 0.7545 GB, free: 1.984 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.8744, allocations: 0 / 0.7545 GB, free: 1.984 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.8746, allocations: 82.44 kB / 0.7546 GB, free: 1.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002116/0.8748, allocations: 100.7 kB / 0.7547 GB, free: 1.824 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.8748, allocations: 17.14 kB / 0.7547 GB, free: 1.816 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001205/0.876, allocations: 1.884 MB / 0.7566 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.876, allocations: 0 / 0.7566 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/0.8776, allocations: 1.284 MB / 0.7578 GB, free: 15 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.8778, allocations: 40.75 kB / 0.7579 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.707e-05/0.8778, allocations: 15.58 kB / 0.7579 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.8781, allocations: 27.66 kB / 0.7579 GB, free: 14.93 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.8782, allocations: 42.61 kB / 0.7579 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.8782, allocations: 15.92 kB / 0.758 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002206/0.8784, allocations: 245.1 kB / 0.7582 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8e-08/0.8784, allocations: 0 / 0.7582 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009326/0.8877, allocations: 3.571 MB / 0.7617 GB, free: 11.22 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.01769/0.9054, allocations: 6.674 MB / 0.7682 GB, free: 5.535 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001566/0.907, allocations: 0.9769 MB / 0.7691 GB, free: 4.77 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.907, allocations: 0 / 0.7691 GB, free: 4.77 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005385/0.9075, allocations: 487.5 kB / 0.7696 GB, free: 4.41 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.9088, allocations: 391.1 kB / 0.77 GB, free: 4.066 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.9198, allocations: 6.397 MB / 0.7762 GB, free: 14.59 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001856/0.92, allocations: 250.2 kB / 0.7765 GB, free: 14.32 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003817/0.9203, allocations: 138.1 kB / 0.7766 GB, free: 14.19 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.9205, allocations: 171.1 kB / 0.7768 GB, free: 14.14 MB / 0.5573 GB Notification: Performance of SimCode: time 1.103e-06/0.9205, allocations: 0 / 0.7768 GB, free: 14.14 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.318/1.238, allocations: 135.4 MB / 0.909 GB, free: 214 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/12.62, allocations: 10.34 kB / 0.909 GB, free: 214 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000404 --timeout=50 --tolerance=1e-06 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: 19.82874558120966] Failed to read output from testmodel.py, exit status != 0: 12.776267427951097 12.783213972 12.060949815 Calling exit ...