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.001713/0.001713, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.002034/0.002034, allocations: 211.3 kB / 20.13 MB, free: 3.035 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.381/1.381, allocations: 207.6 MB / 230.5 MB, free: 4.027 MB / 174.1 MB " [Timeout remaining time 179] 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.04974/0.04974, allocations: 9.143 MB / 291.5 MB, free: 7.172 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",fmuType="cs",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.002125/0.002125, allocations: 70.08 kB / 406.6 MB, free: 484 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2439, allocations: 50.71 MB / 457.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.1561/0.4, allocations: 142.7 MB / 0.5859 GB, free: 8.707 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.2997/0.6997, allocations: 97.9 MB / 0.6815 GB, free: 15.99 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005413/0.7002, allocations: 11.41 kB / 0.6815 GB, free: 15.99 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002724/0.703, allocations: 1.557 MB / 0.6831 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003132/0.7061, allocations: 1.827 MB / 0.6848 GB, free: 15.92 MB / 494.1 MB [/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.07526/0.7813, allocations: 31.35 MB / 0.7155 GB, free: 2.195 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002047/0.7834, allocations: 1.419 MB / 0.7168 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002274/0.7836, allocations: 86.16 kB / 0.7169 GB, free: 0.8164 MB / 494.1 MB [/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.01618/0.7998, allocations: 10.06 MB / 0.7267 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005641/0.8004, allocations: 390.1 kB / 0.7271 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.11e-05/0.8004, allocations: 44 kB / 0.7272 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05217/0.8526, allocations: 29.85 MB / 0.7563 GB, free: 9.754 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002734/0.8529, allocations: 123.5 kB / 0.7564 GB, free: 9.633 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005935/0.8535, allocations: 304.3 kB / 0.7567 GB, free: 9.34 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03378/0.8873, allocations: 11.93 MB / 0.7684 GB, free: 14.24 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.8873, allocations: 0 / 0.7684 GB, free: 14.24 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.034e-06/0.8873, allocations: 0 / 0.7684 GB, free: 14.24 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.127e-05/0.8873, allocations: 0 / 0.7684 GB, free: 14.24 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.005473/0.8928, allocations: 2.235 MB / 0.7706 GB, free: 11.96 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.8928, allocations: 12.03 kB / 0.7706 GB, free: 11.95 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.075e-05/0.8928, allocations: 8.656 kB / 0.7706 GB, free: 11.94 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.623e-05/0.8929, allocations: 86.52 kB / 0.7707 GB, free: 11.85 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005198/0.8934, allocations: 84.5 kB / 0.7707 GB, free: 11.77 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005638/0.894, allocations: 349.4 kB / 0.7711 GB, free: 11.39 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.813e-05/0.894, allocations: 28.66 kB / 0.7711 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.765e-05/0.8941, allocations: 32 kB / 0.7711 GB, free: 11.33 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.8953, allocations: 0.5854 MB / 0.7717 GB, free: 10.72 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.8953, allocations: 0 / 0.7717 GB, free: 10.72 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.317e-05/0.8954, allocations: 16 kB / 0.7717 GB, free: 10.71 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.8954, allocations: 10.11 kB / 0.7717 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/0.8967, allocations: 0.5219 MB / 0.7722 GB, free: 10.18 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002646/0.8994, allocations: 2.488 MB / 0.7747 GB, free: 7.477 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.9004, allocations: 443.6 kB / 0.7751 GB, free: 7.035 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005173/0.9009, allocations: 286.3 kB / 0.7754 GB, free: 6.754 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3271/1.228, allocations: 113.3 MB / 0.886 GB, free: 238 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/1.228, allocations: 34.81 kB / 0.886 GB, free: 238 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.405e-06/1.228, allocations: 0 / 0.886 GB, free: 238 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005497/1.234, allocations: 2.642 MB / 0.8886 GB, free: 236.5 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/1.234, allocations: 63.72 kB / 0.8887 GB, free: 236.4 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/1.234, allocations: 260.6 kB / 0.8889 GB, free: 236.2 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/1.234, allocations: 32.55 kB / 0.8889 GB, free: 236.2 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.238e-05/1.234, allocations: 189.2 kB / 0.8891 GB, free: 236 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/1.234, allocations: 285.5 kB / 0.8894 GB, free: 235.8 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/1.234, allocations: 100.5 kB / 0.8895 GB, free: 235.8 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.788e-05/1.234, allocations: 354.5 kB / 0.8898 GB, free: 235.4 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004361/1.235, allocations: 276.2 kB / 0.8901 GB, free: 235.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000482/1.235, allocations: 401.1 kB / 0.8905 GB, free: 235 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009174/1.236, allocations: 0.7155 MB / 0.8912 GB, free: 234.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/1.236, allocations: 2.375 kB / 0.8912 GB, free: 234.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001252/1.237, allocations: 0.8113 MB / 0.892 GB, free: 234.1 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/1.237, allocations: 6.094 kB / 0.892 GB, free: 234.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/1.237, allocations: 3.938 kB / 0.892 GB, free: 234.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000737/1.238, allocations: 150.7 kB / 0.8921 GB, free: 234 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005411/1.239, allocations: 119 kB / 0.8922 GB, free: 233.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/1.24, allocations: 3.758 MB / 0.8959 GB, free: 230 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/1.24, allocations: 27.97 kB / 0.8959 GB, free: 229.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.8e-05/1.24, allocations: 18.06 kB / 0.8959 GB, free: 229.9 MB / 0.6075 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.0001795/1.241, allocations: 191.7 kB / 0.8961 GB, free: 229.7 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.685e-05/1.241, allocations: 43.72 kB / 0.8962 GB, free: 229.7 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00162/1.242, allocations: 1.665 MB / 0.8978 GB, free: 228 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/1.242, allocations: 11.94 kB / 0.8978 GB, free: 228 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/1.242, allocations: 0 / 0.8978 GB, free: 228 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001128/1.243, allocations: 1.243 MB / 0.899 GB, free: 226.6 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/1.245, allocations: 1.722 MB / 0.9007 GB, free: 224.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/1.245, allocations: 0 / 0.9007 GB, free: 224.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003085/1.245, allocations: 63.95 kB / 0.9008 GB, free: 224.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005835/1.246, allocations: 267.9 kB / 0.901 GB, free: 224.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/1.246, allocations: 15.92 kB / 0.901 GB, free: 224.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006952/1.247, allocations: 1.766 MB / 0.9028 GB, free: 222.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/1.247, allocations: 7.875 kB / 0.9028 GB, free: 222.7 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00169/1.248, allocations: 1.441 MB / 0.9042 GB, free: 221.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.422e-05/1.249, allocations: 115 kB / 0.9043 GB, free: 221.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.587e-05/1.249, allocations: 12.88 kB / 0.9043 GB, free: 221.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002861/1.249, allocations: 27.91 kB / 0.9043 GB, free: 221 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.715e-05/1.249, allocations: 50.53 kB / 0.9044 GB, free: 221 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.74e-05/1.249, allocations: 15.98 kB / 0.9044 GB, free: 221 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000169/1.249, allocations: 219.1 kB / 0.9046 GB, free: 220.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 7e-08/1.249, allocations: 3.938 kB / 0.9046 GB, free: 220.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.004661/1.254, allocations: 2.014 MB / 0.9066 GB, free: 219.1 MB / 0.6075 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.00989/1.264, allocations: 4.539 MB / 0.911 GB, free: 215.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001821/1.266, allocations: 0.8362 MB / 0.9118 GB, free: 214.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/1.266, allocations: 3.125 kB / 0.9118 GB, free: 214.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006309/1.266, allocations: 388.6 kB / 0.9122 GB, free: 213.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00179/1.268, allocations: 399 kB / 0.9126 GB, free: 213.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008322/1.276, allocations: 5.747 MB / 0.9182 GB, free: 207.6 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/1.277, allocations: 0.8446 MB / 0.919 GB, free: 206.7 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003454/1.277, allocations: 86.81 kB / 0.9191 GB, free: 206.6 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/1.277, allocations: 171.4 kB / 0.9193 GB, free: 206.5 MB / 0.6075 GB Notification: Performance of SimCode: time 8.42e-07/1.277, allocations: 0 / 0.9193 GB, free: 206.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/1.378, allocations: 78.04 MB / 0.9955 GB, free: 128.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.24/16.62, allocations: 8 kB / 0.9955 GB, free: 128.4 MB / 0.6075 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000404 --timeout=50 --tolerance=1e-06 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: 26.889201116980985] Failed to read output from testmodel.py, exit status != 0: 16.809933604032267 16.818918579 15.929373528 Calling exit ...