Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.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.EthanolTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2",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.007043/0.007043, allocations: 96.64 kB / 15.73 MB, free: 6.055 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.001885/0.001885, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.599/1.599, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05348/0.05348, allocations: 9.093 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.002237/0.002237, allocations: 74.23 kB / 387 MB, free: 8.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2737, allocations: 48.16 MB / 435.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.4842/0.7579, allocations: 196 MB / 0.6164 GB, free: 1.016 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1247/0.8827, allocations: 141.7 MB / 0.7548 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009499/0.8837, allocations: 15.88 kB / 0.7548 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003368/0.8871, allocations: 1.373 MB / 0.7562 GB, free: 11.69 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004973/0.8921, allocations: 1.63 MB / 0.7578 GB, free: 10.05 MB / 0.5294 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.1138/1.006, allocations: 38.18 MB / 0.795 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003381/1.009, allocations: 1.92 MB / 0.7969 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004177/1.01, allocations: 202.5 kB / 0.7971 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001888/1.012, allocations: 0.8249 MB / 0.7979 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007677/1.012, allocations: 0.5253 MB / 0.7984 GB, free: 244 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.765e-05/1.013, allocations: 60 kB / 0.7985 GB, free: 184 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4145/1.427, allocations: 44.15 MB / 0.8416 GB, free: 44.94 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003258/1.427, allocations: 169.4 kB / 0.8418 GB, free: 44.94 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007199/1.428, allocations: 428 kB / 0.8422 GB, free: 44.94 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.06022/1.488, allocations: 18.86 MB / 0.8606 GB, free: 44.37 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/1.488, allocations: 0 / 0.8606 GB, free: 44.37 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.844e-06/1.488, allocations: 2 kB / 0.8606 GB, free: 44.37 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.36e-05/1.488, allocations: 0 / 0.8606 GB, free: 44.37 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.009788/1.498, allocations: 3.494 MB / 0.864 GB, free: 42.45 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/1.498, allocations: 12.84 kB / 0.864 GB, free: 42.45 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.182e-05/1.498, allocations: 105.6 kB / 0.8641 GB, free: 42.41 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008124/1.499, allocations: 122 kB / 0.8642 GB, free: 42.38 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005747/1.5, allocations: 415.2 kB / 0.8646 GB, free: 42.14 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.559e-05/1.5, allocations: 42.38 kB / 0.8647 GB, free: 42.14 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-05/1.5, allocations: 45.75 kB / 0.8647 GB, free: 42.14 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/1.502, allocations: 0.8228 MB / 0.8655 GB, free: 42.02 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.394e-05/1.502, allocations: 6.016 kB / 0.8655 GB, free: 42.02 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.973e-05/1.502, allocations: 21.84 kB / 0.8655 GB, free: 42.02 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.67e-05/1.502, allocations: 25.48 kB / 0.8656 GB, free: 42.02 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/1.503, allocations: 0.7535 MB / 0.8663 GB, free: 42.01 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002862/1.506, allocations: 3.42 MB / 0.8696 GB, free: 39.77 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/1.508, allocations: 0.6848 MB / 0.8703 GB, free: 39.74 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006947/1.508, allocations: 481.3 kB / 0.8708 GB, free: 39.73 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3446/1.853, allocations: 185.3 MB / 1.052 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.097e-05/1.853, allocations: 45.98 kB / 1.052 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 2.975e-06/1.853, allocations: 0 / 1.052 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.009684/1.863, allocations: 3.431 MB / 1.055 GB, free: 12.23 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.303e-05/1.863, allocations: 55.97 kB / 1.055 GB, free: 12.16 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003561/1.863, allocations: 306.8 kB / 1.055 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.765e-05/1.863, allocations: 32.77 kB / 1.056 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/1.864, allocations: 238.9 kB / 1.056 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002886/1.864, allocations: 405.5 kB / 1.056 GB, free: 11.33 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001861/1.864, allocations: 134.6 kB / 1.056 GB, free: 11.24 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001697/1.864, allocations: 367.8 kB / 1.057 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007305/1.865, allocations: 394.5 kB / 1.057 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008514/1.866, allocations: 0.5351 MB / 1.058 GB, free: 10.26 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/1.867, allocations: 0.9741 MB / 1.058 GB, free: 9.613 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/1.867, allocations: 4 kB / 1.058 GB, free: 9.609 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002188/1.87, allocations: 1.137 MB / 1.06 GB, free: 8.844 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/1.87, allocations: 5.094 kB / 1.06 GB, free: 8.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/1.87, allocations: 4 kB / 1.06 GB, free: 8.836 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004025/1.87, allocations: 101.8 kB / 1.06 GB, free: 8.75 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/1.871, allocations: 210.3 kB / 1.06 GB, free: 8.562 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3579/2.229, allocations: 35.29 MB / 1.094 GB, free: 423.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006076/2.23, allocations: 42.81 kB / 1.094 GB, free: 423.8 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.957e-05/2.23, allocations: 27.28 kB / 1.094 GB, free: 423.8 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * 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): 4 systems {1, 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000326/2.23, allocations: 220 kB / 1.095 GB, free: 423.7 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/2.23, allocations: 69.75 kB / 1.095 GB, free: 423.7 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003016/2.233, allocations: 2.376 MB / 1.097 GB, free: 423.5 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.824e-05/2.233, allocations: 17.83 kB / 1.097 GB, free: 423.5 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/2.233, allocations: 0 / 1.097 GB, free: 423.5 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002188/2.235, allocations: 1.648 MB / 1.099 GB, free: 423.1 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003199/2.239, allocations: 2.472 MB / 1.101 GB, free: 421.9 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/2.239, allocations: 1.344 kB / 1.101 GB, free: 421.9 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004993/2.239, allocations: 115.9 kB / 1.101 GB, free: 421.9 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005001/2.24, allocations: 211.6 kB / 1.101 GB, free: 421.8 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.893e-05/2.24, allocations: 20.38 kB / 1.101 GB, free: 421.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001837/2.242, allocations: 3.975 MB / 1.105 GB, free: 417.9 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/2.242, allocations: 1.469 kB / 1.105 GB, free: 417.9 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002842/2.244, allocations: 1.983 MB / 1.107 GB, free: 416.9 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/2.245, allocations: 133.6 kB / 1.107 GB, free: 416.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.814e-05/2.245, allocations: 15.91 kB / 1.107 GB, free: 416.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004002/2.245, allocations: 38.52 kB / 1.107 GB, free: 416.8 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/2.245, allocations: 62.33 kB / 1.107 GB, free: 416.8 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/2.245, allocations: 19.84 kB / 1.107 GB, free: 416.8 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002153/2.246, allocations: 255.2 kB / 1.108 GB, free: 416.7 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.51e-07/2.246, allocations: 3.969 kB / 1.108 GB, free: 416.7 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01802/2.264, allocations: 5.54 MB / 1.113 GB, free: 416.4 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.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,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.03152/2.295, allocations: 9.164 MB / 1.122 GB, free: 413.8 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003039/2.298, allocations: 1.573 MB / 1.124 GB, free: 413 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/2.298, allocations: 0 / 1.124 GB, free: 413 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001094/2.299, allocations: 0.8338 MB / 1.124 GB, free: 412.5 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002553/2.302, allocations: 0.5253 MB / 1.125 GB, free: 412.4 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01872/2.321, allocations: 8.628 MB / 1.133 GB, free: 407.8 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/2.321, allocations: 0.9304 MB / 1.134 GB, free: 407.1 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005475/2.322, allocations: 202 kB / 1.134 GB, free: 407.1 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002585/2.322, allocations: 257.2 kB / 1.135 GB, free: 406.9 MB / 0.7637 GB Notification: Performance of SimCode: time 5.51e-07/2.322, allocations: 0 / 1.135 GB, free: 406.9 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2703/2.592, allocations: 211.1 MB / 1.341 GB, free: 200.1 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.14/22.73, allocations: 7.938 kB / 1.341 GB, free: 200.1 MB / 0.7637 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2_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_EthanolTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1)