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.001265/0.001265, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001332/0.001332, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.312/1.312, allocations: 222.9 MB / 241 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.01389/0.01389, allocations: 2.768 MB / 294 MB, free: 11.98 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 59.91 kB / 406.6 MB, free: 29.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08388/0.08509, allocations: 50.24 MB / 456.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.009875/0.095, allocations: 9.003 MB / 465.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006992/0.102, allocations: 8.575 MB / 474.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.1022, allocations: 0 / 474.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005506/0.1028, allocations: 167 kB / 474.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003357/0.1032, allocations: 99.28 kB / 474.7 MB, free: 8.855 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.003699/0.1069, allocations: 1.467 MB / 476.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003608/0.1072, allocations: 258.8 kB / 476.4 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.889e-05/0.1073, allocations: 25.66 kB / 476.4 MB, free: 7.105 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.09198/0.1993, allocations: 12.85 MB / 489.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002549/0.1996, allocations: 83.62 kB / 489.4 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.618e-05/0.1996, allocations: 8 kB / 489.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002207/0.2018, allocations: 483.8 kB / 489.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.25e-05/0.2019, allocations: 27.91 kB / 489.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001604/0.2021, allocations: 91.53 kB / 489.9 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00226/0.2044, allocations: 0.5027 MB / 490.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.2044, allocations: 8 kB / 490.5 MB, free: 10.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2044, allocations: 0 / 490.5 MB, free: 10.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.859e-06/0.2044, allocations: 0 / 490.5 MB, free: 10.22 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.001076/0.2055, allocations: 0.5495 MB / 491 MB, free: 9.621 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.2056, allocations: 12.03 kB / 491 MB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003885/0.2059, allocations: 52.7 kB / 491.1 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.2063, allocations: 212.1 kB / 491.3 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.523e-05/0.2063, allocations: 8.375 kB / 491.3 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.437e-05/0.2063, allocations: 15.88 kB / 491.3 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005704/0.2069, allocations: 235.2 kB / 491.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.2069, allocations: 4 kB / 491.5 MB, free: 9.043 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.392e-05/0.207, allocations: 7.984 kB / 491.5 MB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.207, allocations: 8 kB / 491.6 MB, free: 9.027 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005176/0.2075, allocations: 208.2 kB / 491.8 MB, free: 8.824 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009088/0.2084, allocations: 0.6784 MB / 492.4 MB, free: 8.086 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005369/0.209, allocations: 226.4 kB / 492.7 MB, free: 7.855 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002427/0.2092, allocations: 149.1 kB / 492.8 MB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000308/0.2096, allocations: 331.2 kB / 493.1 MB, free: 7.328 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.2096, allocations: 42.55 kB / 493.2 MB, free: 7.277 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.493e-06/0.2096, allocations: 0 / 493.2 MB, free: 7.277 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002939/0.2126, allocations: 1.221 MB / 494.4 MB, free: 6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.2126, allocations: 55.34 kB / 494.4 MB, free: 5.934 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.2127, allocations: 129.9 kB / 494.6 MB, free: 5.797 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.2128, allocations: 29.7 kB / 494.6 MB, free: 5.762 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.686e-05/0.2128, allocations: 112.8 kB / 494.7 MB, free: 5.648 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.213, allocations: 149.8 kB / 494.9 MB, free: 5.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.851e-05/0.2131, allocations: 57.69 kB / 494.9 MB, free: 5.438 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.2132, allocations: 338.8 kB / 495.2 MB, free: 5.098 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002413/0.2135, allocations: 124.5 kB / 495.4 MB, free: 4.977 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002797/0.2138, allocations: 185.3 kB / 495.5 MB, free: 4.777 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005499/0.2143, allocations: 352.6 kB / 495.9 MB, free: 4.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2143, allocations: 4 kB / 495.9 MB, free: 4.406 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001527/0.2159, allocations: 481.7 kB / 496.4 MB, free: 3.926 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.2159, allocations: 4 kB / 496.4 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.2159, allocations: 4 kB / 496.4 MB, free: 3.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007472/0.2167, allocations: 144.9 kB / 496.5 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001613/0.2168, allocations: 35.92 kB / 496.5 MB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006363/0.2175, allocations: 0.6498 MB / 497.2 MB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.2177, allocations: 12 kB / 497.2 MB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.2177, allocations: 12 kB / 497.2 MB, free: 3.039 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.0001397/0.2178, allocations: 138.4 kB / 497.4 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-05/0.2179, allocations: 15.81 kB / 497.4 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.053e-05/0.218, allocations: 22.22 kB / 497.4 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-05/0.218, allocations: 11.98 kB / 497.4 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.208e-06/0.218, allocations: 96 / 497.4 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.218, allocations: 3.938 kB / 497.4 MB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003623/0.2184, allocations: 302.2 kB / 497.7 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2184, allocations: 0 / 497.7 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.2186, allocations: 35.97 kB / 497.7 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003627/0.2189, allocations: 68.62 kB / 497.8 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.23e-05/0.219, allocations: 19.92 kB / 497.8 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001455/0.2204, allocations: 1.548 MB / 499.4 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2205, allocations: 0 / 499.4 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.2216, allocations: 0.7014 MB / 0.4884 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.508e-05/0.2217, allocations: 92.86 kB / 0.4884 GB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.2217, allocations: 4 kB / 0.4884 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001625/0.2219, allocations: 8 kB / 0.4885 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.193e-05/0.222, allocations: 27.91 kB / 0.4885 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/0.222, allocations: 11.98 kB / 0.4885 GB, free: 15.78 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.751e-05/0.2221, allocations: 103.2 kB / 0.4886 GB, free: 15.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2221, allocations: 0 / 0.4886 GB, free: 15.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003772/0.2225, allocations: 64 kB / 0.4887 GB, free: 15.61 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.0003919/0.2229, allocations: 169.6 kB / 0.4888 GB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008321/0.2237, allocations: 369.5 kB / 0.4892 GB, free: 15.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2237, allocations: 0 / 0.4892 GB, free: 15.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006841/0.2244, allocations: 307.4 kB / 0.4895 GB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006083/0.225, allocations: 106.6 kB / 0.4896 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.2262, allocations: 0.6772 MB / 0.4902 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.2266, allocations: 0.7371 MB / 0.4909 GB, free: 13.19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.142e-05/0.2266, allocations: 27.44 kB / 0.491 GB, free: 13.16 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2266, allocations: 0 / 0.491 GB, free: 13.16 MB / 382.1 MB Notification: Performance of Templates: time 0.006426/0.2331, allocations: 3.561 MB / 0.4944 GB, free: 9.598 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)