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.0008745/0.0008746, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.0008766/0.0008766, allocations: 168.7 kB / 15.95 MB, free: 204 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.19/1.19, allocations: 205.4 MB / 222.1 MB, free: 5.625 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04149/0.04149, allocations: 9.076 MB / 279.5 MB, free: 12.23 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.0004618/0.0004618, allocations: 12 kB / 339.2 MB, free: 25.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07203/0.0725, allocations: 49.18 MB / 388.4 MB, free: 8.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.2544/0.327, allocations: 119.8 MB / 0.4963 GB, free: 340 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2786/0.6056, allocations: 103.8 MB / 0.5977 GB, free: 10.49 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004989/0.6061, allocations: 6.812 kB / 0.5977 GB, free: 10.49 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002321/0.6084, allocations: 1.076 MB / 0.5988 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002689/0.6111, allocations: 1.325 MB / 0.6001 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.04964/0.6608, allocations: 22.45 MB / 0.622 GB, free: 10.1 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001665/0.6625, allocations: 1.575 MB / 0.6235 GB, free: 10.1 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.6627, allocations: 85.17 kB / 0.6236 GB, free: 10.09 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01324/0.6759, allocations: 8.814 MB / 0.6322 GB, free: 8.914 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003949/0.6763, allocations: 361.9 kB / 0.6326 GB, free: 8.785 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.78e-05/0.6764, allocations: 18.97 kB / 0.6326 GB, free: 8.785 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04435/0.7207, allocations: 27.58 MB / 0.6595 GB, free: 12.57 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002111/0.721, allocations: 93.03 kB / 0.6596 GB, free: 12.51 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003002/0.7213, allocations: 147.1 kB / 0.6598 GB, free: 12.4 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01612/0.7374, allocations: 8.565 MB / 0.6681 GB, free: 5.566 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.7375, allocations: 3.938 kB / 0.6681 GB, free: 5.562 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.7375, allocations: 0 / 0.6681 GB, free: 5.562 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.7375, allocations: 0 / 0.6681 GB, free: 5.562 MB / 462.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.005415/0.7429, allocations: 2.49 MB / 0.6706 GB, free: 3.121 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.743, allocations: 12.02 kB / 0.6706 GB, free: 3.109 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.749e-05/0.743, allocations: 85.16 kB / 0.6707 GB, free: 3.043 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000537/0.7436, allocations: 84.17 kB / 0.6707 GB, free: 2.961 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.744, allocations: 330.9 kB / 0.671 GB, free: 2.648 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/0.744, allocations: 32.31 kB / 0.6711 GB, free: 2.633 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.7441, allocations: 39.75 kB / 0.6711 GB, free: 2.605 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.7452, allocations: 0.6132 MB / 0.6717 GB, free: 2.156 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.7453, allocations: 0 / 0.6717 GB, free: 2.156 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.435e-05/0.7453, allocations: 17.22 kB / 0.6717 GB, free: 2.152 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.822e-05/0.7453, allocations: 18.92 kB / 0.6717 GB, free: 2.141 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/0.7465, allocations: 0.5787 MB / 0.6723 GB, free: 1.727 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.7487, allocations: 2.541 MB / 0.6748 GB, free: 15.36 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.7497, allocations: 0.5229 MB / 0.6753 GB, free: 15.01 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004703/0.7502, allocations: 343.9 kB / 0.6756 GB, free: 14.82 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3464/1.097, allocations: 135.8 MB / 0.8083 GB, free: 278.2 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/1.097, allocations: 36.38 kB / 0.8083 GB, free: 278.2 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 2.675e-06/1.097, allocations: 0.5312 kB / 0.8083 GB, free: 278.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.005282/1.102, allocations: 2.398 MB / 0.8106 GB, free: 277.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.109e-05/1.102, allocations: 55.53 kB / 0.8107 GB, free: 277.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002209/1.102, allocations: 248 kB / 0.8109 GB, free: 277.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/1.102, allocations: 32.86 kB / 0.811 GB, free: 277.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.666e-05/1.102, allocations: 188.3 kB / 0.8111 GB, free: 277.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/1.102, allocations: 269.6 kB / 0.8114 GB, free: 277.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.766e-05/1.102, allocations: 10.12 kB / 0.8114 GB, free: 277.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.402e-05/1.103, allocations: 358.2 kB / 0.8117 GB, free: 276.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004322/1.103, allocations: 283.8 kB / 0.812 GB, free: 276.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004666/1.103, allocations: 405.6 kB / 0.8124 GB, free: 276.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004922/1.104, allocations: 331.5 kB / 0.8127 GB, free: 276.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/1.104, allocations: 1.312 kB / 0.8127 GB, free: 276.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001246/1.105, allocations: 0.8143 MB / 0.8135 GB, free: 276.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/1.105, allocations: 5.375 kB / 0.8135 GB, free: 276.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/1.105, allocations: 3.656 kB / 0.8135 GB, free: 276.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002185/1.105, allocations: 65.39 kB / 0.8136 GB, free: 276.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000378/1.106, allocations: 105.3 kB / 0.8137 GB, free: 276.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07679/1.183, allocations: 22.59 MB / 0.8357 GB, free: 261.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004593/1.183, allocations: 51.95 kB / 0.8358 GB, free: 261.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.803e-05/1.183, allocations: 20 kB / 0.8358 GB, free: 261.2 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.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.000215/1.183, allocations: 181.7 kB / 0.836 GB, free: 261 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.159e-05/1.183, allocations: 47.39 kB / 0.836 GB, free: 260.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/1.185, allocations: 1.586 MB / 0.8376 GB, free: 259.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-05/1.185, allocations: 11.42 kB / 0.8376 GB, free: 259.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/1.185, allocations: 0 / 0.8376 GB, free: 259.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00105/1.186, allocations: 1.166 MB / 0.8387 GB, free: 258 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/1.188, allocations: 1.624 MB / 0.8403 GB, free: 256.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/1.188, allocations: 0 / 0.8403 GB, free: 256.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002952/1.188, allocations: 83.97 kB / 0.8404 GB, free: 256.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000201/1.188, allocations: 52.73 kB / 0.8404 GB, free: 256.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.122e-05/1.188, allocations: 11.95 kB / 0.8405 GB, free: 256.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006367/1.189, allocations: 1.331 MB / 0.8418 GB, free: 254.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/1.189, allocations: 0 / 0.8418 GB, free: 254.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/1.19, allocations: 1.221 MB / 0.843 GB, free: 253.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.68e-05/1.19, allocations: 144.4 kB / 0.8431 GB, free: 253.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.997e-05/1.19, allocations: 11.95 kB / 0.8431 GB, free: 253.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003102/1.191, allocations: 47.97 kB / 0.8431 GB, free: 253.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.289e-05/1.191, allocations: 43.92 kB / 0.8432 GB, free: 253.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.359e-05/1.191, allocations: 16.98 kB / 0.8432 GB, free: 253.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001751/1.191, allocations: 243 kB / 0.8434 GB, free: 253 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.191, allocations: 0 / 0.8434 GB, free: 253 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006317/1.197, allocations: 3.184 MB / 0.8465 GB, free: 250.2 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 (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.01372/1.211, allocations: 5.747 MB / 0.8522 GB, free: 244.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001327/1.213, allocations: 0.9611 MB / 0.8531 GB, free: 243.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/1.213, allocations: 4 kB / 0.8531 GB, free: 243.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005703/1.213, allocations: 499.2 kB / 0.8536 GB, free: 243.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/1.215, allocations: 326.4 kB / 0.8539 GB, free: 243.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006886/1.221, allocations: 4.346 MB / 0.8581 GB, free: 238.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002081/1.222, allocations: 0.8525 MB / 0.859 GB, free: 237.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003946/1.222, allocations: 163.9 kB / 0.8591 GB, free: 237.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/1.222, allocations: 167.4 kB / 0.8593 GB, free: 237.5 MB / 0.5762 GB Notification: Performance of SimCode: time 5.41e-07/1.222, allocations: 0 / 0.8593 GB, free: 237.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1372/1.359, allocations: 122.8 MB / 0.9792 GB, free: 114.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001498/1.36, allocations: 229.1 kB / 0.9795 GB, free: 114.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.413/6.773, allocations: 0 / 0.9795 GB, free: 114.2 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/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: