Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesTranscritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesTranscritical",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.005083/0.005083, allocations: 98.64 kB / 15.73 MB, free: 6.047 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.001322/0.001322, allocations: 194.3 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1095/0.1095, allocations: 2.76 MB / 293.3 MB, free: 3.574 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 67.88 kB / 405.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.2212, allocations: 50.24 MB / 455.7 MB, free: 20.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical): time 0.0429/0.2641, allocations: 50.72 MB / 0.4945 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02705/0.2912, allocations: 29.09 MB / 0.5229 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005794/0.2918, allocations: 8 kB / 0.5229 GB, free: 4.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.2935, allocations: 0.6097 MB / 0.5235 GB, free: 4.367 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005942/0.2995, allocations: 2.238 MB / 0.5257 GB, free: 2.113 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.medium1.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.007744/0.3073, allocations: 2.93 MB / 0.5286 GB, free: 15.17 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001332/0.3086, allocations: 0.9248 MB / 0.5295 GB, free: 14.24 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.3087, allocations: 65.67 kB / 0.5295 GB, free: 14.17 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Common/CheckCoolPropOptions.mo:2:1-104:25:writable] Warning: Pure function 'ExternalMedia.Common.CheckCoolPropOptions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFEvalConstants.evaluate: time 0.6749/0.9837, allocations: 51.69 MB / 0.58 GB, free: 11.37 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006254/0.9843, allocations: 294.6 kB / 0.5803 GB, free: 11.08 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.861e-05/0.9844, allocations: 40 kB / 0.5803 GB, free: 11.04 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4071/1.391, allocations: 27.24 MB / 0.6069 GB, free: 64.55 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002352/1.392, allocations: 110.5 kB / 0.607 GB, free: 64.55 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000596/1.392, allocations: 338.9 kB / 0.6074 GB, free: 64.55 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007223/1.4, allocations: 1.862 MB / 0.6092 GB, free: 64.46 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/1.4, allocations: 0 / 0.6092 GB, free: 64.46 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.134e-06/1.4, allocations: 0 / 0.6092 GB, free: 64.46 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.913e-05/1.4, allocations: 8.016 kB / 0.6092 GB, free: 64.46 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.001984/1.402, allocations: 1.126 MB / 0.6103 GB, free: 63.8 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/1.402, allocations: 9.969 kB / 0.6103 GB, free: 63.8 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001319/1.402, allocations: 122 kB / 0.6104 GB, free: 63.76 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002117/1.404, allocations: 0.4958 MB / 0.6109 GB, free: 63.72 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004901/1.409, allocations: 340.5 kB / 0.6112 GB, free: 63.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.014e-05/1.409, allocations: 45.41 kB / 0.6113 GB, free: 63.5 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/1.409, allocations: 57.19 kB / 0.6113 GB, free: 63.49 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00178/1.411, allocations: 0.8695 MB / 0.6122 GB, free: 63.33 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/1.411, allocations: 1.625 kB / 0.6122 GB, free: 63.33 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.132e-05/1.411, allocations: 29.58 kB / 0.6122 GB, free: 63.33 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-05/1.411, allocations: 33.3 kB / 0.6122 GB, free: 63.33 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/1.412, allocations: 0.7052 MB / 0.6129 GB, free: 63.32 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003625/1.416, allocations: 4.963 MB / 0.6178 GB, free: 59.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007652/1.417, allocations: 344.7 kB / 0.6181 GB, free: 59.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003564/1.417, allocations: 226.3 kB / 0.6183 GB, free: 59.16 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00132/1.419, allocations: 1.54 MB / 0.6198 GB, free: 57.96 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/1.419, allocations: 44.92 kB / 0.6199 GB, free: 57.91 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 2.053e-06/1.419, allocations: 0 / 0.6199 GB, free: 57.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001716/1.42, allocations: 0.6255 MB / 0.6205 GB, free: 57.84 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/1.42, allocations: 80.34 kB / 0.6206 GB, free: 57.75 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001765/1.421, allocations: 180.6 kB / 0.6207 GB, free: 57.64 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/1.421, allocations: 29.08 kB / 0.6208 GB, free: 57.61 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/1.421, allocations: 290.1 kB / 0.621 GB, free: 57.39 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/1.421, allocations: 251.9 kB / 0.6213 GB, free: 57.22 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/1.421, allocations: 95.25 kB / 0.6214 GB, free: 57.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.103e-05/1.421, allocations: 343.8 kB / 0.6217 GB, free: 56.89 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002508/1.421, allocations: 120.7 kB / 0.6218 GB, free: 56.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00032/1.422, allocations: 289.8 kB / 0.6221 GB, free: 56.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005936/1.422, allocations: 474.8 kB / 0.6225 GB, free: 56.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/1.422, allocations: 6.312 kB / 0.6225 GB, free: 56.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008248/1.423, allocations: 478.2 kB / 0.623 GB, free: 56.44 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/1.423, allocations: 10.16 kB / 0.623 GB, free: 56.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/1.423, allocations: 8.125 kB / 0.623 GB, free: 56.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.616e-05/1.423, allocations: 7.281 kB / 0.623 GB, free: 56.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002568/1.423, allocations: 70.77 kB / 0.6231 GB, free: 56.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/1.423, allocations: 7.562 kB / 0.6231 GB, free: 56.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000252/1.424, allocations: 61.25 kB / 0.6232 GB, free: 56.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.683e-05/1.424, allocations: 21.34 kB / 0.6232 GB, free: 56.39 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium1.baseProperties.phaseOutput,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002304/1.424, allocations: 194.5 kB / 0.6234 GB, free: 56.27 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.458e-05/1.424, allocations: 39.16 kB / 0.6234 GB, free: 56.25 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.093e-05/1.424, allocations: 28.31 kB / 0.6234 GB, free: 56.24 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/1.424, allocations: 6.406 kB / 0.6234 GB, free: 56.24 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/1.424, allocations: 4.016 kB / 0.6234 GB, free: 56.24 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/1.424, allocations: 0 / 0.6234 GB, free: 56.24 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005395/1.425, allocations: 0.4955 MB / 0.6239 GB, free: 56.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/1.425, allocations: 0 / 0.6239 GB, free: 56.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001549/1.425, allocations: 40.56 kB / 0.624 GB, free: 56.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/1.425, allocations: 5.75 kB / 0.624 GB, free: 56.01 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/1.425, allocations: 7 kB / 0.624 GB, free: 56.01 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/1.425, allocations: 1.188 kB / 0.624 GB, free: 56.01 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/1.425, allocations: 0.8438 kB / 0.624 GB, free: 56.01 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006652/1.426, allocations: 0.5301 MB / 0.6245 GB, free: 55.77 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.383e-05/1.426, allocations: 115.5 kB / 0.6246 GB, free: 55.65 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.565e-05/1.426, allocations: 8.562 kB / 0.6246 GB, free: 55.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/1.426, allocations: 12.12 kB / 0.6246 GB, free: 55.64 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.2e-05/1.426, allocations: 18.56 kB / 0.6246 GB, free: 55.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/1.426, allocations: 11.56 kB / 0.6246 GB, free: 55.64 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.961e-05/1.426, allocations: 115.1 kB / 0.6248 GB, free: 55.57 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.21e-07/1.426, allocations: 1.406 kB / 0.6248 GB, free: 55.57 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007082/1.427, allocations: 203.7 kB / 0.6249 GB, free: 55.53 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.baseProperties.phaseOutput,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001782/1.429, allocations: 1.267 MB / 0.6262 GB, free: 54.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000974/1.43, allocations: 0.6094 MB / 0.6268 GB, free: 54.49 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/1.43, allocations: 4 kB / 0.6268 GB, free: 54.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005059/1.43, allocations: 0.506 MB / 0.6273 GB, free: 54.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/1.431, allocations: 199.4 kB / 0.6275 GB, free: 54.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003949/1.435, allocations: 3.619 MB / 0.631 GB, free: 52.09 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/1.436, allocations: 0.9473 MB / 0.6319 GB, free: 51.37 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005199/1.436, allocations: 261.2 kB / 0.6322 GB, free: 51.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002491/1.437, allocations: 272.1 kB / 0.6324 GB, free: 51.34 MB / 462.1 MB Notification: Performance of SimCode: time 7.62e-07/1.437, allocations: 3.469 kB / 0.6324 GB, free: 51.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04056/1.477, allocations: 18.55 MB / 0.6506 GB, free: 35.06 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.468/10.95, allocations: 11.89 kB / 0.6506 GB, free: 35.05 MB / 462.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesTranscritical_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesTranscritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.pipe 2>&1)