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.0008619/0.0008619, 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.0009049/0.0009049, allocations: 177.3 kB / 15.94 MB, free: 228 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.242/1.242, allocations: 205.4 MB / 222.1 MB, free: 5.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04158/0.04158, allocations: 9.042 MB / 279.4 MB, free: 12.16 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.0004687/0.0004687, allocations: 15.94 kB / 339.2 MB, free: 25.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07482/0.0753, allocations: 49.17 MB / 388.4 MB, free: 8.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.3068/0.3822, allocations: 163.7 MB / 0.5391 GB, free: 3.277 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.3259/0.7081, allocations: 114.3 MB / 0.6507 GB, free: 10.79 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000781/0.709, allocations: 8.938 kB / 0.6507 GB, free: 10.79 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003595/0.7126, allocations: 1.521 MB / 0.6522 GB, free: 10.78 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005711/0.7183, allocations: 1.995 MB / 0.6542 GB, free: 10.77 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07977/0.7981, allocations: 29.91 MB / 0.6834 GB, free: 5.441 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002797/0.8009, allocations: 1.096 MB / 0.6845 GB, free: 5.328 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000356/0.8013, allocations: 147.5 kB / 0.6846 GB, free: 5.27 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001666/0.803, allocations: 0.76 MB / 0.6853 GB, free: 5.184 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005495/0.8036, allocations: 362.6 kB / 0.6857 GB, free: 4.988 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.742e-05/0.8036, allocations: 28 kB / 0.6857 GB, free: 4.961 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06321/0.8668, allocations: 33.41 MB / 0.7183 GB, free: 12.74 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003624/0.8672, allocations: 129.2 kB / 0.7185 GB, free: 12.67 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004957/0.8678, allocations: 191.5 kB / 0.7186 GB, free: 12.55 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0204/0.8882, allocations: 8.606 MB / 0.7271 GB, free: 5.762 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.8882, allocations: 0 / 0.7271 GB, free: 5.762 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.8882, allocations: 0 / 0.7271 GB, free: 5.762 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.8882, allocations: 0 / 0.7271 GB, free: 5.762 MB / 478.1 MB 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.006122/0.8944, allocations: 2.585 MB / 0.7296 GB, free: 3.242 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.8944, allocations: 12.03 kB / 0.7296 GB, free: 3.23 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001107/0.8945, allocations: 107.6 kB / 0.7297 GB, free: 3.152 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007212/0.8953, allocations: 124.4 kB / 0.7298 GB, free: 3.035 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000516/0.8958, allocations: 392.8 kB / 0.7302 GB, free: 2.691 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.449e-05/0.8958, allocations: 41.88 kB / 0.7302 GB, free: 2.668 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.393e-05/0.8959, allocations: 45.38 kB / 0.7303 GB, free: 2.641 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.8975, allocations: 0.8308 MB / 0.7311 GB, free: 2.051 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.8976, allocations: 4 kB / 0.7311 GB, free: 2.047 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.967e-05/0.8976, allocations: 18.86 kB / 0.7311 GB, free: 2.043 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.75e-05/0.8976, allocations: 25.73 kB / 0.7311 GB, free: 2.027 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/0.8993, allocations: 0.788 MB / 0.7319 GB, free: 1.473 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003158/0.9025, allocations: 3.435 MB / 0.7352 GB, free: 14.33 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001365/0.9038, allocations: 0.6953 MB / 0.7359 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5157/1.42, allocations: 181.6 MB / 0.9133 GB, free: 24.3 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.312e-05/1.42, allocations: 36.38 kB / 0.9133 GB, free: 24.27 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=109): time 4.428e-06/1.42, allocations: 0 / 0.9133 GB, free: 24.27 MB / 0.5762 GB Notification: Performance of matching and sorting (n=117): time 0.00897/1.429, allocations: 3.925 MB / 0.9171 GB, free: 23.34 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.884e-05/1.429, allocations: 59.59 kB / 0.9172 GB, free: 23.27 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003221/1.429, allocations: 308 kB / 0.9175 GB, free: 23.16 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.668e-05/1.429, allocations: 34.3 kB / 0.9175 GB, free: 23.12 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000117/1.429, allocations: 228.3 kB / 0.9177 GB, free: 22.98 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002041/1.43, allocations: 386.5 kB / 0.9181 GB, free: 22.73 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.711e-05/1.43, allocations: 11.59 kB / 0.9181 GB, free: 22.73 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001452/1.43, allocations: 367.2 kB / 0.9185 GB, free: 22.41 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006294/1.43, allocations: 411 kB / 0.9188 GB, free: 22.41 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006673/1.431, allocations: 0.5449 MB / 0.9194 GB, free: 22.27 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006943/1.432, allocations: 479.6 kB / 0.9198 GB, free: 22.25 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/1.432, allocations: 0 / 0.9198 GB, free: 22.25 MB / 0.5762 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001811/1.434, allocations: 1.159 MB / 0.921 GB, free: 22.11 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/1.434, allocations: 8.219 kB / 0.921 GB, free: 22.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/1.434, allocations: 2.125 kB / 0.921 GB, free: 22.11 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003655/1.434, allocations: 108.1 kB / 0.9211 GB, free: 22.09 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009256/1.435, allocations: 217.6 kB / 0.9213 GB, free: 22.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1982/1.633, allocations: 46.22 MB / 0.9664 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000704/1.634, allocations: 80.66 kB / 0.9665 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.707e-05/1.634, allocations: 26.38 kB / 0.9665 GB, free: 9.379 MB / 0.6075 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 (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,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.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 initialization (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003738/1.634, allocations: 218.1 kB / 0.9667 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.595e-05/1.634, allocations: 55.34 kB / 0.9668 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002956/1.637, allocations: 2.431 MB / 0.9692 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.443e-05/1.637, allocations: 22.84 kB / 0.9692 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/1.637, allocations: 1.594 kB / 0.9692 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002109/1.639, allocations: 1.681 MB / 0.9708 GB, free: 6.207 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003292/1.643, allocations: 2.496 MB / 0.9733 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/1.643, allocations: 0 / 0.9733 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004899/1.643, allocations: 128.3 kB / 0.9734 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005829/1.644, allocations: 227.8 kB / 0.9736 GB, free: 4.195 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.544e-05/1.644, allocations: 17.05 kB / 0.9736 GB, free: 4.188 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002516/1.646, allocations: 3.803 MB / 0.9773 GB, free: 304 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/1.646, allocations: 4.062 kB / 0.9773 GB, free: 300 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002917/1.649, allocations: 2.02 MB / 0.9793 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/1.65, allocations: 156.2 kB / 0.9795 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.748e-05/1.65, allocations: 12.69 kB / 0.9795 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004577/1.65, allocations: 72.84 kB / 0.9795 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/1.65, allocations: 59.89 kB / 0.9796 GB, free: 14.64 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-05/1.65, allocations: 23.92 kB / 0.9796 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002651/1.651, allocations: 255 kB / 0.9799 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.51e-07/1.651, allocations: 0 / 0.9799 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.01231/1.663, allocations: 4.812 MB / 0.9846 GB, free: 10.02 MB / 0.6231 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02778/1.691, allocations: 8.269 MB / 0.9926 GB, free: 3.164 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003044/1.694, allocations: 1.544 MB / 0.9941 GB, free: 1.992 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/1.694, allocations: 8 kB / 0.9942 GB, free: 1.984 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001223/1.695, allocations: 0.8396 MB / 0.995 GB, free: 1.371 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00223/1.697, allocations: 456.5 kB / 0.9954 GB, free: 0.9883 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1703/1.868, allocations: 8.497 MB / 1.004 GB, free: 330.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/1.868, allocations: 0.9467 MB / 1.005 GB, free: 329.7 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0006524/1.869, allocations: 186.7 kB / 1.005 GB, free: 329.7 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002768/1.869, allocations: 249.2 kB / 1.005 GB, free: 329.7 MB / 0.6231 GB Notification: Performance of SimCode: time 1.122e-06/1.869, allocations: 0 / 1.005 GB, free: 329.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2261/2.095, allocations: 194.1 MB / 1.195 GB, free: 159.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001484/2.095, allocations: 232.9 kB / 1.195 GB, free: 158.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.276/10.37, allocations: 0 / 1.195 GB, free: 158.9 MB / 0.6231 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/linux/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) Environment - environmentSimulation: