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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000898/0.000898, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009409/0.0009409, allocations: 169 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.018/1.018, allocations: 177.1 MB / 203.4 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo): time 0.00801/0.00801, allocations: 1.993 MB / 261.9 MB, free: 11.05 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=800,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=800,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 332.3 MB, free: 16.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.897e-05/2.053e-05, allocations: 2.312 kB / 332.3 MB, free: 16.93 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.007258/0.007278, allocations: 8.552 MB / 340.9 MB, free: 8.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004688/0.01197, allocations: 9.526 MB / 350.4 MB, free: 14.78 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.677e-05/0.01205, allocations: 4 kB / 350.4 MB, free: 14.78 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004327/0.01249, allocations: 131.2 kB / 350.5 MB, free: 14.65 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000285/0.01277, allocations: 107.2 kB / 350.6 MB, free: 14.54 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/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.1.1/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.1.1/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.002883/0.01565, allocations: 1.49 MB / 352.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003187/0.01597, allocations: 274.6 kB / 352.4 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.422e-05/0.01602, allocations: 13.8 kB / 352.4 MB, free: 12.76 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003449/0.01947, allocations: 168.5 kB / 352.6 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.01963, allocations: 79.78 kB / 352.7 MB, free: 12.54 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.01966, allocations: 8 kB / 352.7 MB, free: 12.53 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008937/0.02055, allocations: 467.6 kB / 353.1 MB, free: 12.07 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.682e-05/0.02062, allocations: 31.91 kB / 353.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.495e-05/0.02068, allocations: 55.86 kB / 353.2 MB, free: 11.98 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007166/0.0214, allocations: 490.6 kB / 353.7 MB, free: 11.5 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.0214, allocations: 4 kB / 353.7 MB, free: 11.5 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.0214, allocations: 0 / 353.7 MB, free: 11.5 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.02141, allocations: 0 / 353.7 MB, free: 11.5 MB / 282.7 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.0006182/0.02203, allocations: 0.5772 MB / 354.3 MB, free: 10.89 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.02207, allocations: 8.031 kB / 354.3 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002604/0.02233, allocations: 100.5 kB / 354.4 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.02249, allocations: 144.4 kB / 354.5 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.02251, allocations: 12.38 kB / 354.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.068e-05/0.02254, allocations: 12.38 kB / 354.5 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003243/0.02286, allocations: 256.8 kB / 354.8 MB, free: 10.31 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.02287, allocations: 4.125 kB / 354.8 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.02288, allocations: 8.125 kB / 354.8 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.02289, allocations: 8 kB / 354.8 MB, free: 10.29 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000162/0.02306, allocations: 112.8 kB / 354.9 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005529/0.02361, allocations: 0.6872 MB / 355.6 MB, free: 9.445 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003112/0.02392, allocations: 155.1 kB / 355.8 MB, free: 9.281 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.448e-05/0.02399, allocations: 71.66 kB / 355.8 MB, free: 9.207 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001262/0.02412, allocations: 99.92 kB / 355.9 MB, free: 9.109 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.02416, allocations: 33.39 kB / 356 MB, free: 9.066 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 2.164e-06/0.02416, allocations: 0 / 356 MB, free: 9.066 MB / 282.7 MB Notification: Performance of matching and sorting (n=48): time 0.00141/0.02557, allocations: 0.9125 MB / 356.9 MB, free: 8.113 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.0256, allocations: 59.39 kB / 356.9 MB, free: 8.043 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.287e-05/0.02568, allocations: 181.8 kB / 357.1 MB, free: 7.848 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.0257, allocations: 37.64 kB / 357.1 MB, free: 7.805 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.844e-05/0.02576, allocations: 151.8 kB / 357.3 MB, free: 7.652 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.243e-05/0.02583, allocations: 166.5 kB / 357.4 MB, free: 7.488 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.323e-05/0.02589, allocations: 67.34 kB / 357.5 MB, free: 7.414 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.026, allocations: 0.5079 MB / 358 MB, free: 6.895 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.588e-05/0.02608, allocations: 60.41 kB / 358.1 MB, free: 6.836 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.997e-05/0.02618, allocations: 133.1 kB / 358.2 MB, free: 6.68 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001837/0.02636, allocations: 226 kB / 358.4 MB, free: 6.434 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.02636, allocations: 0 / 358.4 MB, free: 6.434 MB / 282.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0004859/0.02685, allocations: 377.7 kB / 358.8 MB, free: 6.051 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.02686, allocations: 6.812 kB / 358.8 MB, free: 6.047 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.02687, allocations: 4 kB / 358.8 MB, free: 6.043 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003845/0.02726, allocations: 147.7 kB / 359 MB, free: 5.895 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.845e-05/0.02732, allocations: 31.98 kB / 359 MB, free: 5.863 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004623/0.02779, allocations: 0.9014 MB / 359.9 MB, free: 4.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.754e-05/0.02785, allocations: 11.94 kB / 359.9 MB, free: 4.918 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.02787, allocations: 11.98 kB / 359.9 MB, free: 4.906 MB / 282.7 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 {(4,7)} Notification: Performance of prepare postOptimizeDAE: time 9.257e-05/0.02796, allocations: 172.5 kB / 360.1 MB, free: 4.727 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.699e-05/0.028, allocations: 23.91 kB / 360.1 MB, free: 4.703 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.043e-05/0.02804, allocations: 18.28 kB / 360.1 MB, free: 4.684 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.02805, allocations: 11.98 kB / 360.1 MB, free: 4.672 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.02805, allocations: 0 / 360.1 MB, free: 4.672 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.02806, allocations: 0 / 360.1 MB, free: 4.672 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001633/0.02822, allocations: 205.2 kB / 360.3 MB, free: 4.438 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.02822, allocations: 0 / 360.3 MB, free: 4.438 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.02835, allocations: 39.97 kB / 360.4 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000192/0.02854, allocations: 79.5 kB / 360.4 MB, free: 4.316 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.02855, allocations: 11.98 kB / 360.5 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001482/0.03003, allocations: 3.675 MB / 364.1 MB, free: 376 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.03003, allocations: 0 / 364.1 MB, free: 376 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004875/0.03052, allocations: 0.5583 MB / 364.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.512e-05/0.03054, allocations: 15.86 kB / 364.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.03055, allocations: 11.94 kB / 364.7 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.463e-05/0.03063, allocations: 4 kB / 364.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.393e-05/0.03069, allocations: 23.95 kB / 364.7 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.0307, allocations: 11.94 kB / 364.8 MB, free: 15.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.617e-05/0.03075, allocations: 139.1 kB / 364.9 MB, free: 15.58 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.03075, allocations: 4.031 kB / 364.9 MB, free: 15.58 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002346/0.03098, allocations: 67.94 kB / 365 MB, free: 15.51 MB / 298.7 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.0002876/0.03127, allocations: 168.3 kB / 365.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003927/0.03166, allocations: 251.5 kB / 365.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.03167, allocations: 0 / 365.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002946/0.03196, allocations: 302.8 kB / 365.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.03234, allocations: 107 kB / 365.8 MB, free: 14.69 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.03337, allocations: 0.5661 MB / 366.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.021e-05/0.03344, allocations: 93.17 kB / 366.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001568/0.03359, allocations: 105.2 kB / 366.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.246e-05/0.03363, allocations: 28.48 kB / 366.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of SimCode: time 5e-07/0.03363, allocations: 3.938 kB / 366.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of Templates: time 0.00709/0.04073, allocations: 5.474 MB / 372 MB, free: 8.492 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.makefile [Timeout 660] (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=240 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.0231884429231286]