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.004856/0.004856, allocations: 98.75 kB / 15.73 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.001264/0.001264, allocations: 189.1 kB / 16.67 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.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.1275/0.1275, allocations: 2.763 MB / 293.3 MB, free: 3.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 60.14 kB / 405.4 MB, free: 1.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2146/0.2164, allocations: 50.24 MB / 455.7 MB, free: 20.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.04137/0.2578, allocations: 50.75 MB / 0.4945 GB, free: 15.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02657/0.2844, allocations: 29.1 MB / 0.523 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000552/0.285, allocations: 7.938 kB / 0.523 GB, free: 5.078 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001684/0.2867, allocations: 0.6136 MB / 0.5236 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006396/0.2931, allocations: 2.246 MB / 0.5258 GB, free: 2.199 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.008061/0.3012, allocations: 2.918 MB / 0.5286 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001455/0.3027, allocations: 0.9324 MB / 0.5295 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.3028, allocations: 69.59 kB / 0.5296 GB, free: 14.25 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.4378/0.7407, allocations: 51.04 MB / 0.5794 GB, free: 12.1 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006499/0.7413, allocations: 302.6 kB / 0.5797 GB, free: 11.8 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.7414, allocations: 43.94 kB / 0.5798 GB, free: 11.76 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4233/1.165, allocations: 26.91 MB / 0.606 GB, free: 65.18 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001921/1.165, allocations: 115.2 kB / 0.6062 GB, free: 65.18 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005317/1.165, allocations: 341.5 kB / 0.6065 GB, free: 65.18 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007194/1.173, allocations: 1.861 MB / 0.6083 GB, free: 65.09 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/1.173, allocations: 3.938 kB / 0.6083 GB, free: 65.08 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.984e-06/1.173, allocations: 0 / 0.6083 GB, free: 65.08 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/1.173, allocations: 0 / 0.6083 GB, free: 65.08 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.001635/1.174, allocations: 1.136 MB / 0.6094 GB, free: 64.42 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/1.174, allocations: 9.781 kB / 0.6094 GB, free: 64.42 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/1.175, allocations: 113.7 kB / 0.6095 GB, free: 64.38 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002051/1.177, allocations: 0.5009 MB / 0.61 GB, free: 64.35 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001838/1.178, allocations: 342.5 kB / 0.6103 GB, free: 64.12 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.333e-05/1.179, allocations: 43.03 kB / 0.6104 GB, free: 64.12 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.996e-05/1.179, allocations: 58.94 kB / 0.6104 GB, free: 64.11 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/1.18, allocations: 0.8677 MB / 0.6113 GB, free: 63.95 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/1.18, allocations: 4.531 kB / 0.6113 GB, free: 63.95 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.227e-05/1.18, allocations: 26.72 kB / 0.6113 GB, free: 63.95 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.094e-05/1.18, allocations: 32.72 kB / 0.6114 GB, free: 63.95 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/1.182, allocations: 0.7044 MB / 0.612 GB, free: 63.95 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003325/1.185, allocations: 5.131 MB / 0.6171 GB, free: 59.73 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006451/1.186, allocations: 332.5 kB / 0.6174 GB, free: 59.68 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002908/1.186, allocations: 224.5 kB / 0.6176 GB, free: 59.66 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001256/1.187, allocations: 1.539 MB / 0.6191 GB, free: 58.45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/1.187, allocations: 37.69 kB / 0.6191 GB, free: 58.41 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.274e-06/1.187, allocations: 0 / 0.6191 GB, free: 58.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.002019/1.189, allocations: 0.6 MB / 0.6197 GB, free: 58.34 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/1.189, allocations: 84.14 kB / 0.6198 GB, free: 58.25 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/1.19, allocations: 186.4 kB / 0.62 GB, free: 58.14 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/1.19, allocations: 31.45 kB / 0.62 GB, free: 58.11 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001958/1.19, allocations: 301.2 kB / 0.6203 GB, free: 57.89 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/1.19, allocations: 237.8 kB / 0.6205 GB, free: 57.72 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001878/1.19, allocations: 98.69 kB / 0.6206 GB, free: 57.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/1.19, allocations: 346.5 kB / 0.6209 GB, free: 57.38 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/1.191, allocations: 117.9 kB / 0.621 GB, free: 57.38 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003375/1.191, allocations: 301 kB / 0.6213 GB, free: 57.18 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005719/1.191, allocations: 489.1 kB / 0.6218 GB, free: 56.96 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/1.191, allocations: 1.906 kB / 0.6218 GB, free: 56.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007035/1.192, allocations: 495.3 kB / 0.6223 GB, free: 56.89 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/1.192, allocations: 14.31 kB / 0.6223 GB, free: 56.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/1.192, allocations: 6.469 kB / 0.6223 GB, free: 56.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/1.192, allocations: 7.594 kB / 0.6223 GB, free: 56.88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000331/1.193, allocations: 78.64 kB / 0.6224 GB, free: 56.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003576/1.193, allocations: 1.187 MB / 0.6235 GB, free: 55.71 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002376/1.193, allocations: 60.42 kB / 0.6236 GB, free: 55.67 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.582e-05/1.193, allocations: 23.22 kB / 0.6236 GB, free: 55.67 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.0001987/1.193, allocations: 192 kB / 0.6238 GB, free: 55.55 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.973e-05/1.194, allocations: 26.59 kB / 0.6238 GB, free: 55.54 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.883e-05/1.194, allocations: 29.39 kB / 0.6239 GB, free: 55.54 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/1.194, allocations: 6.375 kB / 0.6239 GB, free: 55.53 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/1.194, allocations: 9.188 kB / 0.6239 GB, free: 55.52 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/1.194, allocations: 0 / 0.6239 GB, free: 55.52 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005737/1.194, allocations: 0.4932 MB / 0.6243 GB, free: 55.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/1.194, allocations: 0 / 0.6243 GB, free: 55.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/1.194, allocations: 39.83 kB / 0.6244 GB, free: 55.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/1.194, allocations: 1.781 kB / 0.6244 GB, free: 55.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/1.194, allocations: 9.062 kB / 0.6244 GB, free: 55.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003182/1.195, allocations: 1.177 MB / 0.6255 GB, free: 54.12 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/1.195, allocations: 0 / 0.6255 GB, free: 54.12 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008541/1.196, allocations: 0.5135 MB / 0.626 GB, free: 53.88 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.194e-05/1.196, allocations: 116.8 kB / 0.6262 GB, free: 53.76 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.341e-05/1.196, allocations: 4.5 kB / 0.6262 GB, free: 53.76 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/1.196, allocations: 6.969 kB / 0.6262 GB, free: 53.76 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.169e-05/1.196, allocations: 16.31 kB / 0.6262 GB, free: 53.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/1.196, allocations: 6 kB / 0.6262 GB, free: 53.76 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.726e-05/1.196, allocations: 130.8 kB / 0.6263 GB, free: 53.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.196, allocations: 0 / 0.6263 GB, free: 53.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007119/1.197, allocations: 195.3 kB / 0.6265 GB, free: 53.65 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.001144/1.198, allocations: 1.255 MB / 0.6277 GB, free: 52.79 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008629/1.199, allocations: 0.6213 MB / 0.6283 GB, free: 52.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/1.199, allocations: 4.188 kB / 0.6283 GB, free: 52.59 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004992/1.199, allocations: 0.5119 MB / 0.6288 GB, free: 52.27 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/1.2, allocations: 190 kB / 0.629 GB, free: 52.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003866/1.204, allocations: 3.672 MB / 0.6326 GB, free: 50.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/1.205, allocations: 0.9502 MB / 0.6335 GB, free: 49.42 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000441/1.205, allocations: 212.8 kB / 0.6337 GB, free: 49.39 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002408/1.205, allocations: 270.4 kB / 0.634 GB, free: 49.39 MB / 462.1 MB Notification: Performance of SimCode: time 5.61e-07/1.205, allocations: 3.25 kB / 0.634 GB, free: 49.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03973/1.245, allocations: 18.34 MB / 0.6519 GB, free: 33.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/13.52, allocations: 8.641 kB / 0.6519 GB, free: 33.69 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1)