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.00137/0.00137, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001158/0.001158, allocations: 192.7 kB / 16.13 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.308/1.308, allocations: 205.1 MB / 222 MB, free: 4.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04371/0.04371, allocations: 9.082 MB / 278.4 MB, free: 12.41 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.001292/0.001293, allocations: 67.84 kB / 337.4 MB, free: 25.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06634/0.06764, allocations: 48.16 MB / 385.6 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.2465/0.3141, allocations: 130.4 MB / 0.5039 GB, free: 4.055 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2697/0.5838, allocations: 112.8 MB / 0.6141 GB, free: 1.141 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004277/0.5843, allocations: 6.688 kB / 0.6141 GB, free: 1.141 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002332/0.5866, allocations: 1.176 MB / 0.6152 GB, free: 1.137 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002444/0.5891, allocations: 1.468 MB / 0.6167 GB, free: 1.125 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05382/0.6429, allocations: 24.93 MB / 0.641 GB, free: 15.99 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001642/0.6446, allocations: 1.821 MB / 0.6428 GB, free: 15.68 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.6448, allocations: 103.1 kB / 0.6429 GB, free: 15.66 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01182/0.6566, allocations: 8.393 MB / 0.6511 GB, free: 12.87 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003956/0.657, allocations: 387.2 kB / 0.6514 GB, free: 12.74 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.598e-05/0.6571, allocations: 23.62 kB / 0.6515 GB, free: 12.74 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04641/0.7035, allocations: 31.06 MB / 0.6818 GB, free: 8.016 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001975/0.7037, allocations: 97.33 kB / 0.6819 GB, free: 7.949 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004957/0.7042, allocations: 294.5 kB / 0.6822 GB, free: 7.727 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03286/0.7371, allocations: 13.64 MB / 0.6955 GB, free: 12.16 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.7371, allocations: 0 / 0.6955 GB, free: 12.16 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.7372, allocations: 0 / 0.6955 GB, free: 12.16 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.7372, allocations: 0 / 0.6955 GB, free: 12.16 MB / 494.1 MB 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.005357/0.7425, allocations: 2.57 MB / 0.698 GB, free: 9.539 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.7426, allocations: 12.03 kB / 0.698 GB, free: 9.527 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.985e-05/0.7427, allocations: 78.52 kB / 0.6981 GB, free: 9.441 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005579/0.7432, allocations: 91.33 kB / 0.6982 GB, free: 9.352 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.7436, allocations: 347 kB / 0.6985 GB, free: 8.984 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.517e-05/0.7436, allocations: 28.66 kB / 0.6985 GB, free: 8.957 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.68e-05/0.7437, allocations: 35.25 kB / 0.6986 GB, free: 8.926 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.7449, allocations: 0.6002 MB / 0.6991 GB, free: 8.312 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.7449, allocations: 3.906 kB / 0.6992 GB, free: 8.309 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.9e-05/0.745, allocations: 15.94 kB / 0.6992 GB, free: 8.293 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.745, allocations: 22.12 kB / 0.6992 GB, free: 8.273 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.7462, allocations: 0.5481 MB / 0.6997 GB, free: 7.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002131/0.7484, allocations: 2.538 MB / 0.7022 GB, free: 4.969 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.7494, allocations: 0.5043 MB / 0.7027 GB, free: 4.457 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004832/0.7499, allocations: 334.3 kB / 0.703 GB, free: 4.125 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3452/1.095, allocations: 139 MB / 0.8387 GB, free: 253.9 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/1.095, allocations: 38.81 kB / 0.8388 GB, free: 253.9 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 2.114e-06/1.095, allocations: 0 / 0.8388 GB, free: 253.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.00476/1.1, allocations: 2.334 MB / 0.841 GB, free: 252.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.634e-05/1.1, allocations: 55.19 kB / 0.8411 GB, free: 252.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/1.1, allocations: 253.4 kB / 0.8413 GB, free: 252.3 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/1.1, allocations: 33.67 kB / 0.8414 GB, free: 252.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.798e-05/1.1, allocations: 186.1 kB / 0.8416 GB, free: 252.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.251e-05/1.1, allocations: 272.7 kB / 0.8418 GB, free: 251.9 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.871e-05/1.1, allocations: 97.48 kB / 0.8419 GB, free: 251.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.89e-05/1.101, allocations: 350.7 kB / 0.8422 GB, free: 251.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000396/1.101, allocations: 270.3 kB / 0.8425 GB, free: 251.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000423/1.101, allocations: 395.6 kB / 0.8429 GB, free: 251.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008206/1.102, allocations: 0.7025 MB / 0.8436 GB, free: 250.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/1.102, allocations: 0 / 0.8436 GB, free: 250.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001126/1.103, allocations: 0.7927 MB / 0.8443 GB, free: 250.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/1.103, allocations: 10.56 kB / 0.8443 GB, free: 250.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/1.103, allocations: 6.156 kB / 0.8444 GB, free: 250.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002064/1.104, allocations: 63.72 kB / 0.8444 GB, free: 250.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003479/1.104, allocations: 97.56 kB / 0.8445 GB, free: 250.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08374/1.188, allocations: 22.63 MB / 0.8666 GB, free: 228.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004356/1.188, allocations: 55.86 kB / 0.8667 GB, free: 228.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/1.188, allocations: 16 kB / 0.8667 GB, free: 228.9 MB / 0.5762 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.0002075/1.188, allocations: 193.1 kB / 0.8669 GB, free: 228.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.491e-05/1.188, allocations: 51.36 kB / 0.8669 GB, free: 228.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001425/1.19, allocations: 1.549 MB / 0.8684 GB, free: 227 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/1.19, allocations: 12.8 kB / 0.8684 GB, free: 227 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/1.19, allocations: 4 kB / 0.8684 GB, free: 227 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001012/1.191, allocations: 1.133 MB / 0.8695 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001599/1.193, allocations: 1.599 MB / 0.8711 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/1.193, allocations: 4 kB / 0.8711 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002945/1.193, allocations: 71.94 kB / 0.8712 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001796/1.193, allocations: 56.72 kB / 0.8712 GB, free: 224 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/1.193, allocations: 7.984 kB / 0.8712 GB, free: 224 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006029/1.194, allocations: 1.319 MB / 0.8725 GB, free: 222.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/1.194, allocations: 7.922 kB / 0.8725 GB, free: 222.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/1.195, allocations: 1.171 MB / 0.8737 GB, free: 221.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.255e-05/1.195, allocations: 116.7 kB / 0.8738 GB, free: 221.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.012e-05/1.195, allocations: 17.16 kB / 0.8738 GB, free: 221.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003057/1.196, allocations: 36.03 kB / 0.8738 GB, free: 221.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.509e-05/1.196, allocations: 39.94 kB / 0.8739 GB, free: 221.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/1.196, allocations: 19.98 kB / 0.8739 GB, free: 221.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001629/1.196, allocations: 250.9 kB / 0.8741 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.01e-07/1.196, allocations: 0 / 0.8741 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005721/1.202, allocations: 3.186 MB / 0.8772 GB, free: 218.1 MB / 0.5762 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.01223/1.214, allocations: 5.73 MB / 0.8828 GB, free: 212.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001313/1.215, allocations: 0.9498 MB / 0.8838 GB, free: 211.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/1.215, allocations: 0 / 0.8838 GB, free: 211.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006405/1.216, allocations: 0.492 MB / 0.8842 GB, free: 211.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001557/1.217, allocations: 395.2 kB / 0.8846 GB, free: 210.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008102/1.225, allocations: 6.336 MB / 0.8908 GB, free: 204.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/1.226, allocations: 0.8488 MB / 0.8916 GB, free: 203.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004216/1.226, allocations: 165.8 kB / 0.8918 GB, free: 203.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002272/1.226, allocations: 171.4 kB / 0.892 GB, free: 203.2 MB / 0.5762 GB Notification: Performance of SimCode: time 4.81e-07/1.226, allocations: 0 / 0.892 GB, free: 203.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.097/2.323, allocations: 123.8 MB / 1.013 GB, free: 79.17 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/2.323, allocations: 242.3 kB / 1.013 GB, free: 78.91 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.038/8.361, allocations: 0 / 1.013 GB, free: 78.91 MB / 0.5762 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)