Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.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_Tabular.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic") translateModel(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007573/0.007573, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.001862/0.001862, allocations: 188.2 kB / 16.67 MB, free: 5.973 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1393/0.1393, allocations: 2.764 MB / 293.3 MB, free: 3.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 64.09 kB / 405.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2558, allocations: 50.23 MB / 456.2 MB, free: 21.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic): time 0.008317/0.2642, allocations: 9.02 MB / 465.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005432/0.2696, allocations: 8.567 MB / 473.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.2698, allocations: 1.031 kB / 473.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004783/0.2704, allocations: 154.7 kB / 473.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000288/0.2707, allocations: 106.1 kB / 474 MB, free: 8.078 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_Tabular.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.003255/0.2739, allocations: 1.469 MB / 475.5 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003287/0.2743, allocations: 267.1 kB / 475.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.197e-05/0.2743, allocations: 12.61 kB / 475.7 MB, free: 7.082 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.3044/0.5787, allocations: 13.01 MB / 488.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.579, allocations: 89.72 kB / 488.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.579, allocations: 7.5 kB / 488.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.581, allocations: 472.2 kB / 489.3 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.036e-05/0.5811, allocations: 34.03 kB / 489.3 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.5812, allocations: 90.25 kB / 489.4 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001222/0.5825, allocations: 0.4995 MB / 489.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.5825, allocations: 5 kB / 489.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5825, allocations: 0.6094 kB / 489.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.5825, allocations: 0 / 489.9 MB, free: 0.6797 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.0007225/0.5832, allocations: 0.5657 MB / 490.5 MB, free: 196 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.5833, allocations: 9.531 kB / 490.5 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003421/0.5836, allocations: 58.84 kB / 490.6 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.5838, allocations: 208.5 kB / 490.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.5839, allocations: 8.281 kB / 490.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.543e-05/0.5839, allocations: 15.94 kB / 490.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005319/0.5844, allocations: 243.4 kB / 491 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.5845, allocations: 0.6562 kB / 491 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.5845, allocations: 6.469 kB / 491 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.5845, allocations: 8.828 kB / 491 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005042/0.585, allocations: 201.1 kB / 491.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008473/0.5859, allocations: 0.6839 MB / 491.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005369/0.5864, allocations: 216.5 kB / 492.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002535/0.5867, allocations: 156.3 kB / 492.3 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000265/0.587, allocations: 330.9 kB / 492.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.587, allocations: 41.78 kB / 492.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.955e-06/0.587, allocations: 3.984 kB / 492.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002833/0.5898, allocations: 1.215 MB / 493.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.5899, allocations: 57.91 kB / 493.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.59, allocations: 125.7 kB / 494.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.02e-05/0.59, allocations: 30.45 kB / 494.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.935e-05/0.5901, allocations: 109.1 kB / 494.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.5902, allocations: 171.2 kB / 494.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.72e-05/0.5903, allocations: 59.88 kB / 494.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.5904, allocations: 327.5 kB / 494.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.5907, allocations: 128.6 kB / 494.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002847/0.591, allocations: 187.4 kB / 495 MB, free: 13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005308/0.5915, allocations: 348.9 kB / 495.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.5915, allocations: 0 / 495.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001083/0.5926, allocations: 479.2 kB / 495.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.5927, allocations: 14.11 kB / 495.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.5927, allocations: 1.281 kB / 495.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007287/0.5934, allocations: 143.9 kB / 496 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.5936, allocations: 37.64 kB / 496 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006044/0.5942, allocations: 0.6562 MB / 496.7 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.5944, allocations: 14.03 kB / 496.7 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.5944, allocations: 11.66 kB / 496.7 MB, free: 11.82 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.0001294/0.5945, allocations: 132.5 kB / 496.9 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.117e-05/0.5946, allocations: 15.62 kB / 496.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.709e-05/0.5947, allocations: 32.53 kB / 496.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.5947, allocations: 10.14 kB / 496.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.5947, allocations: 1.219 kB / 496.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.5947, allocations: 3.984 kB / 496.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003314/0.595, allocations: 296 kB / 497.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.595, allocations: 5.172 kB / 497.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001848/0.5952, allocations: 35.52 kB / 497.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003508/0.5956, allocations: 70.97 kB / 497.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.5956, allocations: 9.094 kB / 497.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.5969, allocations: 1.552 MB / 498.9 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.5969, allocations: 0 / 498.9 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.5981, allocations: 0.6955 MB / 499.6 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.425e-05/0.5981, allocations: 93.5 kB / 499.7 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/0.5982, allocations: 5.5 kB / 499.7 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.5984, allocations: 13.39 kB / 499.7 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.821e-05/0.5984, allocations: 24.5 kB / 499.7 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.5985, allocations: 5.25 kB / 499.7 MB, free: 9.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.87e-05/0.5985, allocations: 98.83 kB / 499.8 MB, free: 9.043 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5985, allocations: 0 / 499.8 MB, free: 9.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003772/0.5989, allocations: 72.05 kB / 499.9 MB, free: 9.027 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.000335/0.5993, allocations: 186.5 kB / 0.4883 GB, free: 8.875 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008165/0.6001, allocations: 365.1 kB / 0.4887 GB, free: 8.699 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.6001, allocations: 0 / 0.4887 GB, free: 8.699 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006218/0.6007, allocations: 315.1 kB / 0.489 GB, free: 8.484 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006767/0.6014, allocations: 94.3 kB / 0.4891 GB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.6026, allocations: 0.6763 MB / 0.4897 GB, free: 7.969 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.6029, allocations: 0.7339 MB / 0.4905 GB, free: 7.246 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002332/0.6032, allocations: 108.8 kB / 0.4906 GB, free: 7.191 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.516e-05/0.6032, allocations: 18.44 kB / 0.4906 GB, free: 7.184 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.6032, allocations: 0 / 0.4906 GB, free: 7.184 MB / 366.1 MB Notification: Performance of Templates: time 0.009772/0.613, allocations: 5.249 MB / 0.4957 GB, free: 2.047 MB / 366.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.pipe 2>&1)