Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit",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.004922/0.004922, allocations: 97.62 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.001243/0.001243, allocations: 200.8 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1453/0.1453, allocations: 2.755 MB / 293.3 MB, free: 3.543 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 63.89 kB / 405.4 MB, free: 1.402 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2315, allocations: 50.23 MB / 455.7 MB, free: 20.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit): time 0.04061/0.2722, allocations: 50.72 MB / 0.4945 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.029/0.3012, allocations: 29.11 MB / 0.5229 GB, free: 5.148 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007871/0.3021, allocations: 4 kB / 0.5229 GB, free: 5.145 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001816/0.3039, allocations: 0.6058 MB / 0.5235 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006472/0.3104, 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.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008075/0.3185, allocations: 2.926 MB / 0.5286 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.3199, allocations: 0.9248 MB / 0.5295 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.32, allocations: 65.62 kB / 0.5295 GB, free: 14.34 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.6862/1.006, allocations: 51.69 MB / 0.58 GB, free: 11.54 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006037/1.007, allocations: 298.6 kB / 0.5803 GB, free: 11.24 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.984e-05/1.007, allocations: 40 kB / 0.5803 GB, free: 11.2 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4185/1.425, allocations: 27.25 MB / 0.607 GB, free: 64.89 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001739/1.426, allocations: 107.4 kB / 0.6071 GB, free: 64.89 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004504/1.426, allocations: 340 kB / 0.6074 GB, free: 64.89 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006256/1.432, allocations: 1.867 MB / 0.6092 GB, free: 64.8 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/1.432, allocations: 0 / 0.6092 GB, free: 64.8 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.813e-06/1.432, allocations: 1.719 kB / 0.6092 GB, free: 64.8 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.689e-05/1.432, allocations: 0 / 0.6092 GB, free: 64.8 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.00157/1.434, allocations: 1.132 MB / 0.6103 GB, free: 64.13 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/1.434, allocations: 8.438 kB / 0.6103 GB, free: 64.13 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/1.434, allocations: 116 kB / 0.6104 GB, free: 64.09 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002/1.436, allocations: 0.4958 MB / 0.6109 GB, free: 64.06 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003634/1.44, allocations: 343.1 kB / 0.6112 GB, free: 63.84 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.538e-05/1.44, allocations: 45.16 kB / 0.6113 GB, free: 63.84 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.188e-05/1.44, allocations: 62.97 kB / 0.6113 GB, free: 63.83 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/1.442, allocations: 0.8667 MB / 0.6122 GB, free: 63.67 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/1.442, allocations: 1.344 kB / 0.6122 GB, free: 63.67 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.233e-05/1.442, allocations: 25.91 kB / 0.6122 GB, free: 63.67 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-05/1.442, allocations: 33.11 kB / 0.6122 GB, free: 63.67 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/1.443, allocations: 0.7104 MB / 0.6129 GB, free: 63.66 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003282/1.446, allocations: 5.008 MB / 0.6178 GB, free: 59.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000689/1.447, allocations: 328.4 kB / 0.6181 GB, free: 59.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003092/1.447, allocations: 216.5 kB / 0.6184 GB, free: 59.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001224/1.449, allocations: 1.536 MB / 0.6199 GB, free: 58.29 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/1.449, allocations: 37.02 kB / 0.6199 GB, free: 58.25 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.324e-06/1.449, allocations: 0 / 0.6199 GB, free: 58.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001543/1.45, allocations: 0.5901 MB / 0.6205 GB, free: 58.18 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/1.45, allocations: 87.31 kB / 0.6205 GB, free: 58.09 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001619/1.45, allocations: 182.8 kB / 0.6207 GB, free: 57.98 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/1.45, allocations: 29.39 kB / 0.6207 GB, free: 57.95 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/1.451, allocations: 293 kB / 0.621 GB, free: 57.73 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/1.451, allocations: 241.8 kB / 0.6213 GB, free: 57.57 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/1.451, allocations: 101 kB / 0.6214 GB, free: 57.54 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.771e-05/1.451, allocations: 339.9 kB / 0.6217 GB, free: 57.23 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/1.451, allocations: 122.1 kB / 0.6218 GB, free: 57.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002922/1.451, allocations: 300.4 kB / 0.6221 GB, free: 57.02 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005281/1.452, allocations: 483.6 kB / 0.6225 GB, free: 56.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/1.452, allocations: 5.969 kB / 0.6225 GB, free: 56.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.000711/1.453, allocations: 485.4 kB / 0.623 GB, free: 56.73 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/1.453, allocations: 11.91 kB / 0.623 GB, free: 56.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/1.453, allocations: 12.41 kB / 0.623 GB, free: 56.72 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/1.453, allocations: 8.156 kB / 0.623 GB, free: 56.72 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002267/1.453, allocations: 68.08 kB / 0.6231 GB, free: 56.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.499e-05/1.453, allocations: 14.88 kB / 0.6231 GB, free: 56.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/1.453, allocations: 61.3 kB / 0.6232 GB, free: 56.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.677e-05/1.453, allocations: 20.78 kB / 0.6232 GB, free: 56.68 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput,medium1.baseProperties.phaseOutput) * 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.000179/1.454, allocations: 189.8 kB / 0.6234 GB, free: 56.57 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.623e-05/1.454, allocations: 31.66 kB / 0.6234 GB, free: 56.55 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.377e-05/1.454, allocations: 34.59 kB / 0.6234 GB, free: 56.54 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-06/1.454, allocations: 5 kB / 0.6235 GB, free: 56.54 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/1.454, allocations: 1.312 kB / 0.6235 GB, free: 56.54 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/1.454, allocations: 1.219 kB / 0.6235 GB, free: 56.54 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005043/1.454, allocations: 0.4896 MB / 0.6239 GB, free: 56.31 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/1.454, allocations: 3.188 kB / 0.6239 GB, free: 56.31 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/1.454, allocations: 23.11 kB / 0.624 GB, free: 56.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/1.454, allocations: 5.938 kB / 0.624 GB, free: 56.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/1.454, allocations: 9.266 kB / 0.624 GB, free: 56.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/1.454, allocations: 5.203 kB / 0.624 GB, free: 56.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.454, allocations: 5.094 kB / 0.624 GB, free: 56.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005268/1.455, allocations: 0.5073 MB / 0.6245 GB, free: 56.07 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.003e-05/1.455, allocations: 111.6 kB / 0.6246 GB, free: 55.95 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.318e-05/1.455, allocations: 7.5 kB / 0.6246 GB, free: 55.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/1.455, allocations: 9.141 kB / 0.6246 GB, free: 55.95 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.722e-05/1.455, allocations: 17.25 kB / 0.6246 GB, free: 55.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/1.455, allocations: 10.72 kB / 0.6246 GB, free: 55.94 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.946e-05/1.455, allocations: 123.3 kB / 0.6247 GB, free: 55.87 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.455, allocations: 0 / 0.6247 GB, free: 55.87 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006824/1.456, allocations: 196.1 kB / 0.6249 GB, free: 55.83 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: 3 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * 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.00111/1.457, allocations: 1.248 MB / 0.6261 GB, free: 54.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0007117/1.458, allocations: 0.6011 MB / 0.6267 GB, free: 54.78 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/1.458, allocations: 0 / 0.6267 GB, free: 54.78 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000366/1.458, allocations: 0.4908 MB / 0.6272 GB, free: 54.46 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/1.459, allocations: 189.3 kB / 0.6274 GB, free: 54.42 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003529/1.463, allocations: 3.633 MB / 0.6309 GB, free: 52.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/1.463, allocations: 0.9474 MB / 0.6319 GB, free: 51.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004459/1.464, allocations: 249.9 kB / 0.6321 GB, free: 51.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002571/1.464, allocations: 280.5 kB / 0.6324 GB, free: 51.59 MB / 462.1 MB Notification: Performance of SimCode: time 3.81e-07/1.464, allocations: 0 / 0.6324 GB, free: 51.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03739/1.501, allocations: 18.06 MB / 0.65 GB, free: 35.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.955/10.46, allocations: 10.19 kB / 0.65 GB, free: 35.84 MB / 462.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe 2>&1)