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.001345/0.001345, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001532/0.001532, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.395/1.395, allocations: 207.6 MB / 233 MB, free: 10 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.16 MB / 294.4 MB, free: 12.71 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.002217/0.002217, allocations: 76.39 kB / 411.1 MB, free: 46.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07594/0.07816, allocations: 50.75 MB / 461.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.3321/0.4102, allocations: 142.9 MB / 0.5906 GB, free: 6.133 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.104/0.5142, allocations: 97.99 MB / 0.6863 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005745/0.5148, allocations: 11.94 kB / 0.6863 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003392/0.5182, allocations: 1.551 MB / 0.6878 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003996/0.5222, allocations: 1.833 MB / 0.6896 GB, free: 3.953 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.07773/0.5999, allocations: 31.55 MB / 0.7205 GB, free: 4.293 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002025/0.602, allocations: 1.421 MB / 0.7218 GB, free: 2.867 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002332/0.6022, allocations: 97.83 kB / 0.7219 GB, free: 2.766 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.01798/0.6202, allocations: 10.26 MB / 0.732 GB, free: 8.488 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006751/0.6208, allocations: 394.4 kB / 0.7323 GB, free: 8.102 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.287e-05/0.6209, allocations: 43.94 kB / 0.7324 GB, free: 8.059 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3112/0.9321, allocations: 36.83 MB / 0.7683 GB, free: 45.69 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.9323, allocations: 120.6 kB / 0.7685 GB, free: 45.69 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004296/0.9327, allocations: 303.5 kB / 0.7687 GB, free: 45.69 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03619/0.9689, allocations: 14.24 MB / 0.7826 GB, free: 45.27 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.9689, allocations: 5 kB / 0.7826 GB, free: 45.27 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.664e-06/0.9689, allocations: 0 / 0.7826 GB, free: 45.27 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.074e-05/0.9689, allocations: 0 / 0.7826 GB, free: 45.27 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.006113/0.9751, allocations: 2.605 MB / 0.7852 GB, free: 43.85 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.9751, allocations: 14.39 kB / 0.7852 GB, free: 43.84 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.91e-05/0.9752, allocations: 84.75 kB / 0.7853 GB, free: 43.8 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006344/0.9758, allocations: 91.89 kB / 0.7854 GB, free: 43.78 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004188/0.9762, allocations: 279.3 kB / 0.7856 GB, free: 43.62 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.594e-05/0.9763, allocations: 31.03 kB / 0.7857 GB, free: 43.62 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.822e-05/0.9763, allocations: 32 kB / 0.7857 GB, free: 43.62 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.9775, allocations: 0.612 MB / 0.7863 GB, free: 43.52 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.9776, allocations: 0 / 0.7863 GB, free: 43.52 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.791e-05/0.9776, allocations: 18.59 kB / 0.7863 GB, free: 43.52 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.9776, allocations: 11.52 kB / 0.7863 GB, free: 43.52 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.9788, allocations: 0.5635 MB / 0.7869 GB, free: 43.52 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002257/0.9811, allocations: 2.484 MB / 0.7893 GB, free: 41.86 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.9821, allocations: 489.1 kB / 0.7898 GB, free: 41.83 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004484/0.9826, allocations: 318.2 kB / 0.7901 GB, free: 41.82 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.198/1.181, allocations: 43.9 MB / 0.833 GB, free: 15.06 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.962e-05/1.181, allocations: 34.78 kB / 0.833 GB, free: 15.02 MB / 0.545 GB Notification: Performance of pre-optimization done (n=78): time 3.005e-06/1.181, allocations: 4 kB / 0.833 GB, free: 15.02 MB / 0.545 GB Notification: Performance of matching and sorting (n=82): time 0.005343/1.186, allocations: 2.241 MB / 0.8352 GB, free: 13.35 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.131e-05/1.186, allocations: 55.41 kB / 0.8352 GB, free: 13.28 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002082/1.186, allocations: 261 kB / 0.8355 GB, free: 13.06 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.204e-05/1.186, allocations: 33.58 kB / 0.8355 GB, free: 13.02 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.023e-05/1.186, allocations: 188.2 kB / 0.8357 GB, free: 12.86 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/1.186, allocations: 278.3 kB / 0.836 GB, free: 12.63 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/1.186, allocations: 100.3 kB / 0.8361 GB, free: 12.56 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.95e-05/1.187, allocations: 351.7 kB / 0.8364 GB, free: 12.23 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000422/1.187, allocations: 285.2 kB / 0.8367 GB, free: 12.05 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004589/1.187, allocations: 423.5 kB / 0.8371 GB, free: 11.72 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000928/1.188, allocations: 0.7249 MB / 0.8378 GB, free: 11.21 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/1.188, allocations: 0.6562 kB / 0.8378 GB, free: 11.21 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001272/1.19, allocations: 0.8155 MB / 0.8386 GB, free: 10.65 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/1.19, allocations: 4 kB / 0.8386 GB, free: 10.65 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/1.19, allocations: 4.406 kB / 0.8386 GB, free: 10.64 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002319/1.19, allocations: 66.05 kB / 0.8386 GB, free: 10.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006091/1.19, allocations: 127 kB / 0.8388 GB, free: 10.47 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07068/1.261, allocations: 18.91 MB / 0.8572 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004585/1.262, allocations: 39.84 kB / 0.8573 GB, free: 8.055 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/1.262, allocations: 15.98 kB / 0.8573 GB, free: 8.039 MB / 0.5606 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.000329/1.262, allocations: 195 kB / 0.8575 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/1.262, allocations: 43.72 kB / 0.8575 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002188/1.264, allocations: 1.603 MB / 0.8591 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.27e-05/1.264, allocations: 20.55 kB / 0.8591 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/1.264, allocations: 0 / 0.8591 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001589/1.266, allocations: 1.21 MB / 0.8603 GB, free: 5.668 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002514/1.268, allocations: 1.647 MB / 0.8619 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/1.268, allocations: 0 / 0.8619 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003713/1.269, allocations: 78.59 kB / 0.862 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003034/1.269, allocations: 108.8 kB / 0.8621 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.376e-05/1.269, allocations: 11.86 kB / 0.8621 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/1.271, allocations: 1.89 MB / 0.8639 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/1.271, allocations: 1.688 kB / 0.8639 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/1.273, allocations: 1.285 MB / 0.8652 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/1.273, allocations: 55.48 kB / 0.8652 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.175e-05/1.273, allocations: 7.938 kB / 0.8652 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003158/1.273, allocations: 19.92 kB / 0.8652 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/1.273, allocations: 51.47 kB / 0.8653 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-05/1.273, allocations: 11.81 kB / 0.8653 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002722/1.274, allocations: 244.5 kB / 0.8655 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/1.274, allocations: 0 / 0.8655 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.009923/1.284, allocations: 3.574 MB / 0.869 GB, free: 13.71 MB / 0.5762 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.02062/1.304, allocations: 6.28 MB / 0.8752 GB, free: 8.402 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002231/1.306, allocations: 0.9709 MB / 0.8761 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/1.306, allocations: 4 kB / 0.8761 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000941/1.307, allocations: 488.7 kB / 0.8766 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002035/1.309, allocations: 396.1 kB / 0.877 GB, free: 6.945 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01407/1.324, allocations: 6.443 MB / 0.8833 GB, free: 1.445 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005393/1.324, allocations: 0.8547 MB / 0.8841 GB, free: 0.5664 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004954/1.325, allocations: 144.2 kB / 0.8842 GB, free: 440 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002307/1.325, allocations: 163.4 kB / 0.8844 GB, free: 392 kB / 0.5762 GB Notification: Performance of SimCode: time 9.92e-07/1.325, allocations: 0 / 0.8844 GB, free: 392 kB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4815/1.806, allocations: 133.5 MB / 1.015 GB, free: 242.7 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.17/20.98, allocations: 10.3 kB / 1.015 GB, free: 242.7 MB / 0.67 GB " [Timeout remaining time 639] (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.720985851003206] Failed to read output from testmodel.py, exit status != 0: 21.18642240799818 21.197679648 20.226244044 Calling exit ...