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.001451/0.001451, 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.001794/0.001794, allocations: 195.5 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.431/1.431, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04748/0.04748, allocations: 9.089 MB / 278.9 MB, free: 12.16 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.001455/0.001456, allocations: 63.89 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09132/0.09279, allocations: 48.17 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.4058/0.4986, allocations: 196 MB / 0.5687 GB, free: 1.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.4585/0.9572, allocations: 141.7 MB / 0.707 GB, free: 14.21 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001324/0.9586, allocations: 8.219 kB / 0.707 GB, free: 14.21 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00399/0.9626, allocations: 1.37 MB / 0.7084 GB, free: 13.06 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004581/0.9672, allocations: 1.637 MB / 0.71 GB, free: 11.69 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.1467/1.114, allocations: 38.19 MB / 0.7473 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003366/1.117, allocations: 1.921 MB / 0.7492 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003666/1.118, allocations: 187.5 kB / 0.7493 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001681/1.119, allocations: 0.822 MB / 0.7501 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007222/1.12, allocations: 0.5341 MB / 0.7507 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.323e-05/1.12, allocations: 60 kB / 0.7507 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.08558/1.206, allocations: 42.19 MB / 0.7919 GB, free: 8.43 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004398/1.206, allocations: 163.5 kB / 0.7921 GB, free: 8.27 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0009309/1.207, allocations: 434.3 kB / 0.7925 GB, free: 7.844 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.4134/1.621, allocations: 18.81 MB / 0.8108 GB, free: 50.25 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/1.621, allocations: 3.5 kB / 0.8109 GB, free: 50.25 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.773e-06/1.621, allocations: 0 / 0.8109 GB, free: 50.25 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.228e-05/1.621, allocations: 1.719 kB / 0.8109 GB, free: 50.25 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: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.01271/1.633, allocations: 3.345 MB / 0.8141 GB, free: 48.5 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/1.633, allocations: 10.5 kB / 0.8141 GB, free: 48.5 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/1.634, allocations: 105.3 kB / 0.8142 GB, free: 48.46 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000819/1.634, allocations: 119.9 kB / 0.8143 GB, free: 48.42 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005113/1.635, allocations: 406.9 kB / 0.8147 GB, free: 48.18 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.605e-05/1.635, allocations: 44.25 kB / 0.8148 GB, free: 48.18 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.522e-05/1.635, allocations: 46.25 kB / 0.8148 GB, free: 48.18 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/1.637, allocations: 0.8199 MB / 0.8156 GB, free: 48.07 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/1.637, allocations: 5.594 kB / 0.8156 GB, free: 48.07 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.316e-05/1.637, allocations: 19.55 kB / 0.8156 GB, free: 48.07 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.162e-05/1.637, allocations: 25.34 kB / 0.8157 GB, free: 48.07 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/1.639, allocations: 0.7542 MB / 0.8164 GB, free: 48.07 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002937/1.641, allocations: 3.434 MB / 0.8198 GB, free: 45.83 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/1.643, allocations: 0.6868 MB / 0.8204 GB, free: 45.8 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007127/1.644, allocations: 483.6 kB / 0.8209 GB, free: 45.79 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3198/1.963, allocations: 185.3 MB / 1.002 GB, free: 17.16 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.592e-05/1.964, allocations: 45.12 kB / 1.002 GB, free: 17.11 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 3.837e-06/1.964, allocations: 0 / 1.002 GB, free: 17.11 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.008831/1.972, allocations: 3.428 MB / 1.005 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/1.972, allocations: 55.97 kB / 1.005 GB, free: 14.44 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/1.973, allocations: 303.6 kB / 1.006 GB, free: 14.18 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 4.465e-05/1.973, allocations: 39.95 kB / 1.006 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/1.973, allocations: 233.3 kB / 1.006 GB, free: 13.95 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/1.973, allocations: 381.3 kB / 1.006 GB, free: 13.63 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001574/1.973, allocations: 135.7 kB / 1.006 GB, free: 13.54 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001389/1.973, allocations: 369.7 kB / 1.007 GB, free: 13.2 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006256/1.974, allocations: 396 kB / 1.007 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007003/1.975, allocations: 0.5341 MB / 1.008 GB, free: 12.55 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001372/1.976, allocations: 0.9786 MB / 1.009 GB, free: 11.91 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/1.976, allocations: 4 kB / 1.009 GB, free: 11.91 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001841/1.978, allocations: 1.127 MB / 1.01 GB, free: 11.14 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/1.978, allocations: 8 kB / 1.01 GB, free: 11.13 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/1.978, allocations: 0 / 1.01 GB, free: 11.13 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003465/1.978, allocations: 112.2 kB / 1.01 GB, free: 11.04 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009458/1.979, allocations: 206 kB / 1.01 GB, free: 10.86 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4742/2.454, allocations: 46.91 MB / 1.056 GB, free: 389.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007261/2.454, allocations: 42.17 kB / 1.056 GB, free: 389.1 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.924e-05/2.454, allocations: 25.97 kB / 1.056 GB, free: 389.1 MB / 0.6856 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.000401/2.455, allocations: 224 kB / 1.056 GB, free: 388.9 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/2.455, allocations: 63.19 kB / 1.056 GB, free: 388.9 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002839/2.458, allocations: 2.384 MB / 1.058 GB, free: 386.9 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.828e-05/2.458, allocations: 22.56 kB / 1.058 GB, free: 386.9 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/2.458, allocations: 0 / 1.058 GB, free: 386.9 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001906/2.46, allocations: 1.647 MB / 1.06 GB, free: 385.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003149/2.463, allocations: 2.464 MB / 1.062 GB, free: 382.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/2.463, allocations: 6.188 kB / 1.062 GB, free: 382.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004652/2.463, allocations: 120.4 kB / 1.063 GB, free: 382.5 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000444/2.464, allocations: 199.2 kB / 1.063 GB, free: 382.3 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.431e-05/2.464, allocations: 12 kB / 1.063 GB, free: 382.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001919/2.466, allocations: 3.989 MB / 1.067 GB, free: 378 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/2.466, allocations: 0 / 1.067 GB, free: 378 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/2.469, allocations: 1.979 MB / 1.069 GB, free: 376 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/2.469, allocations: 128.3 kB / 1.069 GB, free: 375.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.996e-05/2.469, allocations: 13.31 kB / 1.069 GB, free: 375.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004503/2.469, allocations: 40 kB / 1.069 GB, free: 375.8 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/2.469, allocations: 68.41 kB / 1.069 GB, free: 375.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-05/2.469, allocations: 23.98 kB / 1.069 GB, free: 375.7 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002324/2.47, allocations: 247.2 kB / 1.069 GB, free: 375.5 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.1e-07/2.47, allocations: 4 kB / 1.069 GB, free: 375.5 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01684/2.487, allocations: 4.818 MB / 1.074 GB, free: 371.3 MB / 0.6856 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.0359/2.523, allocations: 8.227 MB / 1.082 GB, free: 363.9 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003769/2.526, allocations: 1.553 MB / 1.083 GB, free: 362.3 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/2.526, allocations: 4 kB / 1.083 GB, free: 362.3 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001204/2.528, allocations: 0.8291 MB / 1.084 GB, free: 361.4 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002803/2.53, allocations: 0.5356 MB / 1.085 GB, free: 360.9 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02119/2.552, allocations: 8.356 MB / 1.093 GB, free: 352.4 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000367/2.552, allocations: 0.9364 MB / 1.094 GB, free: 351.4 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0006875/2.553, allocations: 188.5 kB / 1.094 GB, free: 351.3 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002806/2.553, allocations: 255.3 kB / 1.094 GB, free: 351 MB / 0.6856 GB Notification: Performance of SimCode: time 8.52e-07/2.553, allocations: 3.938 kB / 1.094 GB, free: 351 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2836/2.837, allocations: 195.5 MB / 1.285 GB, free: 155.1 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.5/22.34, allocations: 11.92 kB / 1.285 GB, free: 155.1 MB / 0.6856 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)