Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.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.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",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.001068/0.001068, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001103/0.001103, allocations: 193.6 kB / 16.14 MB, free: 6.707 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.36/1.36, allocations: 205.1 MB / 222 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04365/0.04365, allocations: 9.081 MB / 278.4 MB, free: 12.4 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.00129/0.00129, allocations: 72.33 kB / 337.4 MB, free: 25.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06922/0.07052, allocations: 48.15 MB / 385.6 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.3362/0.4068, allocations: 200.5 MB / 0.5723 GB, free: 13.76 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3733/0.7801, allocations: 145.9 MB / 0.7148 GB, free: 8.727 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008307/0.781, allocations: 6.906 kB / 0.7148 GB, free: 8.723 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004001/0.785, allocations: 1.59 MB / 0.7163 GB, free: 7.367 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00546/0.7905, allocations: 2.248 MB / 0.7185 GB, free: 5.266 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1043/0.8948, allocations: 33.19 MB / 0.751 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00358/0.8984, allocations: 2.608 MB / 0.7535 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003532/0.8988, allocations: 158.7 kB / 0.7536 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001404/0.9002, allocations: 0.6884 MB / 0.7543 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007201/0.901, allocations: 0.5485 MB / 0.7549 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 7.499e-05/0.901, allocations: 32 kB / 0.7549 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.08022/0.9813, allocations: 41.41 MB / 0.7953 GB, free: 6.422 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000487/0.9818, allocations: 143.5 kB / 0.7955 GB, free: 6.281 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000778/0.9826, allocations: 390.3 kB / 0.7958 GB, free: 5.898 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.3654/1.348, allocations: 18.2 MB / 0.8136 GB, free: 45.32 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/1.348, allocations: 0 / 0.8136 GB, free: 45.32 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.473e-06/1.348, allocations: 0 / 0.8136 GB, free: 45.32 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.085e-05/1.348, allocations: 0 / 0.8136 GB, free: 45.32 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.361, allocations: 3.345 MB / 0.8169 GB, free: 43.68 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/1.361, allocations: 9.938 kB / 0.8169 GB, free: 43.68 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/1.361, allocations: 106.9 kB / 0.817 GB, free: 43.64 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000798/1.362, allocations: 117.7 kB / 0.8171 GB, free: 43.6 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004685/1.362, allocations: 410.6 kB / 0.8175 GB, free: 43.36 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.517e-05/1.362, allocations: 38.59 kB / 0.8175 GB, free: 43.36 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.917e-05/1.362, allocations: 48.84 kB / 0.8176 GB, free: 43.36 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/1.364, allocations: 0.8215 MB / 0.8184 GB, free: 43.25 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/1.364, allocations: 3.094 kB / 0.8184 GB, free: 43.25 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.115e-05/1.364, allocations: 23.16 kB / 0.8184 GB, free: 43.25 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.708e-05/1.364, allocations: 24.02 kB / 0.8184 GB, free: 43.25 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001657/1.366, allocations: 0.7525 MB / 0.8192 GB, free: 43.25 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002815/1.369, allocations: 3.426 MB / 0.8225 GB, free: 41.01 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/1.37, allocations: 0.6781 MB / 0.8232 GB, free: 40.98 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000696/1.371, allocations: 484.2 kB / 0.8236 GB, free: 40.98 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3313/1.702, allocations: 185.3 MB / 1.005 GB, free: 11.99 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.615e-05/1.702, allocations: 39.31 kB / 1.005 GB, free: 11.95 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 2.735e-06/1.702, allocations: 0 / 1.005 GB, free: 11.95 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.00881/1.711, allocations: 3.415 MB / 1.008 GB, free: 9.355 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/1.711, allocations: 59.97 kB / 1.008 GB, free: 9.285 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003219/1.711, allocations: 312 kB / 1.008 GB, free: 9.027 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 4.762e-05/1.711, allocations: 32.45 kB / 1.008 GB, free: 8.996 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.000125/1.712, allocations: 239.6 kB / 1.009 GB, free: 8.801 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.000168/1.712, allocations: 376.9 kB / 1.009 GB, free: 8.48 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/1.712, allocations: 138.1 kB / 1.009 GB, free: 8.391 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001257/1.712, allocations: 365.7 kB / 1.009 GB, free: 8.051 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006118/1.713, allocations: 394.4 kB / 1.01 GB, free: 7.816 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007077/1.713, allocations: 0.5335 MB / 1.01 GB, free: 7.41 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/1.715, allocations: 0.9818 MB / 1.011 GB, free: 6.766 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/1.715, allocations: 4 kB / 1.011 GB, free: 6.762 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001893/1.717, allocations: 1.127 MB / 1.012 GB, free: 6 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/1.717, allocations: 8.531 kB / 1.012 GB, free: 5.992 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/1.717, allocations: 4 kB / 1.012 GB, free: 5.988 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003925/1.717, allocations: 107.4 kB / 1.013 GB, free: 5.898 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009896/1.718, allocations: 197.9 kB / 1.013 GB, free: 5.719 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5206/2.239, allocations: 46.38 MB / 1.058 GB, free: 183.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008437/2.24, allocations: 70.77 kB / 1.058 GB, free: 183.9 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-05/2.24, allocations: 25.98 kB / 1.058 GB, free: 183.9 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.000438/2.24, allocations: 224.4 kB / 1.058 GB, free: 183.8 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001936/2.24, allocations: 57.56 kB / 1.058 GB, free: 183.8 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002965/2.243, allocations: 2.39 MB / 1.061 GB, free: 183.5 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.941e-05/2.243, allocations: 26.34 kB / 1.061 GB, free: 183.5 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/2.243, allocations: 0 / 1.061 GB, free: 183.5 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001945/2.245, allocations: 1.652 MB / 1.062 GB, free: 183 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003201/2.249, allocations: 2.458 MB / 1.065 GB, free: 182.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.894e-06/2.249, allocations: 8.359 kB / 1.065 GB, free: 182.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004783/2.249, allocations: 115.9 kB / 1.065 GB, free: 182.6 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005227/2.25, allocations: 212.6 kB / 1.065 GB, free: 182.6 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/2.25, allocations: 18.05 kB / 1.065 GB, free: 182.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001808/2.251, allocations: 3.781 MB / 1.069 GB, free: 179.1 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/2.252, allocations: 2.766 kB / 1.069 GB, free: 179.1 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/2.254, allocations: 1.974 MB / 1.071 GB, free: 178.8 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002132/2.254, allocations: 135.3 kB / 1.071 GB, free: 178.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.111e-05/2.254, allocations: 12.39 kB / 1.071 GB, free: 178.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000474/2.255, allocations: 58.95 kB / 1.071 GB, free: 178.7 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/2.255, allocations: 63.02 kB / 1.071 GB, free: 178.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.111e-05/2.255, allocations: 29.27 kB / 1.071 GB, free: 178.7 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002808/2.255, allocations: 255.2 kB / 1.071 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.1e-07/2.255, allocations: 0 / 1.071 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01755/2.273, allocations: 4.819 MB / 1.076 GB, free: 178.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.03685/2.31, allocations: 8.228 MB / 1.084 GB, free: 175 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003165/2.313, allocations: 1.527 MB / 1.085 GB, free: 174 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/2.313, allocations: 0 / 1.085 GB, free: 174 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001253/2.314, allocations: 0.8173 MB / 1.086 GB, free: 173.5 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002616/2.317, allocations: 0.5164 MB / 1.087 GB, free: 173.1 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02082/2.338, allocations: 8.65 MB / 1.095 GB, free: 166.6 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003659/2.338, allocations: 0.9324 MB / 1.096 GB, free: 165.8 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0006741/2.339, allocations: 187 kB / 1.096 GB, free: 165.6 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003026/2.339, allocations: 249.5 kB / 1.097 GB, free: 165.6 MB / 0.6856 GB Notification: Performance of SimCode: time 9.11e-07/2.339, allocations: 4 kB / 1.097 GB, free: 165.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4361/2.775, allocations: 194.6 MB / 1.287 GB, free: 254.2 MB / 0.6856 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001556/2.776, allocations: 235.6 kB / 1.287 GB, free: 253.9 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.934/11.71, allocations: 0 / 1.287 GB, free: 253.9 MB / 0.6856 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1)