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.005544/0.005544, allocations: 104.7 kB / 15.74 MB, free: 5.988 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.001354/0.001354, allocations: 196.2 kB / 16.67 MB, free: 5.914 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.515/1.515, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04953/0.04953, allocations: 9.096 MB / 279 MB, free: 12.06 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.001639/0.001639, allocations: 75.91 kB / 387 MB, free: 8.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3284, allocations: 48.15 MB / 435.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.5772/0.9056, allocations: 196 MB / 0.6164 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1693/1.075, allocations: 141.7 MB / 0.7548 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001291/1.076, allocations: 11.88 kB / 0.7548 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.005134/1.082, allocations: 1.365 MB / 0.7562 GB, free: 11.69 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.007017/1.089, allocations: 1.638 MB / 0.7578 GB, free: 10.04 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.1376/1.226, allocations: 38.18 MB / 0.795 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00376/1.23, allocations: 1.92 MB / 0.7969 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004115/1.23, allocations: 198.6 kB / 0.7971 GB, free: 1.586 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001828/1.232, allocations: 0.8443 MB / 0.7979 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007557/1.233, allocations: 0.5253 MB / 0.7984 GB, free: 216 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.743e-05/1.233, allocations: 60 kB / 0.7985 GB, free: 156 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5752/1.808, allocations: 44.15 MB / 0.8416 GB, free: 45.32 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004569/1.809, allocations: 176.9 kB / 0.8418 GB, free: 45.32 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009951/1.81, allocations: 426.2 kB / 0.8422 GB, free: 45.32 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.07416/1.884, allocations: 18.82 MB / 0.8606 GB, free: 45.1 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 1.132e-05/1.884, allocations: 0 / 0.8606 GB, free: 45.1 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.916e-06/1.884, allocations: 0.5 kB / 0.8606 GB, free: 45.1 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.866e-05/1.884, allocations: 1.125 kB / 0.8606 GB, free: 45.1 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.01379/1.898, allocations: 3.346 MB / 0.8638 GB, free: 43.35 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/1.898, allocations: 9.719 kB / 0.8638 GB, free: 43.35 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/1.898, allocations: 110.3 kB / 0.8639 GB, free: 43.31 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008426/1.899, allocations: 119.9 kB / 0.8641 GB, free: 43.27 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007783/1.9, allocations: 411.3 kB / 0.8644 GB, free: 43.04 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.699e-05/1.9, allocations: 42.88 kB / 0.8645 GB, free: 43.04 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.402e-05/1.9, allocations: 50.03 kB / 0.8645 GB, free: 43.03 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/1.902, allocations: 0.8217 MB / 0.8653 GB, free: 42.92 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/1.902, allocations: 3.969 kB / 0.8653 GB, free: 42.92 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.926e-05/1.902, allocations: 21.16 kB / 0.8654 GB, free: 42.92 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.824e-05/1.902, allocations: 20.38 kB / 0.8654 GB, free: 42.92 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001699/1.903, allocations: 0.7578 MB / 0.8661 GB, free: 42.92 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003433/1.907, allocations: 3.414 MB / 0.8695 GB, free: 40.68 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/1.908, allocations: 0.6848 MB / 0.8701 GB, free: 40.65 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007127/1.909, allocations: 486.4 kB / 0.8706 GB, free: 40.63 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3357/2.245, allocations: 185.3 MB / 1.052 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.559e-05/2.245, allocations: 41.75 kB / 1.052 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 3.697e-06/2.245, allocations: 0 / 1.052 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.01023/2.255, allocations: 3.411 MB / 1.055 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/2.255, allocations: 59.97 kB / 1.055 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004045/2.256, allocations: 311.2 kB / 1.055 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 6.372e-05/2.256, allocations: 37.83 kB / 1.055 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/2.256, allocations: 230.9 kB / 1.056 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004169/2.256, allocations: 380.7 kB / 1.056 GB, free: 12.01 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002566/2.257, allocations: 134.6 kB / 1.056 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000183/2.257, allocations: 365.1 kB / 1.056 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007399/2.257, allocations: 399.2 kB / 1.057 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008305/2.258, allocations: 0.5409 MB / 1.057 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/2.26, allocations: 0.9753 MB / 1.058 GB, free: 10.28 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/2.26, allocations: 0 / 1.058 GB, free: 10.28 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002244/2.262, allocations: 1.128 MB / 1.059 GB, free: 9.52 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/2.262, allocations: 8 kB / 1.059 GB, free: 9.512 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.78e-05/2.262, allocations: 0 / 1.059 GB, free: 9.512 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004274/2.263, allocations: 111.9 kB / 1.059 GB, free: 9.418 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/2.264, allocations: 210.1 kB / 1.06 GB, free: 9.234 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4383/2.702, allocations: 35.26 MB / 1.094 GB, free: 423.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007924/2.703, allocations: 35.06 kB / 1.094 GB, free: 423.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/2.703, allocations: 28.83 kB / 1.094 GB, free: 423.4 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.0005982/2.704, allocations: 220.6 kB / 1.094 GB, free: 423.3 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003309/2.704, allocations: 64.06 kB / 1.094 GB, free: 423.3 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003982/2.708, allocations: 2.381 MB / 1.097 GB, free: 423 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.599e-05/2.708, allocations: 19.38 kB / 1.097 GB, free: 423 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/2.708, allocations: 1.125 kB / 1.097 GB, free: 423 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002476/2.711, allocations: 1.651 MB / 1.098 GB, free: 422.6 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004206/2.715, allocations: 2.455 MB / 1.101 GB, free: 421.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/2.715, allocations: 3.844 kB / 1.101 GB, free: 421.5 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004934/2.715, allocations: 120.9 kB / 1.101 GB, free: 421.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004978/2.716, allocations: 214.2 kB / 1.101 GB, free: 421.4 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.916e-05/2.716, allocations: 22.39 kB / 1.101 GB, free: 421.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002091/2.718, allocations: 3.981 MB / 1.105 GB, free: 417.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/2.718, allocations: 0 / 1.105 GB, free: 417.5 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003254/2.721, allocations: 1.966 MB / 1.107 GB, free: 416.6 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002325/2.722, allocations: 139.1 kB / 1.107 GB, free: 416.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/2.722, allocations: 18.88 kB / 1.107 GB, free: 416.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004444/2.722, allocations: 35.95 kB / 1.107 GB, free: 416.4 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/2.722, allocations: 65.8 kB / 1.107 GB, free: 416.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.552e-05/2.722, allocations: 21.44 kB / 1.107 GB, free: 416.4 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002591/2.723, allocations: 252.2 kB / 1.107 GB, free: 416.3 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.1e-07/2.723, allocations: 0 / 1.107 GB, free: 416.3 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0173/2.74, allocations: 5.456 MB / 1.113 GB, free: 416 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.03679/2.777, allocations: 9.064 MB / 1.122 GB, free: 413.8 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003876/2.781, allocations: 1.576 MB / 1.123 GB, free: 413 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/2.781, allocations: 0 / 1.123 GB, free: 413 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001296/2.782, allocations: 0.8269 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.002767/2.785, allocations: 0.5282 MB / 1.124 GB, free: 412.4 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02225/2.807, allocations: 8.516 MB / 1.133 GB, free: 408 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004447/2.807, allocations: 0.9372 MB / 1.134 GB, free: 407.3 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0007162/2.808, allocations: 185 kB / 1.134 GB, free: 407.2 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003309/2.809, allocations: 250.6 kB / 1.134 GB, free: 407.1 MB / 0.7637 GB Notification: Performance of SimCode: time 6.01e-07/2.809, allocations: 0 / 1.134 GB, free: 407.1 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3211/3.13, allocations: 211.4 MB / 1.341 GB, free: 200.9 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.43/22.56, allocations: 16.02 kB / 1.341 GB, free: 200.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1)