Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.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.EthanolTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel",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.008888/0.008888, allocations: 97.89 kB / 15.73 MB, free: 5.996 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.001543/0.001544, allocations: 184.7 kB / 16.67 MB, free: 5.926 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.508/1.508, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04565/0.04565, allocations: 9.098 MB / 279 MB, free: 2.957 MB / 222.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.001637/0.001637, allocations: 68.89 kB / 387 MB, free: 47.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08965/0.0913, allocations: 48.2 MB / 435.2 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.3872/0.4785, allocations: 127.5 MB / 0.5496 GB, free: 2.32 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.09364/0.5722, allocations: 109.6 MB / 0.6566 GB, free: 4.273 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006871/0.573, allocations: 4 kB / 0.6566 GB, free: 4.27 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002504/0.5755, allocations: 1.199 MB / 0.6578 GB, free: 3.066 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00264/0.5782, allocations: 1.27 MB / 0.659 GB, free: 1.793 MB / 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.07903/0.6572, allocations: 30.45 MB / 0.6887 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001897/0.6592, allocations: 1.371 MB / 0.6901 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002309/0.6594, allocations: 119.6 kB / 0.6902 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01883/0.6782, allocations: 12.09 MB / 0.702 GB, free: 5.652 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004976/0.6788, allocations: 375.4 kB / 0.7024 GB, free: 5.285 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.013e-05/0.6788, allocations: 40 kB / 0.7024 GB, free: 5.246 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0608/0.7396, allocations: 33.13 MB / 0.7347 GB, free: 4.059 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002514/0.7399, allocations: 123.6 kB / 0.7349 GB, free: 3.938 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005376/0.7405, allocations: 294.8 kB / 0.7351 GB, free: 3.648 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.3605/1.101, allocations: 14.13 MB / 0.7489 GB, free: 57.71 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/1.101, allocations: 2.156 kB / 0.749 GB, free: 57.71 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.725e-06/1.101, allocations: 0 / 0.749 GB, free: 57.71 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.289e-05/1.101, allocations: 5.062 kB / 0.749 GB, free: 57.71 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.01151/1.113, allocations: 2.681 MB / 0.7516 GB, free: 56.19 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.752e-05/1.113, allocations: 9.406 kB / 0.7516 GB, free: 56.19 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001176/1.113, allocations: 85.41 kB / 0.7517 GB, free: 56.15 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007105/1.114, allocations: 92.89 kB / 0.7518 GB, free: 56.12 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/1.114, allocations: 345.9 kB / 0.7521 GB, free: 55.89 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.186e-05/1.114, allocations: 31.06 kB / 0.7521 GB, free: 55.89 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.692e-05/1.114, allocations: 36.12 kB / 0.7521 GB, free: 55.89 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/1.116, allocations: 0.5945 MB / 0.7527 GB, free: 55.8 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.625e-05/1.116, allocations: 3.625 kB / 0.7527 GB, free: 55.8 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.744e-05/1.116, allocations: 16.19 kB / 0.7527 GB, free: 55.8 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.935e-05/1.116, allocations: 21.22 kB / 0.7528 GB, free: 55.8 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/1.117, allocations: 0.547 MB / 0.7533 GB, free: 55.8 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002433/1.119, allocations: 2.539 MB / 0.7558 GB, free: 54.06 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/1.121, allocations: 0.5167 MB / 0.7563 GB, free: 54.03 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004962/1.121, allocations: 335.4 kB / 0.7566 GB, free: 54.02 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2533/1.374, allocations: 139 MB / 0.8923 GB, free: 26.43 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/1.375, allocations: 38.78 kB / 0.8924 GB, free: 26.39 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=79): time 3.376e-06/1.375, allocations: 0 / 0.8924 GB, free: 26.39 MB / 0.6387 GB Notification: Performance of matching and sorting (n=83): time 0.006125/1.381, allocations: 2.33 MB / 0.8946 GB, free: 24.58 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/1.381, allocations: 57.47 kB / 0.8947 GB, free: 24.51 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/1.381, allocations: 258.5 kB / 0.8949 GB, free: 24.3 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 5.662e-05/1.381, allocations: 37.58 kB / 0.895 GB, free: 24.27 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/1.381, allocations: 182.6 kB / 0.8952 GB, free: 24.11 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/1.381, allocations: 280.8 kB / 0.8954 GB, free: 23.87 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/1.381, allocations: 98.92 kB / 0.8955 GB, free: 23.8 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.000138/1.382, allocations: 353.2 kB / 0.8959 GB, free: 23.46 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004574/1.382, allocations: 269.9 kB / 0.8961 GB, free: 23.3 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004837/1.383, allocations: 403 kB / 0.8965 GB, free: 22.99 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009442/1.384, allocations: 0.6947 MB / 0.8972 GB, free: 22.51 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/1.384, allocations: 4 kB / 0.8972 GB, free: 22.5 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001382/1.385, allocations: 0.7864 MB / 0.8979 GB, free: 21.97 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/1.385, allocations: 5.938 kB / 0.8979 GB, free: 21.96 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/1.385, allocations: 9.562 kB / 0.898 GB, free: 21.96 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002493/1.385, allocations: 65.48 kB / 0.898 GB, free: 21.9 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003898/1.386, allocations: 98.31 kB / 0.8981 GB, free: 21.82 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06795/1.454, allocations: 17.21 MB / 0.9149 GB, free: 5.113 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/1.454, allocations: 27.3 kB / 0.9149 GB, free: 5.094 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.629e-05/1.454, allocations: 19.86 kB / 0.915 GB, free: 5.078 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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): 43 * 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 prepare postOptimizeDAE: time 0.0003318/1.455, allocations: 188.5 kB / 0.9151 GB, free: 4.93 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/1.455, allocations: 43.72 kB / 0.9152 GB, free: 4.887 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00175/1.456, allocations: 1.547 MB / 0.9167 GB, free: 3.797 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/1.456, allocations: 15.92 kB / 0.9167 GB, free: 3.785 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/1.456, allocations: 0 / 0.9167 GB, free: 3.785 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001286/1.458, allocations: 1.145 MB / 0.9178 GB, free: 2.824 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002123/1.46, allocations: 1.589 MB / 0.9194 GB, free: 1.676 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/1.46, allocations: 0 / 0.9194 GB, free: 1.676 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003171/1.46, allocations: 79.27 kB / 0.9195 GB, free: 1.605 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00019/1.46, allocations: 47.61 kB / 0.9195 GB, free: 1.562 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/1.46, allocations: 9.688 kB / 0.9195 GB, free: 1.559 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/1.462, allocations: 1.426 MB / 0.9209 GB, free: 16.08 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.462, allocations: 0 / 0.9209 GB, free: 16.08 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/1.463, allocations: 1.188 MB / 0.9221 GB, free: 15.25 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/1.463, allocations: 120.8 kB / 0.9222 GB, free: 15.11 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.072e-05/1.463, allocations: 14 kB / 0.9222 GB, free: 15.11 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003698/1.464, allocations: 27.41 kB / 0.9222 GB, free: 15.08 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/1.464, allocations: 46.62 kB / 0.9223 GB, free: 15.04 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.296e-05/1.464, allocations: 11.38 kB / 0.9223 GB, free: 15.04 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002786/1.464, allocations: 249.7 kB / 0.9225 GB, free: 14.84 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.6e-07/1.464, allocations: 0 / 0.9225 GB, free: 14.84 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01116/1.475, allocations: 3.572 MB / 0.926 GB, free: 11.37 MB / 0.6544 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 (40): * 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: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02324/1.499, allocations: 6.214 MB / 0.9321 GB, free: 6.125 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002203/1.501, allocations: 0.9529 MB / 0.933 GB, free: 5.418 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/1.501, allocations: 0 / 0.933 GB, free: 5.418 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001029/1.502, allocations: 499.6 kB / 0.9335 GB, free: 5.062 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002672/1.505, allocations: 397.2 kB / 0.9339 GB, free: 4.715 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01684/1.522, allocations: 6.33 MB / 0.94 GB, free: 15.33 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006629/1.522, allocations: 0.8478 MB / 0.9409 GB, free: 14.46 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0006036/1.523, allocations: 165.6 kB / 0.941 GB, free: 14.3 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000253/1.523, allocations: 175 kB / 0.9412 GB, free: 14.25 MB / 0.67 GB Notification: Performance of SimCode: time 1.433e-06/1.523, allocations: 0 / 0.9412 GB, free: 14.25 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4563/1.98, allocations: 132.4 MB / 1.07 GB, free: 268.4 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.73/18.71, allocations: 12.03 kB / 1.07 GB, free: 268.4 MB / 0.6856 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel_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_EthanolTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe 2>&1)