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.005095/0.005095, allocations: 101.3 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.001224/0.001225, allocations: 198.8 kB / 16.67 MB, free: 5.977 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1145/0.1145, allocations: 2.762 MB / 293.3 MB, free: 3.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 59.89 kB / 405.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2701, allocations: 50.22 MB / 455.7 MB, free: 20.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit): time 0.04887/0.319, allocations: 50.72 MB / 0.4945 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02672/0.3458, allocations: 29.1 MB / 0.5229 GB, free: 5.125 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007522/0.3466, allocations: 4 kB / 0.5229 GB, free: 5.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001767/0.3484, allocations: 0.6136 MB / 0.5235 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006974/0.3554, allocations: 2.25 MB / 0.5257 GB, free: 2.238 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.008611/0.3641, allocations: 2.918 MB / 0.5286 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001439/0.3655, allocations: 0.9285 MB / 0.5295 GB, free: 14.37 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001376/0.3657, allocations: 69.7 kB / 0.5295 GB, free: 14.3 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.5584/0.9241, allocations: 51.7 MB / 0.58 GB, free: 11.48 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006327/0.9247, allocations: 306.6 kB / 0.5803 GB, free: 11.18 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.9249, allocations: 40 kB / 0.5804 GB, free: 11.14 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4397/1.365, allocations: 27.24 MB / 0.607 GB, free: 64.74 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001755/1.365, allocations: 115.5 kB / 0.6071 GB, free: 64.74 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004919/1.365, allocations: 335 kB / 0.6074 GB, free: 64.74 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00578/1.371, allocations: 1.853 MB / 0.6092 GB, free: 64.71 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/1.371, allocations: 0.7969 kB / 0.6092 GB, free: 64.71 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.643e-06/1.371, allocations: 5.062 kB / 0.6092 GB, free: 64.71 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/1.371, allocations: 0 / 0.6092 GB, free: 64.71 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.00151/1.373, allocations: 1.099 MB / 0.6103 GB, free: 64.12 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/1.373, allocations: 9.062 kB / 0.6103 GB, free: 64.12 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/1.373, allocations: 114.6 kB / 0.6104 GB, free: 64.08 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002055/1.375, allocations: 0.4986 MB / 0.6109 GB, free: 64.05 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002886/1.378, allocations: 346.3 kB / 0.6112 GB, free: 63.82 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.895e-05/1.378, allocations: 43.53 kB / 0.6113 GB, free: 63.82 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.531e-05/1.378, allocations: 64.28 kB / 0.6113 GB, free: 63.81 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/1.379, allocations: 0.8704 MB / 0.6122 GB, free: 63.65 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/1.379, allocations: 1.375 kB / 0.6122 GB, free: 63.65 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.142e-05/1.38, allocations: 26.5 kB / 0.6122 GB, free: 63.65 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.448e-05/1.38, allocations: 35.25 kB / 0.6122 GB, free: 63.64 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/1.381, allocations: 0.7041 MB / 0.6129 GB, free: 63.64 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003141/1.384, allocations: 5.002 MB / 0.6178 GB, free: 59.56 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006652/1.385, allocations: 321.7 kB / 0.6181 GB, free: 59.51 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003081/1.385, allocations: 222.5 kB / 0.6183 GB, free: 59.49 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001113/1.386, allocations: 1.529 MB / 0.6198 GB, free: 58.28 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/1.386, allocations: 33.52 kB / 0.6198 GB, free: 58.24 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 1.894e-06/1.386, allocations: 4 kB / 0.6198 GB, free: 58.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001498/1.388, allocations: 0.599 MB / 0.6204 GB, free: 58.17 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/1.388, allocations: 79.61 kB / 0.6205 GB, free: 58.08 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/1.388, allocations: 182.2 kB / 0.6207 GB, free: 57.97 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/1.388, allocations: 27.3 kB / 0.6207 GB, free: 57.94 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/1.388, allocations: 285.8 kB / 0.621 GB, free: 57.73 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/1.388, allocations: 232.8 kB / 0.6212 GB, free: 57.57 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/1.388, allocations: 103.9 kB / 0.6213 GB, free: 57.55 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.07e-05/1.389, allocations: 339.3 kB / 0.6216 GB, free: 57.23 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002082/1.389, allocations: 121 kB / 0.6217 GB, free: 57.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002895/1.389, allocations: 300 kB / 0.622 GB, free: 57.03 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005353/1.39, allocations: 480.3 kB / 0.6225 GB, free: 56.81 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/1.39, allocations: 5.125 kB / 0.6225 GB, free: 56.81 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007706/1.39, allocations: 489.8 kB / 0.623 GB, free: 56.74 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/1.39, allocations: 10.84 kB / 0.623 GB, free: 56.74 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/1.39, allocations: 5.094 kB / 0.623 GB, free: 56.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/1.39, allocations: 11.67 kB / 0.623 GB, free: 56.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002412/1.391, allocations: 75.88 kB / 0.6231 GB, free: 56.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/1.391, allocations: 12.14 kB / 0.6231 GB, free: 56.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/1.391, allocations: 56.09 kB / 0.6231 GB, free: 56.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-05/1.391, allocations: 21.56 kB / 0.6231 GB, free: 56.7 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.0002091/1.391, allocations: 201.1 kB / 0.6233 GB, free: 56.57 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.345e-05/1.391, allocations: 34.62 kB / 0.6234 GB, free: 56.55 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.536e-05/1.391, allocations: 30.3 kB / 0.6234 GB, free: 56.55 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.288e-06/1.391, allocations: 2.656 kB / 0.6234 GB, free: 56.55 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/1.391, allocations: 0 / 0.6234 GB, free: 56.55 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/1.391, allocations: 0.875 kB / 0.6234 GB, free: 56.55 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005734/1.392, allocations: 493.7 kB / 0.6239 GB, free: 56.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/1.392, allocations: 0.75 kB / 0.6239 GB, free: 56.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/1.392, allocations: 34.91 kB / 0.6239 GB, free: 56.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/1.392, allocations: 5.969 kB / 0.6239 GB, free: 56.31 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/1.392, allocations: 7.156 kB / 0.6239 GB, free: 56.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/1.392, allocations: 0.9375 kB / 0.6239 GB, free: 56.31 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/1.392, allocations: 3.703 kB / 0.6239 GB, free: 56.31 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000563/1.393, allocations: 0.5004 MB / 0.6244 GB, free: 56.08 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.119e-05/1.393, allocations: 115.2 kB / 0.6245 GB, free: 55.96 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.433e-05/1.393, allocations: 11.97 kB / 0.6245 GB, free: 55.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/1.393, allocations: 6.922 kB / 0.6245 GB, free: 55.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.797e-05/1.393, allocations: 18.39 kB / 0.6246 GB, free: 55.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.189e-05/1.393, allocations: 6.5 kB / 0.6246 GB, free: 55.96 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.056e-05/1.393, allocations: 121.2 kB / 0.6247 GB, free: 55.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.393, allocations: 3.094 kB / 0.6247 GB, free: 55.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008148/1.394, allocations: 192.5 kB / 0.6249 GB, free: 55.85 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.001218/1.395, allocations: 1.245 MB / 0.6261 GB, free: 55 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008223/1.396, allocations: 0.5955 MB / 0.6267 GB, free: 54.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/1.396, allocations: 0 / 0.6267 GB, free: 54.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003942/1.397, allocations: 0.4932 MB / 0.6271 GB, free: 54.49 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/1.398, allocations: 186 kB / 0.6273 GB, free: 54.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004222/1.402, allocations: 3.618 MB / 0.6309 GB, free: 52.38 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/1.402, allocations: 0.9499 MB / 0.6318 GB, free: 51.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004696/1.403, allocations: 257.6 kB / 0.632 GB, free: 51.64 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002542/1.403, allocations: 272.2 kB / 0.6323 GB, free: 51.63 MB / 462.1 MB Notification: Performance of SimCode: time 5.11e-07/1.403, allocations: 0 / 0.6323 GB, free: 51.63 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03802/1.441, allocations: 18.06 MB / 0.6499 GB, free: 35.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.595/10.04, allocations: 8.062 kB / 0.6499 GB, free: 35.92 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)