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.00486/0.00486, allocations: 96.06 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.001107/0.001107, allocations: 202.8 kB / 16.68 MB, free: 5.977 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.412/1.412, allocations: 205.1 MB / 222.6 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04762/0.04762, allocations: 9.092 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.001568/0.001568, allocations: 66.41 kB / 387 MB, free: 8.465 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2785, allocations: 48.16 MB / 435.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.5136/0.7921, allocations: 196 MB / 0.6164 GB, free: 1 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1209/0.9131, allocations: 141.7 MB / 0.7548 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001026/0.9141, allocations: 11.94 kB / 0.7548 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003758/0.9179, allocations: 1.611 MB / 0.7564 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004048/0.922, allocations: 1.903 MB / 0.7583 GB, free: 9.523 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.118/1.04, allocations: 40.59 MB / 0.7979 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002906/1.043, allocations: 1.924 MB / 0.7998 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004358/1.043, allocations: 207.5 kB / 0.8 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001764/1.045, allocations: 0.8445 MB / 0.8008 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006991/1.046, allocations: 0.5175 MB / 0.8013 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.22e-05/1.046, allocations: 60 kB / 0.8014 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4555/1.501, allocations: 44.16 MB / 0.8445 GB, free: 44.33 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005439/1.502, allocations: 168.3 kB / 0.8446 GB, free: 44.33 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.00107/1.503, allocations: 422.3 kB / 0.845 GB, free: 44.33 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.07474/1.578, allocations: 18.87 MB / 0.8635 GB, free: 43.76 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/1.578, allocations: 0.7188 kB / 0.8635 GB, free: 43.76 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.046e-06/1.578, allocations: 0 / 0.8635 GB, free: 43.76 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.331e-05/1.578, allocations: 3.062 kB / 0.8635 GB, free: 43.76 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.01172/1.59, allocations: 3.495 MB / 0.8669 GB, free: 41.84 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/1.59, allocations: 10.62 kB / 0.8669 GB, free: 41.84 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001371/1.59, allocations: 108.7 kB / 0.867 GB, free: 41.8 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009007/1.591, allocations: 123.6 kB / 0.8671 GB, free: 41.77 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006482/1.591, allocations: 408.5 kB / 0.8675 GB, free: 41.53 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.741e-05/1.592, allocations: 47.44 kB / 0.8676 GB, free: 41.53 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.329e-05/1.592, allocations: 45.81 kB / 0.8676 GB, free: 41.53 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/1.593, allocations: 0.8183 MB / 0.8684 GB, free: 41.41 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.49e-05/1.593, allocations: 7.297 kB / 0.8684 GB, free: 41.41 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.464e-05/1.593, allocations: 18.03 kB / 0.8684 GB, free: 41.41 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.225e-05/1.594, allocations: 26.72 kB / 0.8684 GB, free: 41.41 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/1.595, allocations: 0.758 MB / 0.8692 GB, free: 41.4 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003468/1.599, allocations: 3.423 MB / 0.8725 GB, free: 39.16 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/1.6, allocations: 0.6785 MB / 0.8732 GB, free: 39.12 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008026/1.601, allocations: 484.1 kB / 0.8737 GB, free: 39.11 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3389/1.94, allocations: 185.3 MB / 1.055 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.38e-05/1.94, allocations: 35.81 kB / 1.055 GB, free: 12.63 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 3.376e-06/1.94, allocations: 0 / 1.055 GB, free: 12.63 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.009332/1.949, allocations: 3.427 MB / 1.058 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/1.95, allocations: 71.05 kB / 1.058 GB, free: 9.957 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003429/1.95, allocations: 302.1 kB / 1.058 GB, free: 9.707 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.083e-05/1.95, allocations: 40.23 kB / 1.058 GB, free: 9.672 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/1.95, allocations: 232.2 kB / 1.059 GB, free: 9.48 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002668/1.95, allocations: 408.2 kB / 1.059 GB, free: 9.137 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002009/1.951, allocations: 133.8 kB / 1.059 GB, free: 9.047 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001662/1.951, allocations: 371.3 kB / 1.059 GB, free: 8.699 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007116/1.952, allocations: 395.1 kB / 1.06 GB, free: 8.469 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007918/1.952, allocations: 0.5299 MB / 1.06 GB, free: 8.062 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/1.954, allocations: 0.9818 MB / 1.061 GB, free: 7.414 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/1.954, allocations: 0 / 1.061 GB, free: 7.414 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002182/1.956, allocations: 1.134 MB / 1.062 GB, free: 6.648 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/1.956, allocations: 8 kB / 1.062 GB, free: 6.641 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/1.956, allocations: 5.625 kB / 1.062 GB, free: 6.637 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003979/1.956, allocations: 105.8 kB / 1.063 GB, free: 6.547 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/1.958, allocations: 208.8 kB / 1.063 GB, free: 6.363 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4061/2.364, allocations: 35.28 MB / 1.097 GB, free: 425 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000707/2.364, allocations: 36.77 kB / 1.097 GB, free: 425 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.161e-05/2.364, allocations: 30.06 kB / 1.097 GB, free: 425 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.000385/2.365, allocations: 219.8 kB / 1.097 GB, free: 424.9 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/2.365, allocations: 63.48 kB / 1.098 GB, free: 424.9 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003513/2.369, allocations: 2.386 MB / 1.1 GB, free: 424.6 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-05/2.369, allocations: 18.55 kB / 1.1 GB, free: 424.6 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/2.369, allocations: 0.5625 kB / 1.1 GB, free: 424.6 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002415/2.371, allocations: 1.654 MB / 1.102 GB, free: 423.9 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003569/2.375, allocations: 2.458 MB / 1.104 GB, free: 422.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/2.375, allocations: 2.734 kB / 1.104 GB, free: 422.8 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004816/2.375, allocations: 123.3 kB / 1.104 GB, free: 422.7 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004565/2.376, allocations: 213.9 kB / 1.104 GB, free: 422.7 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/2.376, allocations: 11.97 kB / 1.104 GB, free: 422.7 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002025/2.378, allocations: 3.992 MB / 1.108 GB, free: 418.7 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/2.378, allocations: 0 / 1.108 GB, free: 418.7 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002863/2.381, allocations: 1.971 MB / 1.11 GB, free: 417.8 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000225/2.381, allocations: 136.9 kB / 1.11 GB, free: 417.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.379e-05/2.381, allocations: 15.91 kB / 1.11 GB, free: 417.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004122/2.381, allocations: 38.45 kB / 1.11 GB, free: 417.6 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/2.381, allocations: 71.2 kB / 1.11 GB, free: 417.6 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.781e-05/2.382, allocations: 21.59 kB / 1.11 GB, free: 417.6 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002498/2.382, allocations: 253.6 kB / 1.111 GB, free: 417.5 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.51e-07/2.382, allocations: 0 / 1.111 GB, free: 417.5 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01662/2.398, allocations: 5.544 MB / 1.116 GB, free: 417.2 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.03832/2.437, allocations: 9.156 MB / 1.125 GB, free: 414.6 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003325/2.44, allocations: 1.58 MB / 1.126 GB, free: 413.8 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/2.44, allocations: 0 / 1.126 GB, free: 413.8 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001175/2.441, allocations: 0.823 MB / 1.127 GB, free: 413.3 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002581/2.444, allocations: 0.5243 MB / 1.128 GB, free: 413.2 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02174/2.466, allocations: 8.634 MB / 1.136 GB, free: 408.6 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/2.466, allocations: 0.9327 MB / 1.137 GB, free: 407.9 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006542/2.467, allocations: 194.8 kB / 1.137 GB, free: 407.9 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002796/2.467, allocations: 247.8 kB / 1.138 GB, free: 407.7 MB / 0.7637 GB Notification: Performance of SimCode: time 9.41e-07/2.467, allocations: 0 / 1.138 GB, free: 407.7 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.302/2.769, allocations: 211.1 MB / 1.344 GB, free: 198.1 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.79/22.56, allocations: 19.95 kB / 1.344 GB, free: 198.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)