Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.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.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",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.001524/0.001524, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002018/0.002018, allocations: 197 kB / 16.53 MB, free: 6.664 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.738/1.738, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04539/0.04539, allocations: 9.096 MB / 278.9 MB, free: 12.17 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.002332/0.002332, allocations: 67.91 kB / 338.1 MB, free: 25.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1183, allocations: 48.15 MB / 386.3 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.3781/0.4966, allocations: 128.8 MB / 0.503 GB, free: 4.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4086/0.9052, allocations: 111.1 MB / 0.6115 GB, free: 328 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005426/0.9058, allocations: 6.062 kB / 0.6115 GB, free: 328 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003008/0.9088, allocations: 1.365 MB / 0.6128 GB, free: 320 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003313/0.9122, allocations: 1.653 MB / 0.6144 GB, free: 300 kB / 446.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.08495/0.9971, allocations: 29.52 MB / 0.6433 GB, free: 13.65 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002003/0.9991, allocations: 1.399 MB / 0.6446 GB, free: 13.32 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003655/0.9995, allocations: 128 kB / 0.6448 GB, free: 13.29 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01758/1.017, allocations: 9.844 MB / 0.6544 GB, free: 9.34 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001118/1.018, allocations: 384.4 kB / 0.6547 GB, free: 9.086 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002188/1.019, allocations: 44 kB / 0.6548 GB, free: 9.043 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07798/1.096, allocations: 33.89 MB / 0.6879 GB, free: 15.76 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000291/1.097, allocations: 122.4 kB / 0.688 GB, free: 15.64 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006314/1.097, allocations: 306.4 kB / 0.6883 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05202/1.149, allocations: 14.16 MB / 0.7021 GB, free: 2.277 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/1.15, allocations: 0 / 0.7021 GB, free: 2.277 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.938e-06/1.15, allocations: 0 / 0.7021 GB, free: 2.277 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/1.15, allocations: 7.875 kB / 0.7021 GB, free: 2.27 MB / 494.1 MB 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.006707/1.156, allocations: 2.567 MB / 0.7046 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/1.156, allocations: 12.03 kB / 0.7046 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.647e-05/1.156, allocations: 82.52 kB / 0.7047 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006453/1.157, allocations: 87.39 kB / 0.7048 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004825/1.158, allocations: 347 kB / 0.7051 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/1.158, allocations: 32.64 kB / 0.7052 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.904e-05/1.158, allocations: 32 kB / 0.7052 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/1.159, allocations: 0.5963 MB / 0.7058 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/1.159, allocations: 7.906 kB / 0.7058 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.876e-05/1.159, allocations: 12 kB / 0.7058 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.448e-05/1.159, allocations: 18.11 kB / 0.7058 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/1.161, allocations: 0.5481 MB / 0.7063 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00275/1.163, allocations: 2.467 MB / 0.7088 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/1.164, allocations: 496.5 kB / 0.7092 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005506/1.165, allocations: 345.9 kB / 0.7096 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4436/1.609, allocations: 139 MB / 0.8453 GB, free: 275.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/1.609, allocations: 34.5 kB / 0.8453 GB, free: 275.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=77): time 3.076e-06/1.609, allocations: 0 / 0.8453 GB, free: 275.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.005173/1.614, allocations: 2.343 MB / 0.8476 GB, free: 274.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.244e-05/1.614, allocations: 59.16 kB / 0.8477 GB, free: 274.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/1.614, allocations: 265.1 kB / 0.8479 GB, free: 274 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/1.614, allocations: 29.7 kB / 0.8479 GB, free: 274 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.962e-05/1.614, allocations: 187 kB / 0.8481 GB, free: 273.8 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/1.614, allocations: 270 kB / 0.8484 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/1.614, allocations: 96.39 kB / 0.8485 GB, free: 273.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.135e-05/1.615, allocations: 358.2 kB / 0.8488 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004234/1.615, allocations: 277.9 kB / 0.8491 GB, free: 273 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004631/1.615, allocations: 380.7 kB / 0.8494 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008818/1.616, allocations: 0.7001 MB / 0.8501 GB, free: 272.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/1.616, allocations: 3.969 kB / 0.8501 GB, free: 272.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001208/1.618, allocations: 0.7944 MB / 0.8509 GB, free: 271.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/1.618, allocations: 12.25 kB / 0.8509 GB, free: 271.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/1.618, allocations: 3.875 kB / 0.8509 GB, free: 271.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002211/1.618, allocations: 60.64 kB / 0.851 GB, free: 271.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006457/1.618, allocations: 147.9 kB / 0.8511 GB, free: 271.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09148/1.71, allocations: 25.43 MB / 0.8759 GB, free: 248.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000457/1.71, allocations: 32.03 kB / 0.876 GB, free: 248.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/1.71, allocations: 16 kB / 0.876 GB, free: 248.2 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 40 * 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, 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.0002662/1.711, allocations: 192 kB / 0.8762 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.683e-05/1.711, allocations: 43.44 kB / 0.8762 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001664/1.713, allocations: 1.718 MB / 0.8779 GB, free: 246.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-05/1.713, allocations: 14.17 kB / 0.8779 GB, free: 246.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/1.713, allocations: 6.75 kB / 0.8779 GB, free: 246.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001222/1.714, allocations: 1.288 MB / 0.8792 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001836/1.716, allocations: 1.755 MB / 0.8809 GB, free: 243 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/1.716, allocations: 0 / 0.8809 GB, free: 243 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002994/1.716, allocations: 83.88 kB / 0.881 GB, free: 242.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002691/1.716, allocations: 154.4 kB / 0.8811 GB, free: 242.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/1.716, allocations: 11.98 kB / 0.8811 GB, free: 242.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/1.717, allocations: 2.575 MB / 0.8836 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/1.717, allocations: 0 / 0.8836 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/1.719, allocations: 1.384 MB / 0.885 GB, free: 238.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.497e-05/1.719, allocations: 116.5 kB / 0.8851 GB, free: 238.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.618e-05/1.719, allocations: 15.94 kB / 0.8851 GB, free: 238.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002926/1.719, allocations: 23.97 kB / 0.8851 GB, free: 238.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.982e-05/1.72, allocations: 48 kB / 0.8852 GB, free: 238.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/1.72, allocations: 19.48 kB / 0.8852 GB, free: 238.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001851/1.72, allocations: 219.1 kB / 0.8854 GB, free: 238.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.4e-07/1.72, allocations: 0 / 0.8854 GB, free: 238.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008709/1.729, allocations: 3.19 MB / 0.8885 GB, free: 235.3 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$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 (37): * Single equations (assignments): 31 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0197/1.748, allocations: 5.817 MB / 0.8942 GB, free: 230 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00249/1.751, allocations: 1.039 MB / 0.8952 GB, free: 228.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/1.751, allocations: 0 / 0.8952 GB, free: 228.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007052/1.752, allocations: 0.5115 MB / 0.8957 GB, free: 228.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/1.754, allocations: 397.2 kB / 0.8961 GB, free: 228 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/1.765, allocations: 6.111 MB / 0.9021 GB, free: 221.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/1.765, allocations: 0.8526 MB / 0.9029 GB, free: 220.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004592/1.766, allocations: 135.2 kB / 0.903 GB, free: 220.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001823/1.766, allocations: 167.4 kB / 0.9032 GB, free: 220.5 MB / 0.5919 GB Notification: Performance of SimCode: time 1.232e-06/1.766, allocations: 0 / 0.9032 GB, free: 220.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.188/1.954, allocations: 125.3 MB / 1.026 GB, free: 95.02 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.67/18.62, allocations: 11.67 kB / 1.026 GB, free: 95 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe 2>&1)