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.005372/0.005372, allocations: 99.34 kB / 15.73 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.001118/0.001118, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1373/0.1373, allocations: 2.754 MB / 293.3 MB, free: 3.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 59.89 kB / 405.9 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2941, allocations: 50.24 MB / 456.2 MB, free: 21.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.009452/0.3036, allocations: 9.003 MB / 465.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006311/0.31, allocations: 8.574 MB / 473.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002335/0.3103, allocations: 0 / 473.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006014/0.3109, allocations: 159.2 kB / 473.9 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000379/0.3113, allocations: 106 kB / 474 MB, free: 8.293 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.004323/0.3156, allocations: 1.461 MB / 475.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004047/0.316, allocations: 267.9 kB / 475.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.926e-05/0.3161, allocations: 20.41 kB / 475.7 MB, free: 7.297 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.09365/0.4098, allocations: 12.84 MB / 488.6 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002626/0.4101, allocations: 84.55 kB / 488.7 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.609e-05/0.4101, allocations: 8.312 kB / 488.7 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002372/0.4125, allocations: 480.9 kB / 489.1 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.4126, allocations: 29.84 kB / 489.2 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002067/0.4128, allocations: 85.95 kB / 489.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002326/0.4151, allocations: 0.5116 MB / 489.8 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.4152, allocations: 5.375 kB / 489.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4152, allocations: 0 / 489.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.4152, allocations: 0 / 489.8 MB, free: 0.9844 MB / 350.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.0009956/0.4162, allocations: 0.5572 MB / 490.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.4162, allocations: 13.66 kB / 490.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004137/0.4167, allocations: 55.91 kB / 490.4 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.4169, allocations: 207.1 kB / 490.6 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/0.4169, allocations: 8.906 kB / 490.6 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.981e-05/0.417, allocations: 15.36 kB / 490.6 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005662/0.4176, allocations: 247 kB / 490.9 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.4176, allocations: 7.922 kB / 490.9 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.4176, allocations: 6.531 kB / 490.9 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.4176, allocations: 5.656 kB / 490.9 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005036/0.4181, allocations: 200.2 kB / 491.1 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009162/0.4191, allocations: 0.69 MB / 491.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005615/0.4196, allocations: 222.1 kB / 492 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002587/0.4199, allocations: 154.7 kB / 492.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003141/0.4202, allocations: 325.2 kB / 492.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.4203, allocations: 43.3 kB / 492.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.963e-06/0.4203, allocations: 1.781 kB / 492.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.003081/0.4234, allocations: 1.211 MB / 493.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.4234, allocations: 54.34 kB / 493.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.4235, allocations: 128.8 kB / 493.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.4236, allocations: 31.66 kB / 493.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.657e-05/0.4236, allocations: 114.1 kB / 494 MB, free: 14.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.4238, allocations: 166.1 kB / 494.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.874e-05/0.4239, allocations: 59.77 kB / 494.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.424, allocations: 329.9 kB / 494.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002573/0.4243, allocations: 125.7 kB / 494.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.4246, allocations: 199.5 kB / 494.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005531/0.4251, allocations: 344.1 kB / 495.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4251, allocations: 1.375 kB / 495.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001165/0.4263, allocations: 482.2 kB / 495.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.4263, allocations: 10.14 kB / 495.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.4264, allocations: 2.25 kB / 495.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007727/0.4271, allocations: 139.7 kB / 495.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.4273, allocations: 36.64 kB / 495.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006322/0.4279, allocations: 0.6524 MB / 496.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.4281, allocations: 13.84 kB / 496.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.14e-05/0.4282, allocations: 8.312 kB / 496.6 MB, free: 12.18 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.0001437/0.4283, allocations: 132.4 kB / 496.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.563e-05/0.4284, allocations: 16.16 kB / 496.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.916e-05/0.4285, allocations: 39.34 kB / 496.7 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/0.4285, allocations: 11.48 kB / 496.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.397e-06/0.4285, allocations: 1.156 kB / 496.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.4285, allocations: 7.984 kB / 496.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003419/0.4289, allocations: 287.4 kB / 497 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.4289, allocations: 5.203 kB / 497.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001998/0.4291, allocations: 35.55 kB / 497.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003707/0.4295, allocations: 75 kB / 497.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.4295, allocations: 10.44 kB / 497.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001295/0.4308, allocations: 1.554 MB / 498.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4308, allocations: 0 / 498.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.432, allocations: 0.6952 MB / 499.4 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.824e-05/0.432, allocations: 101.1 kB / 499.5 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.4321, allocations: 6.156 kB / 499.5 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/0.4323, allocations: 8.547 kB / 499.5 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.948e-05/0.4323, allocations: 25.03 kB / 499.6 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.4324, allocations: 9.062 kB / 499.6 MB, free: 9.469 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.273e-05/0.4324, allocations: 94.89 kB / 499.7 MB, free: 9.387 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4324, allocations: 0 / 499.7 MB, free: 9.387 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003951/0.4328, allocations: 75.23 kB / 499.7 MB, free: 9.367 MB / 366.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.0006765/0.4335, allocations: 174.7 kB / 499.9 MB, free: 9.227 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008728/0.4344, allocations: 361.1 kB / 0.4885 GB, free: 9.055 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.4344, allocations: 0 / 0.4885 GB, free: 9.055 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006647/0.4351, allocations: 316.3 kB / 0.4888 GB, free: 8.836 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006416/0.4358, allocations: 91.84 kB / 0.4889 GB, free: 8.789 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.437, allocations: 0.6653 MB / 0.4896 GB, free: 8.336 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.4373, allocations: 0.7415 MB / 0.4903 GB, free: 7.605 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002327/0.4376, allocations: 112.8 kB / 0.4904 GB, free: 7.547 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.688e-05/0.4376, allocations: 18.78 kB / 0.4904 GB, free: 7.539 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4376, allocations: 0 / 0.4904 GB, free: 7.539 MB / 366.1 MB Notification: Performance of Templates: time 0.009742/0.4474, allocations: 5.253 MB / 0.4955 GB, free: 2.391 MB / 366.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)