Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.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.001446/0.001446, allocations: 103.3 kB / 16.45 MB, free: 6.449 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.001462/0.001462, allocations: 212 kB / 19.43 MB, free: 3.637 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.476/1.476, allocations: 207.6 MB / 229.8 MB, free: 11.42 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.05249/0.05249, allocations: 9.144 MB / 290.8 MB, free: 13.91 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_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",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.002242/0.002242, allocations: 68.09 kB / 405.9 MB, free: 47.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08405/0.08629, allocations: 50.72 MB / 456.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.4282/0.5145, allocations: 142.7 MB / 0.5852 GB, free: 7.973 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1075/0.622, allocations: 97.91 MB / 0.6808 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007234/0.6227, allocations: 7.938 kB / 0.6809 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.004234/0.627, allocations: 1.551 MB / 0.6824 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004664/0.6316, allocations: 1.833 MB / 0.6842 GB, free: 5.879 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.0877/0.7193, allocations: 31.34 MB / 0.7148 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002366/0.7217, allocations: 1.418 MB / 0.7162 GB, free: 5.016 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002608/0.7219, allocations: 85.72 kB / 0.7162 GB, free: 4.926 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.01936/0.7413, allocations: 10.06 MB / 0.7261 GB, free: 10.84 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007178/0.742, allocations: 394.5 kB / 0.7264 GB, free: 10.46 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.032e-05/0.7421, allocations: 40 kB / 0.7265 GB, free: 10.42 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3884/1.13, allocations: 29.85 MB / 0.7556 GB, free: 47.29 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002989/1.131, allocations: 128 kB / 0.7557 GB, free: 47.29 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006364/1.131, allocations: 300.8 kB / 0.756 GB, free: 47.29 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.04455/1.176, allocations: 11.94 MB / 0.7677 GB, free: 46.97 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/1.176, allocations: 0 / 0.7677 GB, free: 46.97 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.827e-06/1.176, allocations: 0 / 0.7677 GB, free: 46.97 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.425e-05/1.176, allocations: 0 / 0.7677 GB, free: 46.97 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.007658/1.184, allocations: 2.227 MB / 0.7699 GB, free: 45.68 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/1.184, allocations: 10.84 kB / 0.7699 GB, free: 45.68 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.847e-05/1.184, allocations: 81.11 kB / 0.77 GB, free: 45.64 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005609/1.184, allocations: 80.62 kB / 0.77 GB, free: 45.62 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005524/1.185, allocations: 341.2 kB / 0.7704 GB, free: 45.39 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.591e-05/1.185, allocations: 30.91 kB / 0.7704 GB, free: 45.39 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.523e-05/1.185, allocations: 29.69 kB / 0.7704 GB, free: 45.39 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/1.186, allocations: 0.5847 MB / 0.771 GB, free: 45.29 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/1.186, allocations: 3.188 kB / 0.771 GB, free: 45.29 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.118e-05/1.186, allocations: 16.06 kB / 0.771 GB, free: 45.29 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.476e-05/1.186, allocations: 24 kB / 0.771 GB, free: 45.29 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/1.187, allocations: 0.514 MB / 0.7715 GB, free: 45.29 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/1.19, allocations: 2.485 MB / 0.774 GB, free: 43.61 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009667/1.191, allocations: 451.5 kB / 0.7744 GB, free: 43.58 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004614/1.191, allocations: 286.3 kB / 0.7747 GB, free: 43.57 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1845/1.375, allocations: 113.3 MB / 0.8853 GB, free: 30.68 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.222e-05/1.376, allocations: 40.92 kB / 0.8853 GB, free: 30.64 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=78): time 3.216e-06/1.376, allocations: 0 / 0.8853 GB, free: 30.64 MB / 0.6387 GB Notification: Performance of matching and sorting (n=83): time 0.006376/1.382, allocations: 2.643 MB / 0.8879 GB, free: 28.61 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/1.382, allocations: 55.41 kB / 0.8879 GB, free: 28.55 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/1.382, allocations: 261.8 kB / 0.8882 GB, free: 28.33 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 3.889e-05/1.382, allocations: 33.58 kB / 0.8882 GB, free: 28.3 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/1.382, allocations: 191.8 kB / 0.8884 GB, free: 28.13 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/1.382, allocations: 277.9 kB / 0.8887 GB, free: 27.9 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/1.383, allocations: 109.3 kB / 0.8888 GB, free: 27.82 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001577/1.383, allocations: 352.1 kB / 0.8891 GB, free: 27.49 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000459/1.383, allocations: 279.7 kB / 0.8894 GB, free: 27.33 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005448/1.384, allocations: 400.6 kB / 0.8898 GB, free: 27.02 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/1.385, allocations: 0.7079 MB / 0.8905 GB, free: 26.54 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/1.385, allocations: 0 / 0.8905 GB, free: 26.54 MB / 0.6387 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001447/1.386, allocations: 0.8245 MB / 0.8913 GB, free: 25.98 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/1.386, allocations: 4 kB / 0.8913 GB, free: 25.97 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/1.386, allocations: 4 kB / 0.8913 GB, free: 25.97 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008163/1.387, allocations: 147.7 kB / 0.8914 GB, free: 25.84 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000612/1.388, allocations: 128.8 kB / 0.8915 GB, free: 25.73 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002783/1.391, allocations: 3.741 MB / 0.8952 GB, free: 21.89 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004346/1.391, allocations: 30.81 kB / 0.8952 GB, free: 21.87 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.463e-05/1.391, allocations: 23.92 kB / 0.8952 GB, free: 21.85 MB / 0.6387 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 (47): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003603/1.391, allocations: 196.4 kB / 0.8954 GB, free: 21.7 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/1.391, allocations: 47.7 kB / 0.8955 GB, free: 21.65 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/1.393, allocations: 1.661 MB / 0.8971 GB, free: 20.49 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.258e-05/1.393, allocations: 17.05 kB / 0.8971 GB, free: 20.48 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/1.393, allocations: 0 / 0.8971 GB, free: 20.48 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00143/1.395, allocations: 1.24 MB / 0.8983 GB, free: 19.46 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002328/1.397, allocations: 1.709 MB / 0.9 GB, free: 18.25 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/1.397, allocations: 0 / 0.9 GB, free: 18.25 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003379/1.397, allocations: 75.27 kB / 0.9001 GB, free: 18.18 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006627/1.398, allocations: 264 kB / 0.9003 GB, free: 17.98 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/1.398, allocations: 11.86 kB / 0.9003 GB, free: 17.97 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/1.399, allocations: 1.773 MB / 0.9021 GB, free: 16.23 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.399, allocations: 0 / 0.9021 GB, free: 16.23 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/1.401, allocations: 1.446 MB / 0.9035 GB, free: 15.26 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001532/1.402, allocations: 119.9 kB / 0.9036 GB, free: 15.12 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.533e-05/1.402, allocations: 13.02 kB / 0.9036 GB, free: 15.12 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003021/1.402, allocations: 23.73 kB / 0.9036 GB, free: 15.1 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/1.402, allocations: 50.38 kB / 0.9037 GB, free: 15.06 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.814e-05/1.402, allocations: 15.98 kB / 0.9037 GB, free: 15.05 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0002232/1.402, allocations: 225 kB / 0.9039 GB, free: 14.87 MB / 0.6387 GB Notification: Performance of sort global known variables: time 8.1e-08/1.402, allocations: 0 / 0.9039 GB, free: 14.87 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.006662/1.409, allocations: 2.007 MB / 0.9059 GB, free: 12.94 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.d,volume.medium.T) * Number of discrete variables: 10 ($cse1.phase,$cse2.phase,$cse3.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 (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01566/1.425, allocations: 4.544 MB / 0.9103 GB, free: 9.199 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002281/1.427, allocations: 0.8371 MB / 0.9111 GB, free: 8.594 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/1.427, allocations: 0 / 0.9111 GB, free: 8.594 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0007272/1.428, allocations: 390.9 kB / 0.9115 GB, free: 8.344 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001904/1.429, allocations: 391.2 kB / 0.9119 GB, free: 8.023 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/1.442, allocations: 5.739 MB / 0.9175 GB, free: 3.234 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005296/1.442, allocations: 0.8499 MB / 0.9183 GB, free: 2.363 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0004555/1.443, allocations: 95.16 kB / 0.9184 GB, free: 2.273 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002445/1.443, allocations: 168 kB / 0.9185 GB, free: 2.223 MB / 0.6387 GB Notification: Performance of SimCode: time 1.553e-06/1.443, allocations: 0 / 0.9185 GB, free: 2.223 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4181/1.861, allocations: 78.02 MB / 0.9947 GB, free: 314.4 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.39/17.25, allocations: 4.922 kB / 0.9947 GB, free: 314.4 MB / 0.6856 GB " [Timeout remaining time 643] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_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_dT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 23.23921659262851] Failed to read output from testmodel.py, exit status != 0: 17.402898522093892 17.423538015 16.243304408 Calling exit ...