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.001076/0.001076, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009541/0.0009541, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.215/1.215, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0408/0.0408, allocations: 9.058 MB / 279.4 MB, free: 12.26 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.0004818/0.0004818, allocations: 19.94 kB / 339.2 MB, free: 25.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0716/0.0721, allocations: 49.18 MB / 388.4 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.2369/0.309, allocations: 106.6 MB / 494.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.07494/0.384, allocations: 88.46 MB / 0.5697 GB, free: 3.906 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005256/0.3846, allocations: 11.94 kB / 0.5697 GB, free: 3.895 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002699/0.3873, allocations: 1.129 MB / 0.5708 GB, free: 2.762 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002837/0.3902, allocations: 1.293 MB / 0.5721 GB, free: 1.465 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2466/0.6368, allocations: 22.45 MB / 0.594 GB, free: 16.41 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001415/0.6382, allocations: 0.7833 MB / 0.5948 GB, free: 16.4 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.6384, allocations: 85.88 kB / 0.5949 GB, free: 16.39 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0163/0.6548, allocations: 8.953 MB / 0.6036 GB, free: 16.25 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004343/0.6552, allocations: 263.3 kB / 0.6039 GB, free: 16.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.63e-05/0.6553, allocations: 22.94 kB / 0.6039 GB, free: 16.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04194/0.6972, allocations: 25.06 MB / 0.6284 GB, free: 16.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002072/0.6975, allocations: 93.8 kB / 0.6284 GB, free: 16.21 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003192/0.6978, allocations: 146 kB / 0.6286 GB, free: 16.18 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01258/0.7104, allocations: 6.453 MB / 0.6349 GB, free: 14.61 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.7104, allocations: 0 / 0.6349 GB, free: 14.61 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.7104, allocations: 0 / 0.6349 GB, free: 14.61 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.7104, allocations: 0 / 0.6349 GB, free: 14.61 MB / 446.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.004442/0.7149, allocations: 1.996 MB / 0.6368 GB, free: 13.3 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.7149, allocations: 6.844 kB / 0.6368 GB, free: 13.3 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.366e-05/0.715, allocations: 86.7 kB / 0.6369 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005421/0.7156, allocations: 91.16 kB / 0.637 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003216/0.7159, allocations: 323.1 kB / 0.6373 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/0.7159, allocations: 38.03 kB / 0.6374 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.245e-05/0.716, allocations: 35.16 kB / 0.6374 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.7171, allocations: 0.6054 MB / 0.638 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.7171, allocations: 0 / 0.638 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.594e-05/0.7171, allocations: 15.72 kB / 0.638 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.7171, allocations: 14.02 kB / 0.638 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.7183, allocations: 0.5771 MB / 0.6386 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.7204, allocations: 2.555 MB / 0.6411 GB, free: 26.58 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009404/0.7213, allocations: 0.5113 MB / 0.6416 GB, free: 26.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2193/0.9406, allocations: 136.2 MB / 0.7746 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/0.9407, allocations: 33.34 kB / 0.7746 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.155e-06/0.9407, allocations: 0 / 0.7746 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.005998/0.9467, allocations: 2.711 MB / 0.7773 GB, free: 11.45 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.9468, allocations: 55.41 kB / 0.7773 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.947, allocations: 248.3 kB / 0.7775 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.544e-05/0.9471, allocations: 33.33 kB / 0.7776 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.9472, allocations: 184.4 kB / 0.7777 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.9474, allocations: 266.8 kB / 0.778 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.979e-05/0.9474, allocations: 10.94 kB / 0.778 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.9475, allocations: 349 kB / 0.7783 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004759/0.948, allocations: 284.3 kB / 0.7786 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005291/0.9486, allocations: 402.8 kB / 0.779 GB, free: 9.922 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005206/0.9491, allocations: 333.6 kB / 0.7793 GB, free: 9.73 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.9491, allocations: 4 kB / 0.7793 GB, free: 9.727 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001372/0.9505, allocations: 0.8029 MB / 0.7801 GB, free: 9.172 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.9505, allocations: 4 kB / 0.7801 GB, free: 9.168 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.9505, allocations: 8.828 kB / 0.7801 GB, free: 9.16 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002484/0.9508, allocations: 73.55 kB / 0.7802 GB, free: 9.098 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003974/0.9512, allocations: 101 kB / 0.7803 GB, free: 9.008 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2391/1.19, allocations: 22.56 MB / 0.8023 GB, free: 310.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007742/1.191, allocations: 59.58 kB / 0.8024 GB, free: 310.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.114e-05/1.191, allocations: 22.25 kB / 0.8024 GB, free: 310.7 MB / 0.5919 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.state.phase,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003269/1.192, allocations: 194 kB / 0.8026 GB, free: 310.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/1.192, allocations: 45.72 kB / 0.8026 GB, free: 310.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002733/1.194, allocations: 1.571 MB / 0.8042 GB, free: 310.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/1.194, allocations: 13.94 kB / 0.8042 GB, free: 310.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/1.194, allocations: 0 / 0.8042 GB, free: 310.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00158/1.196, allocations: 1.172 MB / 0.8053 GB, free: 309.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001918/1.198, allocations: 1.607 MB / 0.8069 GB, free: 309.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/1.198, allocations: 2.656 kB / 0.8069 GB, free: 309.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004438/1.198, allocations: 90.66 kB / 0.807 GB, free: 309.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000336/1.199, allocations: 54.02 kB / 0.807 GB, free: 309.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/1.199, allocations: 4 kB / 0.807 GB, free: 309.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001041/1.2, allocations: 1.341 MB / 0.8083 GB, free: 307.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.2, allocations: 0 / 0.8083 GB, free: 307.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00232/1.202, allocations: 1.221 MB / 0.8095 GB, free: 307.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001825/1.202, allocations: 142.6 kB / 0.8097 GB, free: 307.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.605e-05/1.203, allocations: 11.66 kB / 0.8097 GB, free: 307.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006141/1.203, allocations: 46.72 kB / 0.8097 GB, free: 307.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/1.203, allocations: 53.66 kB / 0.8098 GB, free: 307.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.642e-05/1.203, allocations: 11.22 kB / 0.8098 GB, free: 307.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002944/1.204, allocations: 241.9 kB / 0.81 GB, free: 307 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.41e-07/1.204, allocations: 0 / 0.81 GB, free: 307 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01071/1.214, allocations: 3.177 MB / 0.8131 GB, free: 306.8 MB / 0.5919 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02205/1.236, allocations: 5.851 MB / 0.8188 GB, free: 304.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002029/1.239, allocations: 0.9569 MB / 0.8198 GB, free: 304.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/1.239, allocations: 0 / 0.8198 GB, free: 304.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008793/1.239, allocations: 497.8 kB / 0.8202 GB, free: 304 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002027/1.241, allocations: 326 kB / 0.8205 GB, free: 304 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/1.253, allocations: 6.45 MB / 0.8268 GB, free: 298.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/1.254, allocations: 0.8616 MB / 0.8277 GB, free: 297.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005816/1.254, allocations: 166 kB / 0.8278 GB, free: 297.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002391/1.255, allocations: 167.4 kB / 0.828 GB, free: 297.1 MB / 0.5919 GB Notification: Performance of SimCode: time 6.21e-07/1.255, allocations: 7.938 kB / 0.828 GB, free: 297.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1367/1.391, allocations: 122.8 MB / 0.9479 GB, free: 174.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001281/1.391, allocations: 223.8 kB / 0.9481 GB, free: 173.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.482/6.873, allocations: 4 kB / 0.9481 GB, free: 173.9 MB / 0.5919 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/linux/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) Environment - environmentSimulation: