Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.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.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical",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.005178/0.005178, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001288/0.001288, allocations: 193.5 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01203/0.01203, allocations: 2.78 MB / 293.3 MB, free: 11.96 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.00177, allocations: 75.89 kB / 405.4 MB, free: 29.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08299/0.08477, allocations: 50.22 MB / 455.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.05026/0.1351, allocations: 50.73 MB / 0.4945 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2144/0.3495, allocations: 29.08 MB / 0.5229 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004726/0.35, allocations: 10.31 kB / 0.5229 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.3518, allocations: 0.6113 MB / 0.5235 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008015/0.3598, allocations: 2.242 MB / 0.5257 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.TestBasePropertiesTranscritical.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.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.TestBasePropertiesTranscritical.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.007778/0.3676, allocations: 2.919 MB / 0.5286 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00114/0.3688, allocations: 0.9246 MB / 0.5295 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.3689, allocations: 60.77 kB / 0.5295 GB, free: 1.504 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.4255/0.7944, allocations: 51.05 MB / 0.5794 GB, free: 13.94 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006929/0.7951, allocations: 300.7 kB / 0.5797 GB, free: 13.71 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.587e-05/0.7952, allocations: 40 kB / 0.5797 GB, free: 13.67 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2146/1.01, allocations: 26.93 MB / 0.606 GB, free: 4.848 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/1.01, allocations: 111.6 kB / 0.6061 GB, free: 4.785 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005671/1.011, allocations: 345.8 kB / 0.6064 GB, free: 4.496 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006869/1.018, allocations: 1.857 MB / 0.6083 GB, free: 2.918 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/1.018, allocations: 0 / 0.6083 GB, free: 2.918 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.192e-06/1.018, allocations: 0 / 0.6083 GB, free: 2.918 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/1.018, allocations: 0 / 0.6083 GB, free: 2.918 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.001625/1.019, allocations: 1.128 MB / 0.6094 GB, free: 1.746 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/1.019, allocations: 12.03 kB / 0.6094 GB, free: 1.734 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001351/1.019, allocations: 119 kB / 0.6095 GB, free: 1.609 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001977/1.021, allocations: 0.5 MB / 0.61 GB, free: 1.109 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002133/1.024, allocations: 343.5 kB / 0.6103 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.333e-05/1.024, allocations: 45.88 kB / 0.6103 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.883e-05/1.024, allocations: 59.88 kB / 0.6104 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/1.025, allocations: 0.8685 MB / 0.6112 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/1.025, allocations: 7.984 kB / 0.6113 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.18e-05/1.025, allocations: 23.94 kB / 0.6113 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.465e-05/1.025, allocations: 31.98 kB / 0.6113 GB, free: 15.65 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/1.027, allocations: 0.7078 MB / 0.612 GB, free: 14.95 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004824/1.032, allocations: 4.945 MB / 0.6168 GB, free: 9.422 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000784/1.032, allocations: 345 kB / 0.6172 GB, free: 9.066 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003827/1.033, allocations: 225.7 kB / 0.6174 GB, free: 8.84 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001507/1.034, allocations: 1.549 MB / 0.6189 GB, free: 7.121 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/1.034, allocations: 38.56 kB / 0.6189 GB, free: 7.074 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 2.134e-06/1.034, allocations: 4 kB / 0.6189 GB, free: 7.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001709/1.036, allocations: 0.6239 MB / 0.6195 GB, free: 6.441 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.835e-05/1.036, allocations: 77.11 kB / 0.6196 GB, free: 6.348 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001878/1.036, allocations: 171.7 kB / 0.6198 GB, free: 6.172 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/1.036, allocations: 29.7 kB / 0.6198 GB, free: 6.137 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002002/1.037, allocations: 296.4 kB / 0.6201 GB, free: 5.84 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001876/1.037, allocations: 248.3 kB / 0.6203 GB, free: 5.602 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/1.037, allocations: 97.95 kB / 0.6204 GB, free: 5.496 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/1.037, allocations: 342.8 kB / 0.6207 GB, free: 5.152 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/1.037, allocations: 125.3 kB / 0.6209 GB, free: 5.031 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004078/1.038, allocations: 285.4 kB / 0.6211 GB, free: 4.688 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007619/1.039, allocations: 477.5 kB / 0.6216 GB, free: 4.152 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/1.039, allocations: 4 kB / 0.6216 GB, free: 4.148 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009047/1.039, allocations: 488.5 kB / 0.6221 GB, free: 3.664 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/1.04, allocations: 11.94 kB / 0.6221 GB, free: 3.652 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.838e-05/1.04, allocations: 8.359 kB / 0.6221 GB, free: 3.645 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/1.04, allocations: 8 kB / 0.6221 GB, free: 3.637 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/1.04, allocations: 67.91 kB / 0.6221 GB, free: 3.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/1.04, allocations: 15.92 kB / 0.6222 GB, free: 3.555 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002338/1.04, allocations: 55.5 kB / 0.6222 GB, free: 3.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.825e-05/1.04, allocations: 20 kB / 0.6222 GB, free: 3.48 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium1.baseProperties.phaseOutput,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput) * 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.0002394/1.04, allocations: 201.9 kB / 0.6224 GB, free: 3.273 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.143e-05/1.04, allocations: 35.7 kB / 0.6225 GB, free: 3.238 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.087e-05/1.041, allocations: 25.97 kB / 0.6225 GB, free: 3.219 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.413e-06/1.041, allocations: 4 kB / 0.6225 GB, free: 3.215 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/1.041, allocations: 0 / 0.6225 GB, free: 3.215 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/1.041, allocations: 0 / 0.6225 GB, free: 3.215 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006525/1.041, allocations: 0.4966 MB / 0.623 GB, free: 2.676 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/1.041, allocations: 4 kB / 0.623 GB, free: 2.672 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/1.041, allocations: 35.92 kB / 0.623 GB, free: 2.637 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/1.041, allocations: 3.938 kB / 0.623 GB, free: 2.633 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/1.041, allocations: 11.98 kB / 0.623 GB, free: 2.621 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/1.041, allocations: 0 / 0.623 GB, free: 2.621 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.041, allocations: 4 kB / 0.623 GB, free: 2.617 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008059/1.042, allocations: 0.5256 MB / 0.6235 GB, free: 2.078 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.973e-05/1.042, allocations: 112.7 kB / 0.6237 GB, free: 1.949 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.975e-05/1.042, allocations: 15.92 kB / 0.6237 GB, free: 1.934 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/1.043, allocations: 8 kB / 0.6237 GB, free: 1.926 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.565e-05/1.043, allocations: 19.97 kB / 0.6237 GB, free: 1.906 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/1.043, allocations: 19.98 kB / 0.6237 GB, free: 1.887 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001043/1.043, allocations: 111.3 kB / 0.6238 GB, free: 1.777 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.61e-07/1.043, allocations: 0 / 0.6238 GB, free: 1.777 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006952/1.044, allocations: 203.4 kB / 0.624 GB, free: 1.578 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: 4 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.baseProperties.phaseOutput,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * 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.001605/1.045, allocations: 1.248 MB / 0.6252 GB, free: 332 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001129/1.046, allocations: 0.6157 MB / 0.6258 GB, free: 15.68 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/1.046, allocations: 4 kB / 0.6258 GB, free: 15.68 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006002/1.047, allocations: 0.5002 MB / 0.6263 GB, free: 15.11 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/1.048, allocations: 196.8 kB / 0.6265 GB, free: 14.91 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004973/1.053, allocations: 3.628 MB / 0.6301 GB, free: 11.09 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006488/1.054, allocations: 0.9436 MB / 0.631 GB, free: 10.11 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000616/1.054, allocations: 265.8 kB / 0.6312 GB, free: 9.855 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003354/1.055, allocations: 279.3 kB / 0.6315 GB, free: 9.582 MB / 478.1 MB Notification: Performance of SimCode: time 7.12e-07/1.055, allocations: 0 / 0.6315 GB, free: 9.582 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04549/1.1, allocations: 18.46 MB / 0.6495 GB, free: 7.121 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.011/10.11, allocations: 22.39 kB / 0.6495 GB, free: 7.102 MB / 494.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe 2>&1)