Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.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.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",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.00782/0.00782, allocations: 105.7 kB / 15.74 MB, free: 5.594 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.001515/0.001515, allocations: 193.8 kB / 16.67 MB, free: 5.531 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.454/1.454, 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.04669/0.04669, allocations: 9.091 MB / 279 MB, free: 2.941 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.001487/0.001487, allocations: 71.25 kB / 387 MB, free: 47.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08856/0.09006, allocations: 48.17 MB / 435.2 MB, free: 7.926 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.431/0.5211, allocations: 128.6 MB / 0.5506 GB, free: 1.891 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.107/0.6281, allocations: 111.1 MB / 0.6591 GB, free: 1.473 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006569/0.6288, allocations: 4 kB / 0.6591 GB, free: 1.469 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003173/0.632, allocations: 1.361 MB / 0.6605 GB, free: 104 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003975/0.636, allocations: 1.652 MB / 0.6621 GB, free: 14.44 MB / 494.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.0805/0.7166, allocations: 29.34 MB / 0.6907 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002061/0.7186, allocations: 1.402 MB / 0.6921 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.7189, allocations: 123.2 kB / 0.6922 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01603/0.735, allocations: 8.977 MB / 0.701 GB, free: 6.492 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005286/0.7355, allocations: 378.7 kB / 0.7013 GB, free: 6.125 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.156e-05/0.7356, allocations: 44 kB / 0.7014 GB, free: 6.082 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06461/0.8002, allocations: 34.96 MB / 0.7355 GB, free: 3.062 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002894/0.8005, allocations: 127.5 kB / 0.7356 GB, free: 2.938 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005893/0.8011, allocations: 298.8 kB / 0.7359 GB, free: 2.645 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.3067/1.108, allocations: 14.05 MB / 0.7496 GB, free: 56.97 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/1.108, allocations: 4.156 kB / 0.7497 GB, free: 56.97 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.643e-06/1.108, allocations: 0 / 0.7497 GB, free: 56.97 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.234e-05/1.108, allocations: 1.438 kB / 0.7497 GB, free: 56.97 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.009786/1.118, allocations: 2.569 MB / 0.7522 GB, free: 55.62 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/1.118, allocations: 11.66 kB / 0.7522 GB, free: 55.62 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.582e-05/1.118, allocations: 84.11 kB / 0.7523 GB, free: 55.58 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006568/1.119, allocations: 85.8 kB / 0.7523 GB, free: 55.56 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004553/1.119, allocations: 341.4 kB / 0.7527 GB, free: 55.33 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.872e-05/1.119, allocations: 32.5 kB / 0.7527 GB, free: 55.33 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/1.119, allocations: 29.62 kB / 0.7527 GB, free: 55.33 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/1.12, allocations: 0.5999 MB / 0.7533 GB, free: 55.24 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/1.12, allocations: 1.875 kB / 0.7533 GB, free: 55.24 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.354e-05/1.12, allocations: 15.44 kB / 0.7533 GB, free: 55.24 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/1.12, allocations: 17.75 kB / 0.7533 GB, free: 55.24 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/1.122, allocations: 0.5531 MB / 0.7539 GB, free: 55.24 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002069/1.124, allocations: 2.552 MB / 0.7564 GB, free: 53.5 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/1.125, allocations: 0.4998 MB / 0.7569 GB, free: 53.47 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000479/1.125, allocations: 329.8 kB / 0.7572 GB, free: 53.46 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2425/1.368, allocations: 139 MB / 0.8929 GB, free: 25.44 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.931e-05/1.368, allocations: 38.53 kB / 0.8929 GB, free: 25.39 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=79): time 4.629e-06/1.368, allocations: 3.984 kB / 0.8929 GB, free: 25.39 MB / 0.6387 GB Notification: Performance of matching and sorting (n=83): time 0.006237/1.374, allocations: 2.337 MB / 0.8952 GB, free: 23.58 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.386e-05/1.374, allocations: 56.91 kB / 0.8953 GB, free: 23.52 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002634/1.374, allocations: 247.4 kB / 0.8955 GB, free: 23.31 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 3.905e-05/1.375, allocations: 36.39 kB / 0.8955 GB, free: 23.28 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/1.375, allocations: 189.5 kB / 0.8957 GB, free: 23.11 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/1.375, allocations: 260.4 kB / 0.896 GB, free: 22.89 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/1.375, allocations: 107.8 kB / 0.8961 GB, free: 22.82 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001547/1.375, allocations: 353.5 kB / 0.8964 GB, free: 22.48 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004343/1.376, allocations: 268.3 kB / 0.8967 GB, free: 22.33 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004727/1.376, allocations: 402 kB / 0.897 GB, free: 22.01 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009639/1.377, allocations: 0.6994 MB / 0.8977 GB, free: 21.53 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/1.377, allocations: 4 kB / 0.8977 GB, free: 21.52 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001269/1.378, allocations: 0.7783 MB / 0.8985 GB, free: 20.99 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/1.378, allocations: 11.83 kB / 0.8985 GB, free: 20.98 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/1.378, allocations: 4.406 kB / 0.8985 GB, free: 20.98 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002399/1.379, allocations: 61.31 kB / 0.8986 GB, free: 20.93 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/1.379, allocations: 96.59 kB / 0.8987 GB, free: 20.84 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06936/1.448, allocations: 17.18 MB / 0.9154 GB, free: 20.15 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005221/1.449, allocations: 33.47 kB / 0.9155 GB, free: 20.13 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.201e-05/1.449, allocations: 15.88 kB / 0.9155 GB, free: 20.12 MB / 0.6544 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.0003087/1.449, allocations: 198.4 kB / 0.9157 GB, free: 19.96 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.094e-05/1.449, allocations: 43.44 kB / 0.9157 GB, free: 19.91 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/1.451, allocations: 1.539 MB / 0.9172 GB, free: 18.84 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/1.451, allocations: 10.38 kB / 0.9172 GB, free: 18.83 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/1.451, allocations: 4 kB / 0.9172 GB, free: 18.83 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001241/1.452, allocations: 1.144 MB / 0.9184 GB, free: 17.87 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001976/1.454, allocations: 1.58 MB / 0.9199 GB, free: 16.72 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.411e-06/1.454, allocations: 7.938 kB / 0.9199 GB, free: 16.71 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003207/1.455, allocations: 78.62 kB / 0.92 GB, free: 16.64 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002112/1.455, allocations: 56.98 kB / 0.92 GB, free: 16.59 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/1.455, allocations: 5.312 kB / 0.92 GB, free: 16.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/1.456, allocations: 1.422 MB / 0.9214 GB, free: 15.12 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/1.456, allocations: 4.031 kB / 0.9214 GB, free: 15.12 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/1.458, allocations: 1.18 MB / 0.9226 GB, free: 14.29 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/1.458, allocations: 115.2 kB / 0.9227 GB, free: 14.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.26e-05/1.458, allocations: 12.53 kB / 0.9227 GB, free: 14.15 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003021/1.458, allocations: 26.03 kB / 0.9227 GB, free: 14.13 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.82e-05/1.458, allocations: 46.2 kB / 0.9228 GB, free: 14.09 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/1.458, allocations: 18.92 kB / 0.9228 GB, free: 14.08 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002058/1.458, allocations: 248 kB / 0.923 GB, free: 13.88 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.61e-07/1.458, allocations: 0 / 0.923 GB, free: 13.88 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01134/1.47, allocations: 3.512 MB / 0.9265 GB, free: 10.48 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.02295/1.493, allocations: 6.147 MB / 0.9325 GB, free: 5.32 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001801/1.495, allocations: 0.9571 MB / 0.9334 GB, free: 4.602 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/1.495, allocations: 0 / 0.9334 GB, free: 4.602 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0008042/1.495, allocations: 499.4 kB / 0.9339 GB, free: 4.25 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001802/1.497, allocations: 375 kB / 0.9342 GB, free: 3.922 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/1.512, allocations: 6.265 MB / 0.9403 GB, free: 14.62 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/1.513, allocations: 0.8448 MB / 0.9412 GB, free: 13.75 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0005013/1.513, allocations: 163.1 kB / 0.9413 GB, free: 13.59 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/1.513, allocations: 171.6 kB / 0.9415 GB, free: 13.54 MB / 0.67 GB Notification: Performance of SimCode: time 1.542e-06/1.513, allocations: 4 kB / 0.9415 GB, free: 13.54 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4197/1.933, allocations: 132.3 MB / 1.071 GB, free: 267.4 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.6/18.53, allocations: 3.938 kB / 1.071 GB, free: 267.4 MB / 0.6856 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)