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.001315/0.001315, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002563/0.002563, allocations: 217.3 kB / 22.25 MB, free: 5.121 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.533/1.533, allocations: 207.6 MB / 233 MB, free: 9.977 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.05358/0.05358, allocations: 9.143 MB / 294.4 MB, free: 12.69 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_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: 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.002223/0.002223, allocations: 71.58 kB / 411.1 MB, free: 46.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06618/0.0684, allocations: 50.76 MB / 461.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.3518/0.4202, allocations: 142.9 MB / 0.5906 GB, free: 6.078 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1059/0.5261, allocations: 98 MB / 0.6863 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005225/0.5267, allocations: 11.94 kB / 0.6863 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003314/0.53, allocations: 1.555 MB / 0.6879 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003887/0.5339, allocations: 1.829 MB / 0.6896 GB, free: 3.91 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.07562/0.6095, allocations: 31.56 MB / 0.7205 GB, free: 4.246 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002073/0.6116, allocations: 1.429 MB / 0.7219 GB, free: 2.812 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002401/0.6118, allocations: 85.91 kB / 0.7219 GB, free: 2.723 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.01796/0.6297, allocations: 10.26 MB / 0.732 GB, free: 8.441 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006705/0.6304, allocations: 402.4 kB / 0.7323 GB, free: 8.047 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.64e-05/0.6305, allocations: 40 kB / 0.7324 GB, free: 8.008 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3376/0.9681, allocations: 37.77 MB / 0.7693 GB, free: 45.43 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002944/0.9684, allocations: 129.6 kB / 0.7694 GB, free: 45.43 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006307/0.969, allocations: 303.6 kB / 0.7697 GB, free: 45.43 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.04852/1.018, allocations: 14.65 MB / 0.784 GB, free: 45 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/1.018, allocations: 0 / 0.784 GB, free: 45 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.713e-06/1.018, allocations: 3.562 kB / 0.784 GB, free: 45 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.726e-05/1.018, allocations: 4 kB / 0.784 GB, free: 45 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.006675/1.024, allocations: 2.692 MB / 0.7866 GB, free: 43.54 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/1.024, allocations: 12.23 kB / 0.7866 GB, free: 43.54 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.341e-05/1.024, allocations: 87.23 kB / 0.7867 GB, free: 43.5 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005016/1.025, allocations: 84.56 kB / 0.7868 GB, free: 43.46 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000366/1.025, allocations: 272.5 kB / 0.7871 GB, free: 43.31 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.909e-05/1.025, allocations: 38.36 kB / 0.7871 GB, free: 43.31 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/1.025, allocations: 32.31 kB / 0.7871 GB, free: 43.31 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/1.026, allocations: 0.595 MB / 0.7877 GB, free: 43.21 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/1.026, allocations: 2.719 kB / 0.7877 GB, free: 43.21 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/1.026, allocations: 11.44 kB / 0.7877 GB, free: 43.21 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/1.026, allocations: 17.23 kB / 0.7877 GB, free: 43.21 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/1.027, allocations: 0.5299 MB / 0.7882 GB, free: 43.21 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/1.029, allocations: 2.463 MB / 0.7907 GB, free: 41.55 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009356/1.03, allocations: 473.7 kB / 0.7911 GB, free: 41.52 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004337/1.031, allocations: 309.5 kB / 0.7914 GB, free: 41.51 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1136/1.144, allocations: 30.62 MB / 0.8213 GB, free: 27.54 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/1.144, allocations: 38.78 kB / 0.8213 GB, free: 27.5 MB / 0.545 GB Notification: Performance of pre-optimization done (n=78): time 2.364e-06/1.144, allocations: 0 / 0.8213 GB, free: 27.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=83): time 0.005978/1.15, allocations: 2.34 MB / 0.8236 GB, free: 25.74 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.686e-05/1.15, allocations: 55.41 kB / 0.8237 GB, free: 25.68 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/1.151, allocations: 266.3 kB / 0.8239 GB, free: 25.45 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/1.151, allocations: 29.45 kB / 0.824 GB, free: 25.42 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.095e-05/1.151, allocations: 191.7 kB / 0.8241 GB, free: 25.26 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000135/1.151, allocations: 283.9 kB / 0.8244 GB, free: 25.02 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/1.151, allocations: 102.4 kB / 0.8245 GB, free: 24.95 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.257e-05/1.151, allocations: 346.3 kB / 0.8248 GB, free: 24.62 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004354/1.151, allocations: 298.3 kB / 0.8251 GB, free: 24.44 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004888/1.152, allocations: 412.7 kB / 0.8255 GB, free: 24.11 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009382/1.153, allocations: 0.7288 MB / 0.8262 GB, free: 23.62 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/1.153, allocations: 0 / 0.8262 GB, free: 23.62 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001419/1.154, allocations: 0.8387 MB / 0.827 GB, free: 23.04 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/1.154, allocations: 10.09 kB / 0.8271 GB, free: 23.03 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/1.154, allocations: 4 kB / 0.8271 GB, free: 23.03 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002886/1.155, allocations: 80.41 kB / 0.8271 GB, free: 22.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005022/1.155, allocations: 112.3 kB / 0.8272 GB, free: 22.86 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04908/1.204, allocations: 14.51 MB / 0.8414 GB, free: 8.551 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004274/1.205, allocations: 32 kB / 0.8414 GB, free: 8.527 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.841e-05/1.205, allocations: 19.19 kB / 0.8415 GB, free: 8.512 MB / 0.545 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.000246/1.205, allocations: 195.5 kB / 0.8416 GB, free: 8.359 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/1.205, allocations: 47.66 kB / 0.8417 GB, free: 8.312 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001863/1.207, allocations: 1.745 MB / 0.8434 GB, free: 7.078 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/1.207, allocations: 22.06 kB / 0.8434 GB, free: 7.062 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/1.207, allocations: 2.406 kB / 0.8434 GB, free: 7.062 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001283/1.208, allocations: 1.293 MB / 0.8447 GB, free: 5.996 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/1.21, allocations: 1.767 MB / 0.8464 GB, free: 4.727 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/1.21, allocations: 0 / 0.8464 GB, free: 4.727 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003284/1.211, allocations: 87.31 kB / 0.8465 GB, free: 4.645 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002812/1.211, allocations: 118.6 kB / 0.8466 GB, free: 4.551 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/1.211, allocations: 13.55 kB / 0.8466 GB, free: 4.543 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00109/1.212, allocations: 1.986 MB / 0.8486 GB, free: 2.574 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/1.212, allocations: 4.031 kB / 0.8486 GB, free: 2.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001932/1.214, allocations: 1.465 MB / 0.85 GB, free: 1.555 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/1.214, allocations: 49.42 kB / 0.85 GB, free: 1.508 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.886e-05/1.214, allocations: 11.19 kB / 0.8501 GB, free: 1.504 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003301/1.215, allocations: 24.59 kB / 0.8501 GB, free: 1.484 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.811e-05/1.215, allocations: 44.48 kB / 0.8501 GB, free: 1.449 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-05/1.215, allocations: 17.48 kB / 0.8501 GB, free: 1.434 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001839/1.215, allocations: 220.3 kB / 0.8503 GB, free: 1.258 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/1.215, allocations: 5.484 kB / 0.8503 GB, free: 1.254 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007942/1.223, allocations: 3.041 MB / 0.8533 GB, free: 14.32 MB / 0.5606 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.01843/1.241, allocations: 5.717 MB / 0.8589 GB, free: 9.531 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00229/1.243, allocations: 1.013 MB / 0.8599 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/1.244, allocations: 0 / 0.8599 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009757/1.244, allocations: 0.5385 MB / 0.8604 GB, free: 8.355 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002045/1.247, allocations: 406 kB / 0.8608 GB, free: 8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/1.262, allocations: 6.389 MB / 0.867 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006323/1.263, allocations: 0.8587 MB / 0.8679 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0005252/1.264, allocations: 127.2 kB / 0.868 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002612/1.264, allocations: 169.2 kB / 0.8682 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of SimCode: time 9.01e-07/1.264, allocations: 0 / 0.8682 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4149/1.679, allocations: 119.5 MB / 0.9849 GB, free: 327.2 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.78/20.46, allocations: 4.625 kB / 0.9849 GB, free: 327.2 MB / 0.67 GB " [Timeout remaining time 639] (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 sys.exit(0), Time elapsed: 25.60113948900107] Failed to read output from testmodel.py, exit status != 0: 20.66211397400184 20.685019628 19.663338251 Calling exit ...