Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.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.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007276/0.007276, allocations: 104.3 kB / 15.74 MB, free: 6.059 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.001167/0.001168, allocations: 196.4 kB / 16.68 MB, free: 5.969 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.269/1.269, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.0113/0.0113, allocations: 2.773 MB / 293.3 MB, free: 11.94 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001248, allocations: 63.91 kB / 405.9 MB, free: 29.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08704/0.0883, allocations: 50.24 MB / 456.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.01051/0.09885, allocations: 9.007 MB / 465.2 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007129/0.106, allocations: 8.571 MB / 473.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.1062, allocations: 0 / 473.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005037/0.1067, allocations: 163.1 kB / 473.9 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003272/0.1071, allocations: 107.3 kB / 474 MB, free: 8.812 MB / 350.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.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.004053/0.1111, allocations: 1.459 MB / 475.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003636/0.1115, allocations: 262.8 kB / 475.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.569e-05/0.1116, allocations: 17.67 kB / 475.7 MB, free: 7.074 MB / 350.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.09188/0.2035, allocations: 12.85 MB / 488.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.2037, allocations: 83.62 kB / 488.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.557e-05/0.2037, allocations: 12 kB / 488.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001792/0.2055, allocations: 479.9 kB / 489.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.318e-05/0.2056, allocations: 23.92 kB / 489.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.2057, allocations: 95.52 kB / 489.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001592/0.2073, allocations: 0.4988 MB / 489.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.2074, allocations: 4 kB / 489.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2074, allocations: 3.938 kB / 489.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.2074, allocations: 0 / 489.8 MB, free: 10.2 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008634/0.2083, allocations: 0.5534 MB / 490.3 MB, free: 9.594 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.2083, allocations: 12.03 kB / 490.3 MB, free: 9.582 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003618/0.2087, allocations: 48.7 kB / 490.4 MB, free: 9.535 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002436/0.2089, allocations: 216 kB / 490.6 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.209, allocations: 8.375 kB / 490.6 MB, free: 9.277 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.099e-05/0.209, allocations: 15.94 kB / 490.6 MB, free: 9.262 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005211/0.2095, allocations: 243.1 kB / 490.9 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.2095, allocations: 4 kB / 490.9 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.2096, allocations: 0 / 490.9 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.2096, allocations: 15.97 kB / 490.9 MB, free: 8.992 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004856/0.2101, allocations: 196.3 kB / 491.1 MB, free: 8.801 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000825/0.2109, allocations: 0.6901 MB / 491.8 MB, free: 8.051 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005166/0.2114, allocations: 214.5 kB / 492 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/0.2117, allocations: 153.1 kB / 492.1 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002651/0.212, allocations: 331.2 kB / 492.4 MB, free: 7.301 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.212, allocations: 42.5 kB / 492.5 MB, free: 7.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.954e-06/0.212, allocations: 0 / 492.5 MB, free: 7.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.003062/0.2151, allocations: 1.217 MB / 493.7 MB, free: 5.977 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.2151, allocations: 51.41 kB / 493.8 MB, free: 5.914 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.2153, allocations: 133.9 kB / 493.9 MB, free: 5.773 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.2e-05/0.2153, allocations: 29.7 kB / 493.9 MB, free: 5.738 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.38e-05/0.2154, allocations: 108.8 kB / 494 MB, free: 5.629 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.2155, allocations: 153.7 kB / 494.2 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.142e-05/0.2156, allocations: 57.69 kB / 494.2 MB, free: 5.414 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.2157, allocations: 330.8 kB / 494.6 MB, free: 5.082 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.216, allocations: 128.5 kB / 494.7 MB, free: 4.957 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/0.2163, allocations: 193.2 kB / 494.9 MB, free: 4.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005292/0.2168, allocations: 352.7 kB / 495.2 MB, free: 4.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2168, allocations: 0 / 495.2 MB, free: 4.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001083/0.2179, allocations: 485.6 kB / 495.7 MB, free: 3.898 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.2179, allocations: 7.984 kB / 495.7 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.218, allocations: 4 kB / 495.7 MB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007171/0.2187, allocations: 136.9 kB / 495.8 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.2188, allocations: 39.92 kB / 495.9 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006207/0.2195, allocations: 0.6536 MB / 496.5 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.2196, allocations: 16.03 kB / 496.5 MB, free: 3.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.2197, allocations: 8 kB / 496.5 MB, free: 3.008 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (medium.phaseOutput,medium.state.phase,medium.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.2198, allocations: 130.4 kB / 496.7 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.724e-05/0.2199, allocations: 19.81 kB / 496.7 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.068e-05/0.2199, allocations: 26.22 kB / 496.7 MB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.2199, allocations: 11.92 kB / 496.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.22, allocations: 0 / 496.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.22, allocations: 0 / 496.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003364/0.2203, allocations: 298.2 kB / 497 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.2203, allocations: 0 / 497 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001811/0.2205, allocations: 39.97 kB / 497.1 MB, free: 2.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000337/0.2208, allocations: 72.67 kB / 497.1 MB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.237e-05/0.2209, allocations: 7.938 kB / 497.1 MB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001394/0.2223, allocations: 1.556 MB / 498.7 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2223, allocations: 0 / 498.7 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.2234, allocations: 0.6935 MB / 499.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.367e-05/0.2234, allocations: 100.9 kB / 499.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.407e-05/0.2235, allocations: 12 kB / 499.5 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.2236, allocations: 7.984 kB / 499.5 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.2237, allocations: 23.91 kB / 499.5 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.627e-05/0.2237, allocations: 4 kB / 499.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.335e-05/0.2238, allocations: 103.2 kB / 499.6 MB, free: 15.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2238, allocations: 0 / 499.6 MB, free: 15.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003626/0.2242, allocations: 71.98 kB / 499.7 MB, free: 15.58 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 2 (medium.state.phase,medium.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003774/0.2246, allocations: 173.5 kB / 499.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007702/0.2253, allocations: 365.9 kB / 0.4885 GB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2254, allocations: 0 / 0.4885 GB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005902/0.226, allocations: 311 kB / 0.4888 GB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005925/0.2266, allocations: 103.8 kB / 0.4889 GB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.2277, allocations: 0.6469 MB / 0.4895 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.228, allocations: 0.7371 MB / 0.4903 GB, free: 13.19 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002225/0.2282, allocations: 109.4 kB / 0.4904 GB, free: 13.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.527e-05/0.2282, allocations: 23.44 kB / 0.4904 GB, free: 13.05 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2283, allocations: 0 / 0.4904 GB, free: 13.05 MB / 382.1 MB Notification: Performance of Templates: time 0.01021/0.2385, allocations: 5.241 MB / 0.4955 GB, free: 7.848 MB / 382.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe 2>&1)