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: translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 103.6 kB / 16.4 MB, free: 5.977 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.001826/0.001826, allocations: 190.8 kB / 17.34 MB, free: 5.586 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01311/0.01311, allocations: 2.774 MB / 294 MB, free: 11.96 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 67.97 kB / 406.6 MB, free: 29.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08489/0.08605, allocations: 50.23 MB / 456.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.04795/0.134, allocations: 50.75 MB / 0.4957 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2743/0.4084, allocations: 29.1 MB / 0.5241 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00057/0.409, allocations: 3.156 kB / 0.5241 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001562/0.4106, allocations: 0.6145 MB / 0.5247 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007148/0.4178, allocations: 2.256 MB / 0.5269 GB, free: 3.184 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.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.008774/0.4266, allocations: 2.919 MB / 0.5298 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001414/0.428, allocations: 0.9308 MB / 0.5307 GB, free: 2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.4282, allocations: 62.53 kB / 0.5307 GB, free: 1.988 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.3248/0.7529, allocations: 51.05 MB / 0.5806 GB, free: 14.1 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008255/0.7538, allocations: 315.1 kB / 0.5809 GB, free: 13.86 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001423/0.7539, allocations: 40 kB / 0.5809 GB, free: 13.82 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1619/0.9159, allocations: 26.94 MB / 0.6072 GB, free: 4.984 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002844/0.9162, allocations: 112.5 kB / 0.6073 GB, free: 4.887 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007191/0.9169, allocations: 336 kB / 0.6077 GB, free: 4.562 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008149/0.9251, allocations: 1.865 MB / 0.6095 GB, free: 2.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.9251, allocations: 0 / 0.6095 GB, free: 2.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.9251, allocations: 0 / 0.6095 GB, free: 2.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.354e-05/0.9251, allocations: 0 / 0.6095 GB, free: 2.98 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.002054/0.9272, allocations: 1.094 MB / 0.6106 GB, free: 1.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.103e-05/0.9273, allocations: 12.03 kB / 0.6106 GB, free: 1.828 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002893/0.9302, allocations: 0.4958 MB / 0.611 GB, free: 1.332 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002553/0.9328, allocations: 339.4 kB / 0.6114 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.164e-05/0.9328, allocations: 46.06 kB / 0.6114 GB, free: 0.918 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.9329, allocations: 56 kB / 0.6115 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002163/0.9351, allocations: 0.8685 MB / 0.6123 GB, free: 15.94 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.307e-05/0.9352, allocations: 11.88 kB / 0.6123 GB, free: 15.93 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.882e-05/0.9352, allocations: 20 kB / 0.6123 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.565e-05/0.9353, allocations: 35.94 kB / 0.6124 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.9366, allocations: 0.7039 MB / 0.6131 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004563/0.9412, allocations: 5.12 MB / 0.6181 GB, free: 9.453 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007477/0.942, allocations: 329.1 kB / 0.6184 GB, free: 9.113 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003252/0.9423, allocations: 225.6 kB / 0.6186 GB, free: 8.887 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001578/0.9439, allocations: 1.533 MB / 0.6201 GB, free: 7.184 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.944, allocations: 42.5 kB / 0.6201 GB, free: 7.133 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.124e-06/0.944, allocations: 4 kB / 0.6201 GB, free: 7.129 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001616/0.9456, allocations: 0.5969 MB / 0.6207 GB, free: 6.527 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.291e-05/0.9457, allocations: 77.11 kB / 0.6208 GB, free: 6.434 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.9459, allocations: 182.7 kB / 0.621 GB, free: 6.246 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.9459, allocations: 29.7 kB / 0.621 GB, free: 6.211 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.9461, allocations: 286.6 kB / 0.6213 GB, free: 5.926 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/0.9463, allocations: 237.8 kB / 0.6215 GB, free: 5.695 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.9465, allocations: 97.91 kB / 0.6216 GB, free: 5.59 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.9466, allocations: 334.8 kB / 0.6219 GB, free: 5.254 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002423/0.9469, allocations: 125.3 kB / 0.622 GB, free: 5.133 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003699/0.9472, allocations: 300.7 kB / 0.6223 GB, free: 4.766 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006968/0.948, allocations: 0.4889 MB / 0.6228 GB, free: 4.199 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.948, allocations: 0 / 0.6228 GB, free: 4.199 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008419/0.9488, allocations: 488.3 kB / 0.6233 GB, free: 3.715 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.9488, allocations: 8.188 kB / 0.6233 GB, free: 3.707 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.9489, allocations: 7.938 kB / 0.6233 GB, free: 3.699 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.439e-05/0.9489, allocations: 11.94 kB / 0.6233 GB, free: 3.688 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003499/0.9493, allocations: 83.89 kB / 0.6234 GB, free: 3.605 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.9503, allocations: 1.184 MB / 0.6245 GB, free: 2.375 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002847/0.9506, allocations: 55.28 kB / 0.6246 GB, free: 2.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.9506, allocations: 24 kB / 0.6246 GB, free: 2.297 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.0002746/0.9509, allocations: 190.6 kB / 0.6248 GB, free: 2.102 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.547e-05/0.951, allocations: 23.81 kB / 0.6248 GB, free: 2.078 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.092e-05/0.9511, allocations: 34.66 kB / 0.6248 GB, free: 2.047 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.9511, allocations: 0 / 0.6248 GB, free: 2.047 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.9511, allocations: 7.938 kB / 0.6248 GB, free: 2.039 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.9511, allocations: 0 / 0.6248 GB, free: 2.039 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006839/0.9518, allocations: 0.4941 MB / 0.6253 GB, free: 1.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.9518, allocations: 0 / 0.6253 GB, free: 1.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001841/0.952, allocations: 43.91 kB / 0.6254 GB, free: 1.457 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.952, allocations: 4 kB / 0.6254 GB, free: 1.453 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.952, allocations: 4 kB / 0.6254 GB, free: 1.449 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006406/0.9527, allocations: 1.172 MB / 0.6265 GB, free: 236 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.205e-05/0.9527, allocations: 0 / 0.6265 GB, free: 236 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006791/0.9534, allocations: 0.5177 MB / 0.627 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.9535, allocations: 112.6 kB / 0.6271 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.9535, allocations: 4 kB / 0.6271 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.9537, allocations: 7.984 kB / 0.6271 GB, free: 15.56 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.85e-05/0.9538, allocations: 15.98 kB / 0.6272 GB, free: 15.54 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.952e-05/0.9538, allocations: 8 kB / 0.6272 GB, free: 15.54 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000102/0.9539, allocations: 128.2 kB / 0.6273 GB, free: 15.41 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9539, allocations: 4 kB / 0.6273 GB, free: 15.41 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007451/0.9547, allocations: 191.3 kB / 0.6275 GB, free: 15.22 MB / 478.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.000592/0.9553, allocations: 297.4 kB / 0.6278 GB, free: 14.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.9563, allocations: 0.6192 MB / 0.6284 GB, free: 14.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.9563, allocations: 0 / 0.6284 GB, free: 14.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000617/0.957, allocations: 0.5116 MB / 0.6289 GB, free: 13.72 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.9581, allocations: 200.9 kB / 0.6291 GB, free: 13.52 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/0.96, allocations: 1.122 MB / 0.6302 GB, free: 12.37 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006599/0.9607, allocations: 0.9465 MB / 0.6311 GB, free: 11.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.9608, allocations: 51.44 kB / 0.6311 GB, free: 11.35 MB / 478.1 MB Notification: Performance of SimCode: time 2.554e-06/0.9608, allocations: 0 / 0.6311 GB, free: 11.35 MB / 478.1 MB Notification: Performance of Templates: time 0.02232/0.9831, allocations: 16.27 MB / 0.647 GB, free: 11.09 MB / 494.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.makefile (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 & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1)