Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_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.006684/0.006684, allocations: 101.5 kB / 15.73 MB, free: 6.039 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.001386/0.001386, allocations: 200.1 kB / 16.68 MB, free: 5.965 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1086/0.1086, allocations: 2.765 MB / 293.3 MB, free: 3.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 63.89 kB / 405.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2663, allocations: 50.23 MB / 455.7 MB, free: 20.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.04257/0.3089, allocations: 50.76 MB / 0.4945 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02478/0.3337, allocations: 29.1 MB / 0.523 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005181/0.3342, allocations: 4 kB / 0.523 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001567/0.3359, allocations: 0.6136 MB / 0.5236 GB, free: 4.488 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005651/0.3415, allocations: 2.258 MB / 0.5258 GB, free: 2.215 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.TestBasePropertiesImplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesImplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.007582/0.3491, allocations: 2.922 MB / 0.5286 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001211/0.3504, allocations: 0.9287 MB / 0.5295 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.3505, allocations: 65.66 kB / 0.5296 GB, free: 14.27 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.3524/0.7029, allocations: 51.05 MB / 0.5794 GB, free: 12.11 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006176/0.7036, allocations: 306.6 kB / 0.5797 GB, free: 11.81 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.7037, allocations: 40 kB / 0.5798 GB, free: 11.77 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4149/1.119, allocations: 26.92 MB / 0.6061 GB, free: 65.2 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002443/1.119, allocations: 109.4 kB / 0.6062 GB, free: 65.2 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008189/1.12, allocations: 340.2 kB / 0.6065 GB, free: 65.2 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007783/1.127, allocations: 1.864 MB / 0.6083 GB, free: 65.11 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/1.128, allocations: 1.219 kB / 0.6083 GB, free: 65.11 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.783e-06/1.128, allocations: 0 / 0.6083 GB, free: 65.11 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.76e-05/1.128, allocations: 4 kB / 0.6083 GB, free: 65.11 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.002477/1.13, allocations: 1.126 MB / 0.6094 GB, free: 64.45 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/1.13, allocations: 11.53 kB / 0.6094 GB, free: 64.45 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001616/1.13, allocations: 120.1 kB / 0.6096 GB, free: 64.41 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002193/1.132, allocations: 0.4965 MB / 0.61 GB, free: 64.38 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002023/1.135, allocations: 345.5 kB / 0.6104 GB, free: 64.14 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.085e-05/1.135, allocations: 43.41 kB / 0.6104 GB, free: 64.14 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/1.135, allocations: 58.47 kB / 0.6105 GB, free: 64.14 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/1.136, allocations: 0.8693 MB / 0.6113 GB, free: 63.98 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/1.136, allocations: 0.8125 kB / 0.6113 GB, free: 63.98 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.539e-05/1.137, allocations: 28.02 kB / 0.6113 GB, free: 63.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.255e-05/1.137, allocations: 32.48 kB / 0.6114 GB, free: 63.98 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/1.138, allocations: 0.7115 MB / 0.6121 GB, free: 63.96 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003835/1.142, allocations: 5.13 MB / 0.6171 GB, free: 59.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007112/1.143, allocations: 333.2 kB / 0.6174 GB, free: 59.7 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002875/1.143, allocations: 224.2 kB / 0.6176 GB, free: 59.68 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001216/1.144, allocations: 1.537 MB / 0.6191 GB, free: 58.47 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/1.144, allocations: 36.66 kB / 0.6191 GB, free: 58.43 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.124e-06/1.144, allocations: 0 / 0.6191 GB, free: 58.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001565/1.146, allocations: 0.6027 MB / 0.6197 GB, free: 58.37 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.704e-05/1.146, allocations: 79.05 kB / 0.6198 GB, free: 58.27 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/1.146, allocations: 188.1 kB / 0.62 GB, free: 58.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/1.146, allocations: 31.36 kB / 0.62 GB, free: 58.13 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/1.146, allocations: 294.1 kB / 0.6203 GB, free: 57.91 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/1.146, allocations: 248.1 kB / 0.6205 GB, free: 57.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000142/1.146, allocations: 101.1 kB / 0.6206 GB, free: 57.72 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.66e-05/1.147, allocations: 341.3 kB / 0.621 GB, free: 57.41 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/1.147, allocations: 122 kB / 0.6211 GB, free: 57.41 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003068/1.147, allocations: 297.5 kB / 0.6214 GB, free: 57.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005563/1.148, allocations: 490.4 kB / 0.6218 GB, free: 56.98 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/1.148, allocations: 1.984 kB / 0.6218 GB, free: 56.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008272/1.148, allocations: 489.8 kB / 0.6223 GB, free: 56.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/1.149, allocations: 11.72 kB / 0.6223 GB, free: 56.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/1.149, allocations: 6.359 kB / 0.6223 GB, free: 56.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.393e-05/1.149, allocations: 8.438 kB / 0.6223 GB, free: 56.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003522/1.149, allocations: 85.75 kB / 0.6224 GB, free: 56.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009745/1.15, allocations: 1.183 MB / 0.6236 GB, free: 55.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/1.15, allocations: 63.22 kB / 0.6236 GB, free: 55.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.845e-05/1.15, allocations: 20.34 kB / 0.6236 GB, free: 55.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): 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.0002137/1.15, allocations: 200.7 kB / 0.6238 GB, free: 55.58 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.697e-05/1.151, allocations: 27.31 kB / 0.6239 GB, free: 55.56 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.625e-05/1.151, allocations: 24.28 kB / 0.6239 GB, free: 55.56 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/1.151, allocations: 8 kB / 0.6239 GB, free: 55.55 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/1.151, allocations: 5.281 kB / 0.6239 GB, free: 55.55 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/1.151, allocations: 0 / 0.6239 GB, free: 55.55 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006149/1.151, allocations: 0.4934 MB / 0.6244 GB, free: 55.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/1.151, allocations: 5.062 kB / 0.6244 GB, free: 55.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/1.151, allocations: 38.44 kB / 0.6244 GB, free: 55.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/1.151, allocations: 0.9688 kB / 0.6244 GB, free: 55.32 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.176e-05/1.152, allocations: 7.625 kB / 0.6244 GB, free: 55.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003467/1.152, allocations: 1.176 MB / 0.6256 GB, free: 54.14 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/1.152, allocations: 0.9375 kB / 0.6256 GB, free: 54.14 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006296/1.153, allocations: 0.5178 MB / 0.6261 GB, free: 53.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/1.153, allocations: 114.8 kB / 0.6262 GB, free: 53.78 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.983e-05/1.153, allocations: 1.875 kB / 0.6262 GB, free: 53.78 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002315/1.153, allocations: 12.33 kB / 0.6262 GB, free: 53.78 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.998e-05/1.153, allocations: 18.67 kB / 0.6262 GB, free: 53.78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/1.153, allocations: 6.844 kB / 0.6262 GB, free: 53.78 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001007/1.153, allocations: 124.2 kB / 0.6263 GB, free: 53.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.153, allocations: 0 / 0.6263 GB, free: 53.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0009442/1.154, allocations: 195.6 kB / 0.6265 GB, free: 53.67 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): 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.001436/1.156, allocations: 1.246 MB / 0.6277 GB, free: 52.82 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001041/1.157, allocations: 0.6284 MB / 0.6284 GB, free: 52.61 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/1.157, allocations: 5.094 kB / 0.6284 GB, free: 52.61 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006038/1.157, allocations: 0.5084 MB / 0.6289 GB, free: 52.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/1.158, allocations: 190.3 kB / 0.629 GB, free: 52.26 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004792/1.163, allocations: 3.664 MB / 0.6326 GB, free: 50.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004598/1.164, allocations: 0.9486 MB / 0.6335 GB, free: 49.45 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004478/1.164, allocations: 216.2 kB / 0.6338 GB, free: 49.42 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002561/1.164, allocations: 272.5 kB / 0.634 GB, free: 49.41 MB / 462.1 MB Notification: Performance of SimCode: time 8.02e-07/1.164, allocations: 0 / 0.634 GB, free: 49.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03722/1.202, allocations: 18.34 MB / 0.6519 GB, free: 33.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/14.17, allocations: 16.02 kB / 0.6519 GB, free: 33.73 MB / 462.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1)