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.007897/0.007897, allocations: 101.9 kB / 15.73 MB, free: 6.008 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.001262/0.001262, allocations: 190.9 kB / 16.67 MB, free: 5.949 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1441/0.1441, allocations: 2.765 MB / 293.3 MB, free: 3.559 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 63.89 kB / 405.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2632, allocations: 50.23 MB / 455.7 MB, free: 20.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical): time 0.04654/0.3098, allocations: 50.72 MB / 0.4945 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02631/0.3362, allocations: 29.1 MB / 0.5229 GB, free: 5.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006291/0.3368, allocations: 4 kB / 0.5229 GB, free: 5.156 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001661/0.3386, allocations: 0.6175 MB / 0.5235 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006128/0.3447, allocations: 2.238 MB / 0.5257 GB, free: 2.281 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.008125/0.3529, allocations: 2.922 MB / 0.5286 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001347/0.3542, allocations: 0.9247 MB / 0.5295 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.3544, allocations: 61.72 kB / 0.5295 GB, free: 14.35 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.5363/0.8906, allocations: 51.71 MB / 0.58 GB, free: 11.52 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007394/0.8914, allocations: 302.6 kB / 0.5803 GB, free: 11.22 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.8915, allocations: 43.98 kB / 0.5804 GB, free: 11.18 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3877/1.279, allocations: 27.25 MB / 0.607 GB, free: 64.78 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002701/1.279, allocations: 106.8 kB / 0.6071 GB, free: 64.78 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007916/1.28, allocations: 341.3 kB / 0.6074 GB, free: 64.78 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007825/1.288, allocations: 1.852 MB / 0.6092 GB, free: 64.75 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.575e-06/1.288, allocations: 0.9375 kB / 0.6092 GB, free: 64.75 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.385e-06/1.288, allocations: 4 kB / 0.6092 GB, free: 64.75 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.681e-05/1.288, allocations: 0 / 0.6092 GB, free: 64.75 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.002041/1.29, allocations: 1.098 MB / 0.6103 GB, free: 64.15 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/1.29, allocations: 10.16 kB / 0.6103 GB, free: 64.15 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001499/1.29, allocations: 119.3 kB / 0.6104 GB, free: 64.11 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002192/1.293, allocations: 0.4962 MB / 0.6109 GB, free: 64.08 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003152/1.296, allocations: 343.5 kB / 0.6112 GB, free: 63.85 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.241e-05/1.296, allocations: 44.47 kB / 0.6113 GB, free: 63.85 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.964e-05/1.296, allocations: 60.53 kB / 0.6113 GB, free: 63.85 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/1.298, allocations: 0.8631 MB / 0.6122 GB, free: 63.69 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/1.298, allocations: 4.438 kB / 0.6122 GB, free: 63.69 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.279e-05/1.298, allocations: 26.25 kB / 0.6122 GB, free: 63.69 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.714e-05/1.298, allocations: 37.39 kB / 0.6122 GB, free: 63.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/1.299, allocations: 0.7007 MB / 0.6129 GB, free: 63.68 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003263/1.302, allocations: 4.951 MB / 0.6177 GB, free: 59.6 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007233/1.303, allocations: 346.7 kB / 0.6181 GB, free: 59.55 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003426/1.303, allocations: 224.1 kB / 0.6183 GB, free: 59.53 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001214/1.305, allocations: 1.538 MB / 0.6198 GB, free: 58.32 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/1.305, allocations: 41.72 kB / 0.6198 GB, free: 58.28 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 2.124e-06/1.305, allocations: 0 / 0.6198 GB, free: 58.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001705/1.306, allocations: 0.6222 MB / 0.6204 GB, free: 58.21 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.503e-05/1.306, allocations: 84.3 kB / 0.6205 GB, free: 58.12 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/1.307, allocations: 184.9 kB / 0.6207 GB, free: 58 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/1.307, allocations: 34.86 kB / 0.6207 GB, free: 57.97 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/1.307, allocations: 268.8 kB / 0.621 GB, free: 57.77 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/1.307, allocations: 247.2 kB / 0.6212 GB, free: 57.61 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/1.307, allocations: 90.8 kB / 0.6213 GB, free: 57.58 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.454e-05/1.307, allocations: 342 kB / 0.6216 GB, free: 57.27 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/1.307, allocations: 123.5 kB / 0.6218 GB, free: 57.27 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/1.308, allocations: 290.7 kB / 0.622 GB, free: 57.09 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006506/1.308, allocations: 475.6 kB / 0.6225 GB, free: 56.89 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/1.308, allocations: 2.031 kB / 0.6225 GB, free: 56.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008664/1.309, allocations: 476.2 kB / 0.6229 GB, free: 56.82 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/1.309, allocations: 10.66 kB / 0.6229 GB, free: 56.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/1.309, allocations: 8.75 kB / 0.623 GB, free: 56.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/1.309, allocations: 9.672 kB / 0.623 GB, free: 56.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/1.31, allocations: 65.58 kB / 0.623 GB, free: 56.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/1.31, allocations: 13.31 kB / 0.623 GB, free: 56.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002717/1.31, allocations: 63.88 kB / 0.6231 GB, free: 56.78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/1.31, allocations: 19.59 kB / 0.6231 GB, free: 56.78 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.00022/1.31, allocations: 193.2 kB / 0.6233 GB, free: 56.66 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.098e-05/1.31, allocations: 31.78 kB / 0.6233 GB, free: 56.64 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.051e-05/1.31, allocations: 28.34 kB / 0.6234 GB, free: 56.64 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/1.31, allocations: 2.375 kB / 0.6234 GB, free: 56.64 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/1.31, allocations: 1.281 kB / 0.6234 GB, free: 56.64 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/1.31, allocations: 0 / 0.6234 GB, free: 56.64 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005969/1.311, allocations: 0.4983 MB / 0.6239 GB, free: 56.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/1.311, allocations: 4.969 kB / 0.6239 GB, free: 56.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/1.311, allocations: 37.53 kB / 0.6239 GB, free: 56.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/1.311, allocations: 4.75 kB / 0.6239 GB, free: 56.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.061e-05/1.311, allocations: 10.06 kB / 0.6239 GB, free: 56.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/1.311, allocations: 1.625 kB / 0.6239 GB, free: 56.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/1.311, allocations: 0.5 kB / 0.6239 GB, free: 56.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006728/1.312, allocations: 0.5291 MB / 0.6244 GB, free: 56.17 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.449e-05/1.312, allocations: 114.6 kB / 0.6245 GB, free: 56.05 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.211e-05/1.312, allocations: 9.25 kB / 0.6245 GB, free: 56.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000769/1.313, allocations: 10.16 kB / 0.6246 GB, free: 56.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.833e-05/1.313, allocations: 23.91 kB / 0.6246 GB, free: 56.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/1.313, allocations: 7.094 kB / 0.6246 GB, free: 56.04 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.47e-05/1.313, allocations: 115.1 kB / 0.6247 GB, free: 55.97 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.01e-07/1.313, allocations: 4.625 kB / 0.6247 GB, free: 55.96 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007493/1.314, allocations: 192.7 kB / 0.6249 GB, free: 55.93 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.001351/1.315, allocations: 1.257 MB / 0.6261 GB, free: 55.09 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009073/1.316, allocations: 0.6212 MB / 0.6267 GB, free: 54.89 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/1.316, allocations: 0.7188 kB / 0.6267 GB, free: 54.89 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004901/1.316, allocations: 0.4984 MB / 0.6272 GB, free: 54.58 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/1.318, allocations: 202.4 kB / 0.6274 GB, free: 54.53 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004319/1.322, allocations: 3.606 MB / 0.6309 GB, free: 52.51 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004497/1.322, allocations: 0.9447 MB / 0.6318 GB, free: 51.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005272/1.323, allocations: 259.6 kB / 0.6321 GB, free: 51.77 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000259/1.323, allocations: 274.7 kB / 0.6323 GB, free: 51.76 MB / 462.1 MB Notification: Performance of SimCode: time 5.01e-07/1.323, allocations: 4 kB / 0.6324 GB, free: 51.76 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03528/1.358, allocations: 18.54 MB / 0.6505 GB, free: 35.47 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.685/10.04, allocations: 15.55 kB / 0.6505 GB, free: 35.46 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)