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: translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006718/0.006718, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001418/0.001418, allocations: 196.1 kB / 16.67 MB, free: 5.52 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01536/0.01536, allocations: 2.766 MB / 293.3 MB, free: 12 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 60.12 kB / 405.9 MB, free: 29.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1279, allocations: 50.24 MB / 456.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.0545/0.1825, allocations: 50.72 MB / 0.495 GB, free: 7.906 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3788/0.5613, allocations: 29.09 MB / 0.5234 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008104/0.5622, allocations: 2.344 kB / 0.5234 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002358/0.5646, allocations: 0.6147 MB / 0.524 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01078/0.5754, allocations: 2.251 MB / 0.5262 GB, free: 3.227 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.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.01185/0.5873, allocations: 2.93 MB / 0.5291 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001806/0.5892, allocations: 0.9265 MB / 0.53 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.5893, allocations: 64.66 kB / 0.53 GB, free: 2.02 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.3517/0.941, allocations: 51.05 MB / 0.5799 GB, free: 14.17 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007566/0.9418, allocations: 301.9 kB / 0.5802 GB, free: 13.94 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.9419, allocations: 40 kB / 0.5802 GB, free: 13.9 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1738/1.116, allocations: 26.94 MB / 0.6065 GB, free: 5.031 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002551/1.116, allocations: 112.8 kB / 0.6066 GB, free: 4.93 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007503/1.117, allocations: 333 kB / 0.6069 GB, free: 4.605 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009889/1.127, allocations: 1.857 MB / 0.6087 GB, free: 3.031 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/1.127, allocations: 0 / 0.6087 GB, free: 3.031 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.144e-06/1.127, allocations: 0 / 0.6087 GB, free: 3.031 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.301e-05/1.127, allocations: 0 / 0.6087 GB, free: 3.031 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.002/1.129, allocations: 1.103 MB / 0.6098 GB, free: 1.883 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/1.129, allocations: 12.03 kB / 0.6098 GB, free: 1.871 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002159/1.131, allocations: 499.7 kB / 0.6103 GB, free: 1.383 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002556/1.134, allocations: 346.9 kB / 0.6106 GB, free: 1.008 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.209e-05/1.134, allocations: 46.06 kB / 0.6107 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.494e-05/1.134, allocations: 56 kB / 0.6107 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001783/1.136, allocations: 0.8684 MB / 0.6116 GB, free: 15.99 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/1.136, allocations: 3.938 kB / 0.6116 GB, free: 15.99 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.804e-05/1.136, allocations: 24 kB / 0.6116 GB, free: 15.96 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-05/1.136, allocations: 35.97 kB / 0.6116 GB, free: 15.93 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00144/1.137, allocations: 0.7 MB / 0.6123 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005494/1.143, allocations: 5.009 MB / 0.6172 GB, free: 9.641 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007924/1.143, allocations: 325.1 kB / 0.6175 GB, free: 9.305 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003251/1.144, allocations: 221.5 kB / 0.6177 GB, free: 9.082 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001521/1.145, allocations: 1.521 MB / 0.6192 GB, free: 7.391 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/1.145, allocations: 34.56 kB / 0.6193 GB, free: 7.348 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.315e-06/1.145, allocations: 0 / 0.6193 GB, free: 7.348 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001656/1.147, allocations: 0.5998 MB / 0.6198 GB, free: 6.746 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/1.147, allocations: 85.05 kB / 0.6199 GB, free: 6.645 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/1.147, allocations: 182.7 kB / 0.6201 GB, free: 6.457 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/1.147, allocations: 29.7 kB / 0.6201 GB, free: 6.422 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/1.148, allocations: 291.4 kB / 0.6204 GB, free: 6.129 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001992/1.148, allocations: 226.1 kB / 0.6206 GB, free: 5.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/1.148, allocations: 94 kB / 0.6207 GB, free: 5.809 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/1.148, allocations: 338.8 kB / 0.621 GB, free: 5.469 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002551/1.148, allocations: 121.3 kB / 0.6212 GB, free: 5.352 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003859/1.149, allocations: 300.6 kB / 0.6214 GB, free: 4.984 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000637/1.15, allocations: 488.7 kB / 0.6219 GB, free: 4.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/1.15, allocations: 0 / 0.6219 GB, free: 4.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.000839/1.15, allocations: 488 kB / 0.6224 GB, free: 3.945 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/1.15, allocations: 8 kB / 0.6224 GB, free: 3.938 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/1.15, allocations: 7.938 kB / 0.6224 GB, free: 3.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/1.15, allocations: 8.719 kB / 0.6224 GB, free: 3.922 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002532/1.151, allocations: 67.91 kB / 0.6225 GB, free: 3.855 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.159e-05/1.151, allocations: 19.92 kB / 0.6225 GB, free: 3.836 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/1.151, allocations: 59.28 kB / 0.6225 GB, free: 3.777 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.732e-05/1.151, allocations: 20 kB / 0.6226 GB, free: 3.758 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.0002454/1.151, allocations: 190.6 kB / 0.6227 GB, free: 3.562 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.247e-05/1.151, allocations: 27.62 kB / 0.6228 GB, free: 3.535 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.789e-05/1.152, allocations: 30.59 kB / 0.6228 GB, free: 3.508 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/1.152, allocations: 0 / 0.6228 GB, free: 3.508 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/1.152, allocations: 4 kB / 0.6228 GB, free: 3.504 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/1.152, allocations: 4 kB / 0.6228 GB, free: 3.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007306/1.152, allocations: 0.4944 MB / 0.6233 GB, free: 2.961 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/1.152, allocations: 0 / 0.6233 GB, free: 2.961 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/1.152, allocations: 27.97 kB / 0.6233 GB, free: 2.934 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/1.152, allocations: 0 / 0.6233 GB, free: 2.934 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/1.152, allocations: 11.94 kB / 0.6233 GB, free: 2.922 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/1.152, allocations: 4 kB / 0.6233 GB, free: 2.918 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/1.152, allocations: 0 / 0.6233 GB, free: 2.918 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006395/1.153, allocations: 0.5098 MB / 0.6238 GB, free: 2.395 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/1.153, allocations: 112.6 kB / 0.6239 GB, free: 2.266 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.052e-05/1.153, allocations: 11.94 kB / 0.6239 GB, free: 2.254 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001668/1.153, allocations: 4 kB / 0.6239 GB, free: 2.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.605e-05/1.154, allocations: 19.98 kB / 0.624 GB, free: 2.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/1.154, allocations: 7.984 kB / 0.624 GB, free: 2.223 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001228/1.154, allocations: 124.2 kB / 0.6241 GB, free: 2.102 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.154, allocations: 4.188 kB / 0.6241 GB, free: 2.098 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008077/1.155, allocations: 195.3 kB / 0.6243 GB, free: 1.906 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.0006197/1.155, allocations: 287.3 kB / 0.6246 GB, free: 1.645 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009655/1.156, allocations: 0.6139 MB / 0.6252 GB, free: 1.008 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/1.156, allocations: 0 / 0.6252 GB, free: 1.008 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005454/1.157, allocations: 0.4959 MB / 0.6256 GB, free: 448 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0012/1.158, allocations: 188.5 kB / 0.6258 GB, free: 260 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/1.16, allocations: 1.028 MB / 0.6268 GB, free: 15.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006088/1.16, allocations: 0.9426 MB / 0.6277 GB, free: 14.23 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005359/1.161, allocations: 253.9 kB / 0.628 GB, free: 13.98 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.72e-05/1.161, allocations: 47.44 kB / 0.628 GB, free: 13.93 MB / 478.1 MB Notification: Performance of SimCode: time 4.61e-07/1.161, allocations: 0 / 0.628 GB, free: 13.93 MB / 478.1 MB Notification: Performance of Templates: time 0.02097/1.182, allocations: 11.04 MB / 0.6388 GB, free: 2.91 MB / 478.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.makefile (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 & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1)