Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_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.008583/0.008583, allocations: 101.8 kB / 15.73 MB, free: 5.992 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.002363/0.002364, allocations: 190.4 kB / 16.67 MB, free: 5.914 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.141 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1661/0.1661, allocations: 2.753 MB / 293.3 MB, free: 3.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 67.91 kB / 405.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2628, allocations: 50.23 MB / 455.7 MB, free: 20.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.0402/0.303, allocations: 50.72 MB / 0.4945 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02438/0.3275, allocations: 29.1 MB / 0.5229 GB, free: 5.145 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006597/0.3282, allocations: 8 kB / 0.5229 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.3298, allocations: 0.6097 MB / 0.5235 GB, free: 4.523 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006214/0.3361, allocations: 2.246 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.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008573/0.3447, allocations: 2.922 MB / 0.5286 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001582/0.3463, allocations: 0.9248 MB / 0.5295 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.3464, allocations: 69.66 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.3425/0.689, allocations: 51.05 MB / 0.5794 GB, free: 12.15 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006133/0.6896, allocations: 298.7 kB / 0.5797 GB, free: 11.86 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.6897, allocations: 40 kB / 0.5797 GB, free: 11.82 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4117/1.101, allocations: 26.93 MB / 0.606 GB, free: 65.16 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/1.102, allocations: 113.2 kB / 0.6061 GB, free: 65.16 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00064/1.102, allocations: 339.5 kB / 0.6064 GB, free: 65.16 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006897/1.109, allocations: 1.852 MB / 0.6083 GB, free: 65.13 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/1.109, allocations: 0.8125 kB / 0.6083 GB, free: 65.13 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.643e-06/1.109, allocations: 0 / 0.6083 GB, free: 65.13 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.24e-05/1.109, allocations: 0.9688 kB / 0.6083 GB, free: 65.13 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.002088/1.111, allocations: 1.101 MB / 0.6093 GB, free: 64.54 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/1.111, allocations: 9.984 kB / 0.6093 GB, free: 64.54 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001593/1.112, allocations: 118.3 kB / 0.6095 GB, free: 64.5 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002226/1.114, allocations: 0.4931 MB / 0.6099 GB, free: 64.47 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00178/1.116, allocations: 344.5 kB / 0.6103 GB, free: 64.24 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.223e-05/1.116, allocations: 50.78 kB / 0.6103 GB, free: 64.23 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.844e-05/1.116, allocations: 56.19 kB / 0.6104 GB, free: 64.23 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/1.117, allocations: 0.8701 MB / 0.6112 GB, free: 64.07 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/1.117, allocations: 0.5938 kB / 0.6112 GB, free: 64.07 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.483e-05/1.117, allocations: 25.38 kB / 0.6112 GB, free: 64.07 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.099e-05/1.118, allocations: 37.58 kB / 0.6113 GB, free: 64.07 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001416/1.119, allocations: 0.7051 MB / 0.612 GB, free: 64.06 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003486/1.122, allocations: 5.007 MB / 0.6169 GB, free: 59.98 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006966/1.123, allocations: 322.1 kB / 0.6172 GB, free: 59.93 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003617/1.124, allocations: 217.4 kB / 0.6174 GB, free: 59.91 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001252/1.125, allocations: 1.529 MB / 0.6189 GB, free: 58.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/1.125, allocations: 35.45 kB / 0.6189 GB, free: 58.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 1.844e-06/1.125, allocations: 0 / 0.6189 GB, free: 58.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001596/1.126, allocations: 0.6 MB / 0.6195 GB, free: 58.59 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/1.126, allocations: 80.19 kB / 0.6196 GB, free: 58.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/1.127, allocations: 182.5 kB / 0.6197 GB, free: 58.39 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/1.127, allocations: 30.33 kB / 0.6198 GB, free: 58.36 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/1.127, allocations: 282.9 kB / 0.62 GB, free: 58.15 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/1.127, allocations: 235.6 kB / 0.6203 GB, free: 58 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/1.127, allocations: 95.11 kB / 0.6203 GB, free: 57.97 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.906e-05/1.127, allocations: 347.3 kB / 0.6207 GB, free: 57.66 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002268/1.127, allocations: 118.7 kB / 0.6208 GB, free: 57.66 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/1.128, allocations: 296.4 kB / 0.6211 GB, free: 57.45 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005854/1.128, allocations: 485.6 kB / 0.6215 GB, free: 57.23 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/1.128, allocations: 2 kB / 0.6215 GB, free: 57.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007769/1.129, allocations: 489.3 kB / 0.622 GB, free: 57.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/1.129, allocations: 15.44 kB / 0.622 GB, free: 57.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/1.129, allocations: 6.031 kB / 0.622 GB, free: 57.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/1.129, allocations: 7.281 kB / 0.622 GB, free: 57.16 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002323/1.129, allocations: 71.06 kB / 0.6221 GB, free: 57.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/1.129, allocations: 14.3 kB / 0.6221 GB, free: 57.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003032/1.13, allocations: 52.84 kB / 0.6222 GB, free: 57.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.125e-05/1.13, allocations: 22.83 kB / 0.6222 GB, free: 57.12 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.0002/1.13, allocations: 192.3 kB / 0.6224 GB, free: 57 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.761e-05/1.13, allocations: 36.09 kB / 0.6224 GB, free: 56.98 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.674e-05/1.13, allocations: 28.72 kB / 0.6224 GB, free: 56.98 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/1.13, allocations: 2.344 kB / 0.6224 GB, free: 56.98 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/1.13, allocations: 1.531 kB / 0.6224 GB, free: 56.98 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/1.13, allocations: 5.719 kB / 0.6224 GB, free: 56.98 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005953/1.131, allocations: 497.2 kB / 0.6229 GB, free: 56.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/1.131, allocations: 0 / 0.6229 GB, free: 56.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/1.131, allocations: 30.91 kB / 0.6229 GB, free: 56.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/1.131, allocations: 4.969 kB / 0.6229 GB, free: 56.74 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/1.131, allocations: 6.969 kB / 0.623 GB, free: 56.74 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/1.131, allocations: 5.375 kB / 0.623 GB, free: 56.74 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/1.131, allocations: 3.094 kB / 0.623 GB, free: 56.74 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005929/1.132, allocations: 0.502 MB / 0.6235 GB, free: 56.51 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.481e-05/1.132, allocations: 117.1 kB / 0.6236 GB, free: 56.39 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/1.132, allocations: 5.031 kB / 0.6236 GB, free: 56.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002007/1.132, allocations: 9.625 kB / 0.6236 GB, free: 56.38 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.949e-05/1.132, allocations: 22.05 kB / 0.6236 GB, free: 56.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/1.132, allocations: 12.27 kB / 0.6236 GB, free: 56.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.711e-05/1.132, allocations: 118.2 kB / 0.6237 GB, free: 56.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.132, allocations: 2.734 kB / 0.6237 GB, free: 56.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0009492/1.133, allocations: 191.8 kB / 0.6239 GB, free: 56.27 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.001363/1.134, allocations: 1.241 MB / 0.6251 GB, free: 55.43 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008228/1.135, allocations: 0.5944 MB / 0.6257 GB, free: 55.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/1.135, allocations: 0 / 0.6257 GB, free: 55.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004099/1.136, allocations: 0.4907 MB / 0.6262 GB, free: 54.91 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/1.137, allocations: 198.1 kB / 0.6264 GB, free: 54.87 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00441/1.141, allocations: 3.612 MB / 0.6299 GB, free: 52.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003989/1.142, allocations: 0.9483 MB / 0.6308 GB, free: 52.08 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005007/1.142, allocations: 263 kB / 0.6311 GB, free: 52.06 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002625/1.142, allocations: 273.1 kB / 0.6313 GB, free: 52.05 MB / 462.1 MB Notification: Performance of SimCode: time 4.11e-07/1.142, allocations: 0 / 0.6313 GB, free: 52.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0349/1.177, allocations: 17.96 MB / 0.6489 GB, free: 36.86 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.679/9.856, allocations: 0 / 0.6489 GB, free: 36.86 MB / 462.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1)