Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.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.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesImplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesImplicit",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.007363/0.007363, allocations: 104 kB / 15.74 MB, free: 6.059 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.001876/0.001876, allocations: 198.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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01195/0.01195, allocations: 2.785 MB / 293.3 MB, free: 11.97 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001199, allocations: 67.83 kB / 405.4 MB, free: 29.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08915/0.09036, allocations: 50.23 MB / 455.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit): time 0.05191/0.1423, allocations: 50.75 MB / 0.4945 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2656/0.408, allocations: 29.09 MB / 0.523 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005965/0.4086, allocations: 2.531 kB / 0.523 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001759/0.4104, allocations: 0.6178 MB / 0.5236 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00702/0.4175, allocations: 2.257 MB / 0.5258 GB, free: 2.684 MB / 382.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.TestBasePropertiesImplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.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.TestBasePropertiesImplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008598/0.4261, allocations: 2.916 MB / 0.5286 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00137/0.4275, allocations: 0.9321 MB / 0.5295 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.4276, allocations: 63.72 kB / 0.5296 GB, free: 1.492 MB / 382.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.5521/0.9797, allocations: 51.71 MB / 0.5801 GB, free: 13.27 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007176/0.9805, allocations: 307.3 kB / 0.5804 GB, free: 13.04 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.9806, allocations: 40 kB / 0.5804 GB, free: 13 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1758/1.156, allocations: 27.25 MB / 0.607 GB, free: 3.871 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002087/1.157, allocations: 113.6 kB / 0.6071 GB, free: 3.809 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006578/1.157, allocations: 339.6 kB / 0.6075 GB, free: 3.484 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007376/1.165, allocations: 1.856 MB / 0.6093 GB, free: 1.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/1.165, allocations: 4 kB / 0.6093 GB, free: 1.906 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.684e-06/1.165, allocations: 0 / 0.6093 GB, free: 1.906 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.812e-05/1.165, allocations: 0 / 0.6093 GB, free: 1.906 MB / 446.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.001768/1.167, allocations: 1.099 MB / 0.6104 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/1.167, allocations: 8.031 kB / 0.6104 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001333/1.167, allocations: 123 kB / 0.6105 GB, free: 0.625 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002096/1.169, allocations: 0.4957 MB / 0.611 GB, free: 132 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003808/1.173, allocations: 339.5 kB / 0.6113 GB, free: 15.76 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.853e-05/1.173, allocations: 49.86 kB / 0.6113 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.216e-05/1.173, allocations: 59.94 kB / 0.6114 GB, free: 15.65 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/1.174, allocations: 0.8801 MB / 0.6122 GB, free: 14.72 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/1.174, allocations: 0 / 0.6122 GB, free: 14.72 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.512e-05/1.175, allocations: 24 kB / 0.6123 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-05/1.175, allocations: 31.98 kB / 0.6123 GB, free: 14.67 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001856/1.176, allocations: 0.7039 MB / 0.613 GB, free: 13.97 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004715/1.181, allocations: 5.111 MB / 0.618 GB, free: 8.25 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007702/1.182, allocations: 333.1 kB / 0.6183 GB, free: 7.906 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003504/1.182, allocations: 217.6 kB / 0.6185 GB, free: 7.688 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001641/1.184, allocations: 1.547 MB / 0.62 GB, free: 5.973 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/1.184, allocations: 34.56 kB / 0.6201 GB, free: 5.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 3.025e-06/1.184, allocations: 3.984 kB / 0.6201 GB, free: 5.926 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001533/1.186, allocations: 0.6047 MB / 0.6206 GB, free: 5.316 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.308e-05/1.186, allocations: 77.11 kB / 0.6207 GB, free: 5.223 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002464/1.186, allocations: 178.7 kB / 0.6209 GB, free: 5.039 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/1.186, allocations: 33.7 kB / 0.6209 GB, free: 5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002488/1.186, allocations: 286.7 kB / 0.6212 GB, free: 4.715 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002097/1.186, allocations: 226.7 kB / 0.6214 GB, free: 4.496 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/1.187, allocations: 97.91 kB / 0.6215 GB, free: 4.391 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/1.187, allocations: 342.8 kB / 0.6218 GB, free: 4.047 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/1.187, allocations: 125.3 kB / 0.622 GB, free: 3.926 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003489/1.187, allocations: 300.6 kB / 0.6222 GB, free: 3.559 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/1.189, allocations: 492.6 kB / 0.6227 GB, free: 3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/1.189, allocations: 4 kB / 0.6227 GB, free: 2.996 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001019/1.19, allocations: 484.7 kB / 0.6232 GB, free: 2.516 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.542e-05/1.19, allocations: 7.938 kB / 0.6232 GB, free: 2.508 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.349e-05/1.19, allocations: 12.06 kB / 0.6232 GB, free: 2.496 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.847e-05/1.19, allocations: 12 kB / 0.6232 GB, free: 2.484 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004389/1.191, allocations: 83.83 kB / 0.6233 GB, free: 2.402 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007727/1.191, allocations: 1.18 MB / 0.6244 GB, free: 1.176 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000345/1.192, allocations: 63.33 kB / 0.6245 GB, free: 1.113 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.518e-05/1.192, allocations: 20.16 kB / 0.6245 GB, free: 1.094 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): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003322/1.192, allocations: 190.5 kB / 0.6247 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/1.192, allocations: 27.62 kB / 0.6247 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.848e-05/1.192, allocations: 34.83 kB / 0.6248 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/1.192, allocations: 0 / 0.6248 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/1.192, allocations: 7.875 kB / 0.6248 GB, free: 0.832 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/1.192, allocations: 4 kB / 0.6248 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007651/1.193, allocations: 0.4996 MB / 0.6253 GB, free: 288 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/1.193, allocations: 0 / 0.6253 GB, free: 288 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001861/1.193, allocations: 31.98 kB / 0.6253 GB, free: 256 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/1.193, allocations: 3.984 kB / 0.6253 GB, free: 252 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/1.194, allocations: 8 kB / 0.6253 GB, free: 244 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005695/1.194, allocations: 1.172 MB / 0.6264 GB, free: 15.02 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/1.194, allocations: 11.95 kB / 0.6265 GB, free: 15.01 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000627/1.195, allocations: 0.5136 MB / 0.627 GB, free: 14.48 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/1.195, allocations: 108.6 kB / 0.6271 GB, free: 14.36 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.05e-05/1.195, allocations: 12.09 kB / 0.6271 GB, free: 14.34 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/1.195, allocations: 4 kB / 0.6271 GB, free: 14.34 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.187e-05/1.195, allocations: 19.97 kB / 0.6271 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/1.195, allocations: 4 kB / 0.6271 GB, free: 14.32 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001175/1.195, allocations: 128.2 kB / 0.6272 GB, free: 14.19 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.195, allocations: 0 / 0.6272 GB, free: 14.19 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008908/1.196, allocations: 187.4 kB / 0.6274 GB, free: 14.01 MB / 478.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): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00137/1.198, allocations: 1.252 MB / 0.6286 GB, free: 12.76 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001009/1.199, allocations: 0.6151 MB / 0.6292 GB, free: 12.12 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.199, allocations: 0 / 0.6292 GB, free: 12.12 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005816/1.199, allocations: 0.508 MB / 0.6297 GB, free: 11.54 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/1.2, allocations: 192.5 kB / 0.6299 GB, free: 11.35 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004925/1.205, allocations: 3.65 MB / 0.6335 GB, free: 7.48 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005994/1.206, allocations: 0.9426 MB / 0.6344 GB, free: 6.508 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005156/1.206, allocations: 227.8 kB / 0.6346 GB, free: 6.285 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003137/1.207, allocations: 271.3 kB / 0.6349 GB, free: 6.02 MB / 478.1 MB Notification: Performance of SimCode: time 7.31e-07/1.207, allocations: 0 / 0.6349 GB, free: 6.02 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04492/1.252, allocations: 18.43 MB / 0.6529 GB, free: 3.617 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/13.31, allocations: 12.05 kB / 0.6529 GB, free: 3.605 MB / 494.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesImplicit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesImplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesImplicit.pipe 2>&1)