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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005793/0.005793, allocations: 100.8 kB / 15.73 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 193.1 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.449/1.449, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05202/0.05202, allocations: 9.096 MB / 279 MB, free: 12.07 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002093/0.002093, allocations: 71.89 kB / 387 MB, free: 8.445 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2539, allocations: 48.15 MB / 435.2 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.1607/0.4147, allocations: 142.2 MB / 0.5638 GB, free: 1.977 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3104/0.7251, allocations: 97.7 MB / 0.6593 GB, free: 308 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004231/0.7255, allocations: 7.125 kB / 0.6593 GB, free: 308 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002575/0.7282, allocations: 1.364 MB / 0.6606 GB, free: 300 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002824/0.731, allocations: 1.65 MB / 0.6622 GB, free: 252 kB / 478.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.07486/0.8059, allocations: 29.56 MB / 0.6911 GB, free: 6.957 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002058/0.8079, allocations: 1.407 MB / 0.6924 GB, free: 5.945 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002987/0.8083, allocations: 131.4 kB / 0.6926 GB, free: 5.844 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01869/0.827, allocations: 9.876 MB / 0.7022 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005206/0.8275, allocations: 374.6 kB / 0.7026 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.835e-05/0.8276, allocations: 40 kB / 0.7026 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06964/0.8972, allocations: 36.35 MB / 0.7381 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002517/0.8975, allocations: 122.9 kB / 0.7382 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005213/0.8981, allocations: 300.8 kB / 0.7385 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04684/0.9449, allocations: 14.6 MB / 0.7528 GB, free: 14.45 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.945, allocations: 0 / 0.7528 GB, free: 14.45 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.723e-06/0.945, allocations: 0 / 0.7528 GB, free: 14.45 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.305e-06/0.945, allocations: 0 / 0.7528 GB, free: 14.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.006842/0.9518, allocations: 2.768 MB / 0.7555 GB, free: 11.63 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.9519, allocations: 12.03 kB / 0.7555 GB, free: 11.62 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001093/0.952, allocations: 86.52 kB / 0.7556 GB, free: 11.53 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005426/0.9525, allocations: 83.58 kB / 0.7557 GB, free: 11.45 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005701/0.9531, allocations: 343.3 kB / 0.756 GB, free: 11.07 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.256e-05/0.9532, allocations: 24.66 kB / 0.756 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.071e-05/0.9533, allocations: 39.94 kB / 0.756 GB, free: 11.01 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.9545, allocations: 0.5776 MB / 0.7566 GB, free: 10.41 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.9546, allocations: 4 kB / 0.7566 GB, free: 10.41 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.304e-05/0.9546, allocations: 20 kB / 0.7566 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.9546, allocations: 14.8 kB / 0.7566 GB, free: 10.38 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/0.9559, allocations: 0.5142 MB / 0.7571 GB, free: 9.867 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002981/0.9589, allocations: 2.492 MB / 0.7596 GB, free: 7.16 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.9601, allocations: 487.7 kB / 0.76 GB, free: 6.676 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005755/0.9606, allocations: 331.7 kB / 0.7604 GB, free: 6.352 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3518/1.312, allocations: 113.4 MB / 0.8711 GB, free: 237.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/1.313, allocations: 36.94 kB / 0.8712 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.266e-06/1.313, allocations: 2.672 kB / 0.8712 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005892/1.318, allocations: 2.442 MB / 0.8736 GB, free: 236.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.918e-05/1.318, allocations: 58.66 kB / 0.8736 GB, free: 236.4 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/1.319, allocations: 256.9 kB / 0.8739 GB, free: 236.2 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/1.319, allocations: 37.67 kB / 0.8739 GB, free: 236.2 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.184e-05/1.319, allocations: 188.5 kB / 0.8741 GB, free: 236 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000104/1.319, allocations: 283.1 kB / 0.8743 GB, free: 235.8 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/1.319, allocations: 105.3 kB / 0.8744 GB, free: 235.7 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.125e-05/1.319, allocations: 353.3 kB / 0.8748 GB, free: 235.4 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004637/1.32, allocations: 275.1 kB / 0.875 GB, free: 235.2 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005067/1.32, allocations: 399.1 kB / 0.8754 GB, free: 235 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009552/1.321, allocations: 0.7132 MB / 0.8761 GB, free: 234.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/1.321, allocations: 3.812 kB / 0.8761 GB, free: 234.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001345/1.322, allocations: 0.8192 MB / 0.8769 GB, free: 234.1 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/1.322, allocations: 3.969 kB / 0.8769 GB, free: 234.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/1.322, allocations: 7.953 kB / 0.8769 GB, free: 234.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002734/1.323, allocations: 84.06 kB / 0.877 GB, free: 234 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004661/1.323, allocations: 111 kB / 0.8771 GB, free: 234 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04735/1.371, allocations: 14.7 MB / 0.8915 GB, free: 224.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003997/1.371, allocations: 23.98 kB / 0.8915 GB, free: 224.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.199e-05/1.371, allocations: 19.98 kB / 0.8915 GB, free: 224.1 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 (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.0002322/1.371, allocations: 196.1 kB / 0.8917 GB, free: 223.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.129e-05/1.371, allocations: 46.09 kB / 0.8917 GB, free: 223.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001778/1.373, allocations: 1.722 MB / 0.8934 GB, free: 222.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/1.373, allocations: 19.58 kB / 0.8934 GB, free: 222.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/1.373, allocations: 0 / 0.8934 GB, free: 222.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001282/1.374, allocations: 1.259 MB / 0.8947 GB, free: 220.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001955/1.376, allocations: 1.757 MB / 0.8964 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/1.376, allocations: 2.219 kB / 0.8964 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003287/1.377, allocations: 83.81 kB / 0.8965 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002696/1.377, allocations: 112.8 kB / 0.8966 GB, free: 218.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/1.377, allocations: 8 kB / 0.8966 GB, free: 218.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001025/1.378, allocations: 2.093 MB / 0.8986 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.378, allocations: 0 / 0.8986 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001803/1.38, allocations: 1.437 MB / 0.9 GB, free: 215 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.893e-05/1.38, allocations: 119.2 kB / 0.9001 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.469e-05/1.38, allocations: 8 kB / 0.9002 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003079/1.38, allocations: 27.97 kB / 0.9002 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.146e-05/1.381, allocations: 50.22 kB / 0.9002 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.586e-05/1.381, allocations: 15.98 kB / 0.9002 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001589/1.381, allocations: 219.1 kB / 0.9005 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/1.381, allocations: 0 / 0.9005 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.005646/1.386, allocations: 3.043 MB / 0.9034 GB, free: 212 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.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.0122/1.399, allocations: 5.685 MB / 0.909 GB, free: 206.8 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001692/1.4, allocations: 1.04 MB / 0.91 GB, free: 205.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/1.4, allocations: 4.062 kB / 0.91 GB, free: 205.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007293/1.401, allocations: 0.5579 MB / 0.9105 GB, free: 205.2 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001817/1.403, allocations: 401.1 kB / 0.9109 GB, free: 204.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009561/1.412, allocations: 6.319 MB / 0.9171 GB, free: 198.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/1.413, allocations: 0.853 MB / 0.9179 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003574/1.413, allocations: 138.4 kB / 0.9181 GB, free: 197.3 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/1.413, allocations: 167.4 kB / 0.9182 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of SimCode: time 8.72e-07/1.413, allocations: 3.938 kB / 0.9182 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1591/1.572, allocations: 118.7 MB / 1.034 GB, free: 78.29 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.41/18.98, allocations: 11.89 kB / 1.034 GB, free: 78.28 MB / 0.6075 GB (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)