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.0009247/0.0009248, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005804/0.005804, allocations: 169 kB / 16.26 MB, free: 6.652 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.334/1.334, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04398/0.04398, allocations: 9.067 MB / 279.8 MB, free: 12.14 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.0004911/0.0004912, allocations: 16.56 kB / 339.8 MB, free: 25.54 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08713/0.08763, allocations: 49.19 MB / 389 MB, free: 8.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.3598/0.4475, allocations: 198 MB / 0.5732 GB, free: 1.559 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3699/0.8175, allocations: 144.2 MB / 0.7141 GB, free: 11.55 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008775/0.8184, allocations: 6.719 kB / 0.7141 GB, free: 11.55 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003795/0.8222, allocations: 1.578 MB / 0.7156 GB, free: 10.48 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005315/0.8275, allocations: 2.254 MB / 0.7178 GB, free: 8.258 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.09549/0.923, allocations: 33.26 MB / 0.7503 GB, free: 6.906 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003045/0.9261, allocations: 2.599 MB / 0.7529 GB, free: 4.297 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000305/0.9264, allocations: 163.8 kB / 0.753 GB, free: 4.125 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001189/0.9276, allocations: 0.6923 MB / 0.7537 GB, free: 3.43 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006489/0.9282, allocations: 0.5368 MB / 0.7542 GB, free: 2.891 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.705e-05/0.9283, allocations: 28 kB / 0.7542 GB, free: 2.863 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3326/1.261, allocations: 41.4 MB / 0.7947 GB, free: 32.32 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003377/1.261, allocations: 130.2 kB / 0.7948 GB, free: 32.32 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007638/1.262, allocations: 422 kB / 0.7952 GB, free: 32.29 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.05299/1.315, allocations: 18.14 MB / 0.8129 GB, free: 32.14 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/1.315, allocations: 0 / 0.8129 GB, free: 32.14 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.325e-06/1.315, allocations: 0 / 0.8129 GB, free: 32.14 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.548e-06/1.315, allocations: 0 / 0.8129 GB, free: 32.14 MB / 0.5137 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.008964/1.324, allocations: 3.23 MB / 0.8161 GB, free: 30.4 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/1.324, allocations: 12.97 kB / 0.8161 GB, free: 30.4 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001169/1.324, allocations: 104.2 kB / 0.8162 GB, free: 30.36 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007827/1.325, allocations: 120.1 kB / 0.8163 GB, free: 30.33 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004886/1.326, allocations: 405.5 kB / 0.8167 GB, free: 30.08 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.864e-05/1.326, allocations: 43.28 kB / 0.8167 GB, free: 30.08 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.432e-05/1.326, allocations: 48.28 kB / 0.8168 GB, free: 30.08 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/1.327, allocations: 0.8369 MB / 0.8176 GB, free: 29.97 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/1.327, allocations: 0 / 0.8176 GB, free: 29.97 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.202e-05/1.327, allocations: 23.12 kB / 0.8176 GB, free: 29.97 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.034e-05/1.328, allocations: 24.34 kB / 0.8176 GB, free: 29.97 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001652/1.329, allocations: 0.784 MB / 0.8184 GB, free: 29.97 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00276/1.332, allocations: 3.435 MB / 0.8217 GB, free: 27.74 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/1.333, allocations: 0.6977 MB / 0.8224 GB, free: 27.71 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006777/1.334, allocations: 499.5 kB / 0.8229 GB, free: 27.7 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2992/1.633, allocations: 181.1 MB / 0.9998 GB, free: 6.242 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.974e-05/1.633, allocations: 38.88 kB / 0.9998 GB, free: 6.199 MB / 0.67 GB Notification: Performance of pre-optimization done (n=109): time 3.346e-06/1.633, allocations: 0 / 0.9998 GB, free: 6.199 MB / 0.67 GB Notification: Performance of matching and sorting (n=117): time 0.008969/1.642, allocations: 3.536 MB / 1.003 GB, free: 3.488 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/1.642, allocations: 55.97 kB / 1.003 GB, free: 3.422 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003195/1.643, allocations: 311 kB / 1.004 GB, free: 3.164 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/1.643, allocations: 32.64 kB / 1.004 GB, free: 3.133 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/1.643, allocations: 229 kB / 1.004 GB, free: 2.941 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/1.643, allocations: 383 kB / 1.004 GB, free: 2.617 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.078e-05/1.643, allocations: 84.67 kB / 1.004 GB, free: 2.559 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001608/1.643, allocations: 373.2 kB / 1.005 GB, free: 2.207 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007068/1.644, allocations: 417 kB / 1.005 GB, free: 1.957 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000779/1.645, allocations: 0.5473 MB / 1.006 GB, free: 1.539 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/1.646, allocations: 1.013 MB / 1.007 GB, free: 0.8633 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/1.646, allocations: 0 / 1.007 GB, free: 0.8633 MB / 0.67 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002033/1.648, allocations: 1.163 MB / 1.008 GB, free: 68 kB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/1.648, allocations: 8 kB / 1.008 GB, free: 60 kB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/1.648, allocations: 4.484 kB / 1.008 GB, free: 56 kB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1653/1.814, allocations: 101 kB / 1.008 GB, free: 386.5 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/1.815, allocations: 216.8 kB / 1.008 GB, free: 386.5 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1864/2.001, allocations: 46.29 MB / 1.053 GB, free: 363.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007129/2.002, allocations: 80.2 kB / 1.053 GB, free: 363.8 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.156e-05/2.002, allocations: 27.69 kB / 1.053 GB, free: 363.7 MB / 0.67 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.0002937/2.003, allocations: 225.6 kB / 1.054 GB, free: 363.6 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.466e-05/2.003, allocations: 58.31 kB / 1.054 GB, free: 363.5 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002553/2.005, allocations: 2.421 MB / 1.056 GB, free: 361.2 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-05/2.005, allocations: 21.41 kB / 1.056 GB, free: 361.2 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/2.005, allocations: 3.422 kB / 1.056 GB, free: 361.2 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001866/2.007, allocations: 1.681 MB / 1.058 GB, free: 359.4 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002829/2.01, allocations: 2.5 MB / 1.06 GB, free: 356.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/2.01, allocations: 0 / 1.06 GB, free: 356.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004583/2.01, allocations: 129.7 kB / 1.06 GB, free: 356.7 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005568/2.011, allocations: 224.7 kB / 1.06 GB, free: 356.5 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/2.011, allocations: 19.98 kB / 1.06 GB, free: 356.5 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001859/2.013, allocations: 3.793 MB / 1.064 GB, free: 352.4 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/2.013, allocations: 0 / 1.064 GB, free: 352.4 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002646/2.016, allocations: 2.023 MB / 1.066 GB, free: 350.3 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/2.016, allocations: 148.2 kB / 1.066 GB, free: 350.2 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.234e-05/2.016, allocations: 16 kB / 1.066 GB, free: 350.2 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004639/2.016, allocations: 71.73 kB / 1.066 GB, free: 350.1 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/2.016, allocations: 68.39 kB / 1.066 GB, free: 350 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.635e-05/2.017, allocations: 19.98 kB / 1.066 GB, free: 350 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0002291/2.017, allocations: 259.1 kB / 1.067 GB, free: 349.8 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.4e-07/2.017, allocations: 0 / 1.067 GB, free: 349.8 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.01294/2.03, allocations: 4.828 MB / 1.071 GB, free: 345.6 MB / 0.67 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.02796/2.058, allocations: 8.257 MB / 1.079 GB, free: 338 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002668/2.06, allocations: 1.56 MB / 1.081 GB, free: 336.4 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/2.06, allocations: 0 / 1.081 GB, free: 336.4 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001028/2.061, allocations: 0.8487 MB / 1.082 GB, free: 335.5 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/2.064, allocations: 0.5101 MB / 1.082 GB, free: 335 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/2.083, allocations: 8.844 MB / 1.091 GB, free: 326 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/2.083, allocations: 0.9295 MB / 1.092 GB, free: 325.1 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0006476/2.084, allocations: 189.6 kB / 1.092 GB, free: 324.9 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000252/2.084, allocations: 251.4 kB / 1.092 GB, free: 324.7 MB / 0.67 GB Notification: Performance of SimCode: time 9.52e-07/2.084, allocations: 0 / 1.092 GB, free: 324.7 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4051/2.489, allocations: 194.5 MB / 1.282 GB, free: 373.5 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/2.489, allocations: 246.8 kB / 1.282 GB, free: 373.2 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.15/10.64, allocations: 3.969 kB / 1.282 GB, free: 373.2 MB / 0.67 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)