Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.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.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",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.007633/0.007638, allocations: 101 kB / 15.73 MB, free: 6.004 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.001125/0.001125, allocations: 193.4 kB / 16.67 MB, free: 5.922 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.454/1.454, allocations: 205.1 MB / 222.6 MB, free: 4.469 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04636/0.04636, allocations: 9.099 MB / 279 MB, free: 12.05 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.001417/0.001417, allocations: 67.91 kB / 387 MB, free: 8.426 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3129, allocations: 48.16 MB / 435.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.1471/0.4601, allocations: 128.1 MB / 0.5501 GB, free: 204 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3836/0.8438, allocations: 110.1 MB / 0.6576 GB, free: 268 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005477/0.8444, allocations: 8.188 kB / 0.6576 GB, free: 268 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002899/0.8473, allocations: 1.461 MB / 0.659 GB, free: 256 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00356/0.8509, allocations: 1.732 MB / 0.6607 GB, free: 208 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.1006/0.9515, allocations: 30.48 MB / 0.6905 GB, free: 7.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002976/0.9545, allocations: 1.337 MB / 0.6918 GB, free: 6.344 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005456/0.9551, allocations: 120.4 kB / 0.6919 GB, free: 6.254 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0242/0.9793, allocations: 8.809 MB / 0.7005 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006883/0.9801, allocations: 367.7 kB / 0.7009 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.547e-05/0.9802, allocations: 40 kB / 0.7009 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06646/1.047, allocations: 33.67 MB / 0.7338 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003023/1.047, allocations: 125.9 kB / 0.7339 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.000598/1.048, allocations: 298.9 kB / 0.7342 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05404/1.102, allocations: 14.16 MB / 0.748 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.096e-05/1.102, allocations: 4 kB / 0.748 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.963e-06/1.102, allocations: 0 / 0.748 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.368e-05/1.102, allocations: 0 / 0.748 GB, free: 2.402 MB / 0.5294 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.008103/1.11, allocations: 2.676 MB / 0.7507 GB, free: 15.68 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/1.11, allocations: 8.031 kB / 0.7507 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/1.11, allocations: 90.52 kB / 0.7507 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006425/1.111, allocations: 91.62 kB / 0.7508 GB, free: 15.48 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005628/1.111, allocations: 342.5 kB / 0.7512 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.966e-05/1.111, allocations: 32.59 kB / 0.7512 GB, free: 15.08 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.765e-05/1.111, allocations: 40 kB / 0.7512 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/1.113, allocations: 0.5932 MB / 0.7518 GB, free: 14.43 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/1.113, allocations: 15.94 kB / 0.7518 GB, free: 14.41 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.96e-05/1.113, allocations: 15.56 kB / 0.7518 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/1.113, allocations: 18.41 kB / 0.7519 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/1.114, allocations: 0.5415 MB / 0.7524 GB, free: 13.85 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002733/1.117, allocations: 2.505 MB / 0.7548 GB, free: 11.13 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/1.118, allocations: 0.4918 MB / 0.7553 GB, free: 10.63 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005307/1.119, allocations: 342.3 kB / 0.7556 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4642/1.583, allocations: 139 MB / 0.8914 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/1.583, allocations: 36.69 kB / 0.8914 GB, free: 220.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.905e-06/1.583, allocations: 2.625 kB / 0.8914 GB, free: 220.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.006364/1.589, allocations: 2.331 MB / 0.8937 GB, free: 219.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/1.589, allocations: 56.88 kB / 0.8937 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002925/1.59, allocations: 268.6 kB / 0.894 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.03e-05/1.59, allocations: 29.7 kB / 0.894 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000111/1.59, allocations: 184.7 kB / 0.8942 GB, free: 218.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001701/1.59, allocations: 284.6 kB / 0.8945 GB, free: 218.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/1.59, allocations: 105.1 kB / 0.8946 GB, free: 218.5 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.348e-05/1.59, allocations: 353.8 kB / 0.8949 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004593/1.591, allocations: 268.8 kB / 0.8952 GB, free: 218 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005153/1.591, allocations: 407.3 kB / 0.8956 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009548/1.592, allocations: 0.713 MB / 0.8962 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/1.592, allocations: 3.938 kB / 0.8963 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001284/1.593, allocations: 0.7918 MB / 0.897 GB, free: 216 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/1.593, allocations: 8.844 kB / 0.897 GB, free: 216 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/1.593, allocations: 7.281 kB / 0.897 GB, free: 216 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002539/1.594, allocations: 64.61 kB / 0.8971 GB, free: 215.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006724/1.594, allocations: 127.8 kB / 0.8972 GB, free: 215.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06756/1.662, allocations: 19.88 MB / 0.9166 GB, free: 195.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005563/1.663, allocations: 34.22 kB / 0.9167 GB, free: 195.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.68e-05/1.663, allocations: 24.06 kB / 0.9167 GB, free: 195.3 MB / 0.6075 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.000375/1.663, allocations: 190.6 kB / 0.9169 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.046e-05/1.663, allocations: 43.72 kB / 0.9169 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001719/1.665, allocations: 1.58 MB / 0.9185 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/1.665, allocations: 12 kB / 0.9185 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/1.665, allocations: 0 / 0.9185 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001177/1.666, allocations: 1.18 MB / 0.9196 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/1.668, allocations: 1.645 MB / 0.9212 GB, free: 190.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/1.668, allocations: 0 / 0.9212 GB, free: 190.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/1.668, allocations: 79.88 kB / 0.9213 GB, free: 190.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002708/1.669, allocations: 105.6 kB / 0.9214 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/1.669, allocations: 12.03 kB / 0.9214 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009556/1.67, allocations: 1.995 MB / 0.9234 GB, free: 188.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/1.67, allocations: 0 / 0.9234 GB, free: 188.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/1.671, allocations: 1.25 MB / 0.9246 GB, free: 186.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.356e-05/1.671, allocations: 118.8 kB / 0.9247 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.134e-05/1.671, allocations: 13.97 kB / 0.9247 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003003/1.672, allocations: 23.97 kB / 0.9247 GB, free: 186.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.753e-05/1.672, allocations: 47.88 kB / 0.9248 GB, free: 186.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/1.672, allocations: 12 kB / 0.9248 GB, free: 186.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002499/1.672, allocations: 247.1 kB / 0.925 GB, free: 186.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.7e-07/1.672, allocations: 0 / 0.925 GB, free: 186.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01247/1.685, allocations: 3.577 MB / 0.9285 GB, free: 183.2 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.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.02184/1.707, allocations: 6.262 MB / 0.9346 GB, free: 177.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002133/1.709, allocations: 1.015 MB / 0.9356 GB, free: 176.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/1.709, allocations: 0 / 0.9356 GB, free: 176.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007628/1.71, allocations: 0.4995 MB / 0.9361 GB, free: 175.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001896/1.711, allocations: 386.8 kB / 0.9365 GB, free: 175.4 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/1.724, allocations: 6.355 MB / 0.9427 GB, free: 168.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/1.724, allocations: 0.8486 MB / 0.9435 GB, free: 168 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000427/1.724, allocations: 148.7 kB / 0.9437 GB, free: 167.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/1.725, allocations: 167.4 kB / 0.9438 GB, free: 167.7 MB / 0.6075 GB Notification: Performance of SimCode: time 9.51e-07/1.725, allocations: 3.938 kB / 0.9438 GB, free: 167.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1839/1.908, allocations: 132.5 MB / 1.073 GB, free: 35 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.56/19.47, allocations: 16.38 kB / 1.073 GB, free: 34.98 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel_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_HeliumTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe 2>&1)