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.008898/0.008898, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001922/0.001923, allocations: 190.3 kB / 16.67 MB, free: 5.93 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.44/1.44, 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.1112/0.1112, allocations: 2.765 MB / 293.3 MB, free: 3.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 67.89 kB / 405.4 MB, free: 1.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2506, allocations: 50.23 MB / 455.7 MB, free: 20.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit): time 0.04309/0.2938, allocations: 50.71 MB / 0.4945 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02628/0.3201, allocations: 29.11 MB / 0.5229 GB, free: 5.141 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007953/0.3209, allocations: 4 kB / 0.5229 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002098/0.3231, allocations: 0.6136 MB / 0.5235 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007048/0.3302, allocations: 2.242 MB / 0.5257 GB, free: 2.262 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.008024/0.3382, allocations: 2.926 MB / 0.5286 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001307/0.3395, allocations: 0.9248 MB / 0.5295 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.3397, allocations: 69.67 kB / 0.5295 GB, free: 14.32 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.5559/0.8956, allocations: 51.7 MB / 0.58 GB, free: 11.49 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000595/0.8962, allocations: 294.7 kB / 0.5803 GB, free: 11.2 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.8963, allocations: 40 kB / 0.5804 GB, free: 11.16 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3888/1.285, allocations: 27.25 MB / 0.607 GB, free: 64.83 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002333/1.285, allocations: 107.6 kB / 0.6071 GB, free: 64.83 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008329/1.286, allocations: 341.1 kB / 0.6074 GB, free: 64.83 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007369/1.294, allocations: 1.863 MB / 0.6092 GB, free: 64.73 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/1.294, allocations: 0.8438 kB / 0.6092 GB, free: 64.73 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.523e-06/1.294, allocations: 0 / 0.6092 GB, free: 64.73 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.513e-05/1.294, allocations: 1.062 kB / 0.6092 GB, free: 64.73 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.002136/1.296, allocations: 1.125 MB / 0.6103 GB, free: 64.08 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/1.296, allocations: 9.688 kB / 0.6103 GB, free: 64.08 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001578/1.296, allocations: 121.8 kB / 0.6104 GB, free: 64.04 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002231/1.298, allocations: 0.5024 MB / 0.6109 GB, free: 64 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003405/1.302, allocations: 337.8 kB / 0.6113 GB, free: 63.77 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.081e-05/1.302, allocations: 45.88 kB / 0.6113 GB, free: 63.77 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/1.302, allocations: 59.16 kB / 0.6114 GB, free: 63.77 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/1.304, allocations: 0.8678 MB / 0.6122 GB, free: 63.61 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/1.304, allocations: 0.6562 kB / 0.6122 GB, free: 63.61 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.772e-05/1.304, allocations: 34.75 kB / 0.6122 GB, free: 63.61 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.805e-05/1.304, allocations: 33.39 kB / 0.6123 GB, free: 63.61 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/1.305, allocations: 0.6985 MB / 0.6129 GB, free: 63.6 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003734/1.309, allocations: 5.013 MB / 0.6178 GB, free: 59.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006928/1.31, allocations: 331.9 kB / 0.6182 GB, free: 59.45 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002895/1.31, allocations: 216 kB / 0.6184 GB, free: 59.43 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001242/1.311, allocations: 1.534 MB / 0.6199 GB, free: 58.23 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/1.311, allocations: 40.42 kB / 0.6199 GB, free: 58.18 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 1.903e-06/1.311, allocations: 0 / 0.6199 GB, free: 58.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.00162/1.313, allocations: 0.5906 MB / 0.6205 GB, free: 58.12 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/1.313, allocations: 82.89 kB / 0.6206 GB, free: 58.03 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/1.313, allocations: 183.6 kB / 0.6207 GB, free: 57.92 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/1.313, allocations: 29.67 kB / 0.6208 GB, free: 57.89 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/1.313, allocations: 295.9 kB / 0.621 GB, free: 57.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/1.313, allocations: 243.2 kB / 0.6213 GB, free: 57.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/1.314, allocations: 93.39 kB / 0.6214 GB, free: 57.48 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.513e-05/1.314, allocations: 342.7 kB / 0.6217 GB, free: 57.17 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/1.314, allocations: 119.1 kB / 0.6218 GB, free: 57.17 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002785/1.314, allocations: 299.2 kB / 0.6221 GB, free: 56.96 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005305/1.315, allocations: 488.1 kB / 0.6226 GB, free: 56.74 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/1.315, allocations: 1.375 kB / 0.6226 GB, free: 56.74 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007645/1.315, allocations: 487.2 kB / 0.623 GB, free: 56.67 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/1.315, allocations: 11.84 kB / 0.623 GB, free: 56.67 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/1.316, allocations: 5.562 kB / 0.623 GB, free: 56.67 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/1.316, allocations: 7.375 kB / 0.623 GB, free: 56.67 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/1.316, allocations: 72.61 kB / 0.6231 GB, free: 56.67 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/1.316, allocations: 13.92 kB / 0.6231 GB, free: 56.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002692/1.316, allocations: 62.84 kB / 0.6232 GB, free: 56.63 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-05/1.316, allocations: 22 kB / 0.6232 GB, free: 56.63 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.0002081/1.316, allocations: 192.5 kB / 0.6234 GB, free: 56.51 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.091e-05/1.316, allocations: 35.34 kB / 0.6234 GB, free: 56.49 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.749e-05/1.316, allocations: 30.56 kB / 0.6235 GB, free: 56.48 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/1.317, allocations: 2.312 kB / 0.6235 GB, free: 56.48 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/1.317, allocations: 3.938 kB / 0.6235 GB, free: 56.48 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/1.317, allocations: 5.266 kB / 0.6235 GB, free: 56.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006978/1.317, allocations: 0.4932 MB / 0.6239 GB, free: 56.24 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/1.317, allocations: 4.688 kB / 0.624 GB, free: 56.24 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/1.317, allocations: 32.05 kB / 0.624 GB, free: 56.24 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/1.317, allocations: 4.844 kB / 0.624 GB, free: 56.23 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/1.317, allocations: 7.312 kB / 0.624 GB, free: 56.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/1.317, allocations: 1.406 kB / 0.624 GB, free: 56.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/1.317, allocations: 0.6875 kB / 0.624 GB, free: 56.23 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005789/1.318, allocations: 0.5064 MB / 0.6245 GB, free: 56 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.668e-05/1.318, allocations: 113.9 kB / 0.6246 GB, free: 55.88 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.81e-05/1.318, allocations: 8.344 kB / 0.6246 GB, free: 55.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/1.318, allocations: 6.547 kB / 0.6246 GB, free: 55.88 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.744e-05/1.318, allocations: 13.62 kB / 0.6246 GB, free: 55.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/1.318, allocations: 8.062 kB / 0.6246 GB, free: 55.88 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.14e-05/1.319, allocations: 128 kB / 0.6248 GB, free: 55.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.11e-07/1.319, allocations: 0 / 0.6248 GB, free: 55.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007716/1.319, allocations: 201.3 kB / 0.6249 GB, free: 55.76 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.001131/1.32, allocations: 1.229 MB / 0.6261 GB, free: 54.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0007914/1.321, allocations: 0.6091 MB / 0.6267 GB, free: 54.72 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/1.321, allocations: 4 kB / 0.6267 GB, free: 54.72 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003961/1.322, allocations: 0.4913 MB / 0.6272 GB, free: 54.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/1.323, allocations: 195 kB / 0.6274 GB, free: 54.36 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003767/1.326, allocations: 3.633 MB / 0.631 GB, free: 52.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/1.327, allocations: 0.9409 MB / 0.6319 GB, free: 51.56 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004847/1.327, allocations: 261.8 kB / 0.6321 GB, free: 51.53 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/1.328, allocations: 277.4 kB / 0.6324 GB, free: 51.52 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/1.328, allocations: 0 / 0.6324 GB, free: 51.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0828/1.41, allocations: 18.06 MB / 0.65 GB, free: 35.81 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.669/11.08, allocations: 8 kB / 0.65 GB, free: 35.8 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 & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit_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_Tabular_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe 2>&1)