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.001503/0.001503, allocations: 106.5 kB / 16.41 MB, free: 6.488 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.001633/0.001633, allocations: 187 kB / 17.34 MB, free: 5.73 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.307/1.307, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01271/0.01271, allocations: 2.782 MB / 294 MB, free: 11.97 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 63.91 kB / 406.6 MB, free: 29.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09287/0.09413, allocations: 50.23 MB / 456.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.05051/0.1447, allocations: 50.71 MB / 0.4956 GB, free: 7.887 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.248/0.3927, allocations: 29.09 MB / 0.5241 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005448/0.3933, allocations: 6.938 kB / 0.5241 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.3949, allocations: 0.6162 MB / 0.5247 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006197/0.4011, allocations: 2.251 MB / 0.5269 GB, free: 3.238 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.008547/0.4097, allocations: 2.925 MB / 0.5297 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001279/0.411, allocations: 0.9178 MB / 0.5306 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.4111, allocations: 59.69 kB / 0.5307 GB, free: 2.027 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.323/0.7342, allocations: 51.06 MB / 0.5805 GB, free: 14.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008549/0.735, allocations: 301.7 kB / 0.5808 GB, free: 13.95 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.775e-05/0.7351, allocations: 39.94 kB / 0.5809 GB, free: 13.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1688/0.9039, allocations: 26.94 MB / 0.6072 GB, free: 5.051 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002812/0.9042, allocations: 101.5 kB / 0.6073 GB, free: 4.957 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000775/0.905, allocations: 343.3 kB / 0.6076 GB, free: 4.625 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008675/0.9137, allocations: 1.848 MB / 0.6094 GB, free: 3.059 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.9138, allocations: 4 kB / 0.6094 GB, free: 3.055 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.337e-06/0.9138, allocations: 0 / 0.6094 GB, free: 3.055 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.284e-05/0.9138, allocations: 3.938 kB / 0.6094 GB, free: 3.051 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.002011/0.9158, allocations: 1.105 MB / 0.6105 GB, free: 1.902 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.9159, allocations: 8.031 kB / 0.6105 GB, free: 1.895 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002209/0.9181, allocations: 0.4919 MB / 0.611 GB, free: 1.402 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002781/0.9209, allocations: 335.4 kB / 0.6113 GB, free: 1.035 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.379e-05/0.921, allocations: 46.06 kB / 0.6113 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.408e-05/0.9211, allocations: 56 kB / 0.6114 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001632/0.9227, allocations: 0.8762 MB / 0.6122 GB, free: 12 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.9228, allocations: 3.938 kB / 0.6123 GB, free: 8 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.098e-05/0.9228, allocations: 28.05 kB / 0.6123 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.345e-05/0.9229, allocations: 31.92 kB / 0.6123 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.9242, allocations: 0.6961 MB / 0.613 GB, free: 15.26 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004369/0.9286, allocations: 5.01 MB / 0.6179 GB, free: 9.664 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007079/0.9293, allocations: 329.1 kB / 0.6182 GB, free: 9.324 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003086/0.9296, allocations: 221.5 kB / 0.6184 GB, free: 9.102 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001477/0.9311, allocations: 1.524 MB / 0.6199 GB, free: 7.41 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.9312, allocations: 34.56 kB / 0.6199 GB, free: 7.367 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.284e-06/0.9312, allocations: 0 / 0.6199 GB, free: 7.367 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001599/0.9328, allocations: 0.593 MB / 0.6205 GB, free: 6.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/0.9329, allocations: 81.05 kB / 0.6206 GB, free: 6.672 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.9331, allocations: 186.7 kB / 0.6208 GB, free: 6.48 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.9331, allocations: 25.7 kB / 0.6208 GB, free: 6.449 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.9333, allocations: 295.4 kB / 0.6211 GB, free: 6.152 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.9335, allocations: 227 kB / 0.6213 GB, free: 5.934 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.9336, allocations: 90.02 kB / 0.6214 GB, free: 5.836 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.9337, allocations: 342.8 kB / 0.6217 GB, free: 5.492 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002192/0.934, allocations: 117.3 kB / 0.6218 GB, free: 5.379 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003372/0.9343, allocations: 300.7 kB / 0.6221 GB, free: 5.012 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006044/0.9349, allocations: 484.6 kB / 0.6226 GB, free: 4.461 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.9349, allocations: 4 kB / 0.6226 GB, free: 4.457 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007755/0.9357, allocations: 488.1 kB / 0.623 GB, free: 3.973 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.9358, allocations: 8 kB / 0.623 GB, free: 3.965 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.9358, allocations: 12.66 kB / 0.623 GB, free: 3.953 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.9358, allocations: 11.94 kB / 0.6231 GB, free: 3.941 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002452/0.9361, allocations: 71.91 kB / 0.6231 GB, free: 3.871 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.726e-05/0.9361, allocations: 15.92 kB / 0.6231 GB, free: 3.855 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002494/0.9363, allocations: 59.28 kB / 0.6232 GB, free: 3.797 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/0.9364, allocations: 24 kB / 0.6232 GB, free: 3.773 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.0002448/0.9366, allocations: 182.6 kB / 0.6234 GB, free: 3.586 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.732e-05/0.9367, allocations: 27.62 kB / 0.6234 GB, free: 3.559 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.225e-05/0.9368, allocations: 38.58 kB / 0.6235 GB, free: 3.523 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.9368, allocations: 0 / 0.6235 GB, free: 3.523 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.9368, allocations: 4 kB / 0.6235 GB, free: 3.52 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.9368, allocations: 7.938 kB / 0.6235 GB, free: 3.512 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006702/0.9375, allocations: 495 kB / 0.6239 GB, free: 2.984 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.9375, allocations: 4 kB / 0.6239 GB, free: 2.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.9376, allocations: 27.92 kB / 0.624 GB, free: 2.953 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.9377, allocations: 0 / 0.624 GB, free: 2.953 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.9377, allocations: 15.92 kB / 0.624 GB, free: 2.938 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.9377, allocations: 0 / 0.624 GB, free: 2.938 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.9377, allocations: 0 / 0.624 GB, free: 2.938 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006189/0.9383, allocations: 0.5098 MB / 0.6245 GB, free: 2.414 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.634e-05/0.9384, allocations: 108.6 kB / 0.6246 GB, free: 2.289 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.577e-05/0.9385, allocations: 11.92 kB / 0.6246 GB, free: 2.277 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.9386, allocations: 4 kB / 0.6246 GB, free: 2.273 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.069e-05/0.9387, allocations: 15.98 kB / 0.6246 GB, free: 2.258 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.9387, allocations: 8 kB / 0.6246 GB, free: 2.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.351e-05/0.9388, allocations: 132.2 kB / 0.6248 GB, free: 2.121 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.9388, allocations: 0 / 0.6248 GB, free: 2.121 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007012/0.9395, allocations: 191.3 kB / 0.6249 GB, free: 1.934 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.0005429/0.9401, allocations: 303.7 kB / 0.6252 GB, free: 1.656 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.9413, allocations: 0.5957 MB / 0.6258 GB, free: 1.035 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.9413, allocations: 4 kB / 0.6258 GB, free: 1.031 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004898/0.9418, allocations: 500 kB / 0.6263 GB, free: 480 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.9429, allocations: 204.6 kB / 0.6265 GB, free: 280 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001703/0.9446, allocations: 1.096 MB / 0.6276 GB, free: 15.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006128/0.9452, allocations: 0.9465 MB / 0.6285 GB, free: 14.17 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.9453, allocations: 51.44 kB / 0.6285 GB, free: 14.12 MB / 478.1 MB Notification: Performance of SimCode: time 6.31e-07/0.9453, allocations: 0 / 0.6285 GB, free: 14.12 MB / 478.1 MB Notification: Performance of Templates: time 0.01381/0.9591, allocations: 8.741 MB / 0.6371 GB, free: 5.41 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)