Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.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.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00174/0.001741, allocations: 98.91 kB / 16.35 MB, free: 5.879 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.00169/0.00169, allocations: 196.2 kB / 17.3 MB, free: 5.52 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.354/1.354, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01266/0.01266, allocations: 2.783 MB / 293.9 MB, free: 11.97 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 59.91 kB / 355.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2678, allocations: 50.23 MB / 406.1 MB, free: 32.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.007581/0.2754, allocations: 8.343 MB / 414.4 MB, free: 24.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005875/0.2813, allocations: 9.466 MB / 423.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.2815, allocations: 0 / 423.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006001/0.2821, allocations: 163.1 kB / 424 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003026/0.2825, allocations: 99.28 kB / 424.1 MB, free: 14.81 MB / 302.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.TestMedium.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setState_ph'. Notification: Performance of NFTyping.typeClassSections: time 0.003747/0.2863, allocations: 1.456 MB / 425.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00034/0.2866, allocations: 262.7 kB / 425.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.142e-05/0.2867, allocations: 21.67 kB / 425.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004804/0.2915, allocations: 118.9 kB / 426 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001835/0.2917, allocations: 87.61 kB / 426.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.653e-05/0.2918, allocations: 8 kB / 426.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001912/0.2937, allocations: 475.8 kB / 426.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.885e-05/0.2938, allocations: 35.84 kB / 426.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.2939, allocations: 83.59 kB / 426.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00122/0.2951, allocations: 0.4988 MB / 427.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2951, allocations: 0 / 427.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2951, allocations: 4 kB / 427.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.2952, allocations: 0 / 427.2 MB, free: 11.77 MB / 302.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.0008175/0.296, allocations: 0.5457 MB / 427.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.296, allocations: 8.031 kB / 427.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003465/0.2964, allocations: 60.61 kB / 427.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000187/0.2966, allocations: 208.1 kB / 428 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/0.2966, allocations: 8.375 kB / 428 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.363e-05/0.2967, allocations: 12.38 kB / 428 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004573/0.2971, allocations: 243.2 kB / 428.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.2972, allocations: 3.938 kB / 428.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.2972, allocations: 8 kB / 428.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.2972, allocations: 15.97 kB / 428.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004386/0.2976, allocations: 200.2 kB / 428.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006973/0.2983, allocations: 0.6746 MB / 429.1 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005503/0.2989, allocations: 242.5 kB / 429.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/0.2991, allocations: 160.8 kB / 429.5 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002128/0.2993, allocations: 327.2 kB / 429.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.78e-05/0.2994, allocations: 38.56 kB / 429.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.372e-06/0.2994, allocations: 0 / 429.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.0025/0.3019, allocations: 1.226 MB / 431.1 MB, free: 7.535 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.3019, allocations: 55.41 kB / 431.2 MB, free: 7.469 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.946e-05/0.302, allocations: 125.7 kB / 431.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.302, allocations: 29.7 kB / 431.3 MB, free: 7.301 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.133e-05/0.3021, allocations: 108.9 kB / 431.4 MB, free: 7.191 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.926e-05/0.3022, allocations: 157.6 kB / 431.6 MB, free: 7.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.545e-05/0.3023, allocations: 53.7 kB / 431.6 MB, free: 6.977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.815e-05/0.3023, allocations: 334.8 kB / 432 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002092/0.3025, allocations: 128.5 kB / 432.1 MB, free: 6.516 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000232/0.3028, allocations: 181.2 kB / 432.3 MB, free: 6.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004459/0.3032, allocations: 351.5 kB / 432.6 MB, free: 5.957 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.3032, allocations: 0 / 432.6 MB, free: 5.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009922/0.3042, allocations: 489.7 kB / 433.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3043, allocations: 8 kB / 433.1 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.3043, allocations: 4 kB / 433.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000737/0.305, allocations: 156.8 kB / 433.2 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.3052, allocations: 27.98 kB / 433.3 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005085/0.3057, allocations: 0.681 MB / 434 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.3058, allocations: 8.031 kB / 434 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.3059, allocations: 12 kB / 434 MB, free: 4.551 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (18): * Single equations (assignments): 15 * 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,8)} Notification: Performance of prepare postOptimizeDAE: time 9.949e-05/0.306, allocations: 131.1 kB / 434.1 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.421e-05/0.306, allocations: 23.72 kB / 434.1 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.843e-05/0.3061, allocations: 22.22 kB / 434.1 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.3061, allocations: 11.98 kB / 434.2 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.3061, allocations: 0 / 434.2 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.3061, allocations: 7.984 kB / 434.2 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002619/0.3064, allocations: 290.4 kB / 434.5 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3064, allocations: 3.938 kB / 434.5 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/0.3067, allocations: 51.95 kB / 434.5 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003194/0.307, allocations: 72.72 kB / 434.6 MB, free: 3.891 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.307, allocations: 7.922 kB / 434.6 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/0.3085, allocations: 2.922 MB / 437.5 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3085, allocations: 4 kB / 437.5 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009498/0.3095, allocations: 0.6977 MB / 438.2 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.552e-05/0.3096, allocations: 92.86 kB / 438.3 MB, free: 15.83 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.3096, allocations: 4 kB / 438.3 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000173/0.3098, allocations: 15.98 kB / 438.3 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.541e-05/0.3099, allocations: 23.91 kB / 438.3 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.3099, allocations: 7.984 kB / 438.3 MB, free: 15.78 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.397e-05/0.31, allocations: 95.22 kB / 438.4 MB, free: 15.68 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.31, allocations: 0 / 438.4 MB, free: 15.68 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003858/0.3104, allocations: 75.92 kB / 438.5 MB, free: 15.61 MB / 318.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 (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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.0004192/0.3108, allocations: 179.5 kB / 438.7 MB, free: 15.45 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008439/0.3116, allocations: 375.6 kB / 439.1 MB, free: 15.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3117, allocations: 0 / 439.1 MB, free: 15.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005782/0.3122, allocations: 307.8 kB / 439.4 MB, free: 14.76 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006262/0.3129, allocations: 103.1 kB / 439.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.3142, allocations: 0.7136 MB / 440.2 MB, free: 13.92 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.3145, allocations: 0.7371 MB / 440.9 MB, free: 13.15 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002281/0.3147, allocations: 105.4 kB / 441 MB, free: 13.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.627e-05/0.3148, allocations: 19.38 kB / 441 MB, free: 13.03 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3148, allocations: 4 kB / 441 MB, free: 13.02 MB / 318.1 MB Notification: Performance of Templates: time 0.01073/0.3255, allocations: 5.21 MB / 446.2 MB, free: 7.883 MB / 318.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.makefile (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1)