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.001378/0.001378, allocations: 88.72 kB / 19.44 MB, free: 356 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.001577/0.001577, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.458/1.458, allocations: 177.2 MB / 203.1 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.01272/0.01272, allocations: 1.989 MB / 261.6 MB, free: 11.09 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.583e-06/1.583e-06, allocations: 0 / 331.6 MB, free: 17.3 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.084e-05/2.242e-05, allocations: 2.312 kB / 331.6 MB, free: 17.3 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.006084/0.006106, allocations: 7.69 MB / 339.3 MB, free: 9.574 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004916/0.01102, allocations: 8.171 MB / 347.5 MB, free: 1.375 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.464e-05/0.01112, allocations: 3.938 kB / 347.5 MB, free: 1.371 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00045/0.01157, allocations: 123.2 kB / 347.6 MB, free: 1.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002772/0.01184, allocations: 111.2 kB / 347.7 MB, free: 1.141 MB / 266.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.002918/0.01476, allocations: 1.49 MB / 349.2 MB, free: 15.64 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003961/0.01516, allocations: 262.6 kB / 349.4 MB, free: 15.38 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.511e-05/0.0152, allocations: 17.78 kB / 349.5 MB, free: 15.37 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005044/0.02025, allocations: 180 kB / 349.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001873/0.02043, allocations: 67.8 kB / 349.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.819e-05/0.02047, allocations: 8 kB / 349.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00144/0.02191, allocations: 471.6 kB / 350.2 MB, free: 14.67 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.262e-05/0.02199, allocations: 35.83 kB / 350.2 MB, free: 14.63 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.0221, allocations: 59.86 kB / 350.3 MB, free: 14.57 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001142/0.02325, allocations: 0.5142 MB / 350.8 MB, free: 14.06 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.02325, allocations: 4 kB / 350.8 MB, free: 14.05 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.02325, allocations: 0 / 350.8 MB, free: 14.05 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.02326, allocations: 0 / 350.8 MB, free: 14.05 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.0009565/0.02421, allocations: 496.7 kB / 351.3 MB, free: 13.54 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.02425, allocations: 8.031 kB / 351.3 MB, free: 13.53 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004299/0.02468, allocations: 92.56 kB / 351.4 MB, free: 13.44 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002491/0.02493, allocations: 153.5 kB / 351.5 MB, free: 13.27 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.02495, allocations: 8.375 kB / 351.5 MB, free: 13.26 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.005e-05/0.02499, allocations: 12.38 kB / 351.5 MB, free: 13.25 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006123/0.0256, allocations: 295.5 kB / 351.8 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.02561, allocations: 192 / 351.8 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.02564, allocations: 12.12 kB / 351.8 MB, free: 12.92 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.02565, allocations: 7.984 kB / 351.8 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005715/0.02622, allocations: 208.3 kB / 352 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008956/0.02712, allocations: 0.5966 MB / 352.6 MB, free: 12.07 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006833/0.0278, allocations: 226.5 kB / 352.9 MB, free: 11.84 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.02807, allocations: 132.8 kB / 353 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001924/0.02827, allocations: 103.9 kB / 353.1 MB, free: 11.61 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/0.02831, allocations: 38.56 kB / 353.1 MB, free: 11.56 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 1.223e-06/0.02831, allocations: 0 / 353.1 MB, free: 11.56 MB / 282.7 MB Notification: Performance of matching and sorting (n=48): time 0.003089/0.0314, allocations: 1.194 MB / 354.3 MB, free: 10.33 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002641/0.03166, allocations: 55.41 kB / 354.4 MB, free: 10.27 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.03179, allocations: 121.8 kB / 354.5 MB, free: 10.14 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.03182, allocations: 29.7 kB / 354.5 MB, free: 10.1 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.512e-05/0.03191, allocations: 109 kB / 354.6 MB, free: 9.992 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.03206, allocations: 162.5 kB / 354.8 MB, free: 9.832 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.03216, allocations: 61.69 kB / 354.8 MB, free: 9.766 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.03235, allocations: 330.8 kB / 355.2 MB, free: 9.434 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002693/0.03262, allocations: 128.4 kB / 355.3 MB, free: 9.309 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003218/0.03294, allocations: 196 kB / 355.5 MB, free: 9.098 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006221/0.03356, allocations: 344.9 kB / 355.8 MB, free: 8.742 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.03357, allocations: 4 kB / 355.8 MB, free: 8.738 MB / 282.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001265/0.03483, allocations: 0.4935 MB / 356.3 MB, free: 8.238 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.03485, allocations: 8 kB / 356.3 MB, free: 8.23 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.03486, allocations: 0 / 356.3 MB, free: 8.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008352/0.03569, allocations: 156.9 kB / 356.5 MB, free: 8.074 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.03584, allocations: 31.92 kB / 356.5 MB, free: 8.043 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000879/0.03672, allocations: 0.6772 MB / 357.2 MB, free: 7.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001597/0.03688, allocations: 19.91 kB / 357.2 MB, free: 7.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/0.0369, allocations: 8 kB / 357.2 MB, free: 7.312 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 0.0001542/0.03706, allocations: 129.9 kB / 357.3 MB, free: 7.176 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.03712, allocations: 23.91 kB / 357.4 MB, free: 7.152 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.483e-05/0.0372, allocations: 26.27 kB / 357.4 MB, free: 7.125 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.03722, allocations: 8 kB / 357.4 MB, free: 7.117 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.03722, allocations: 0 / 357.4 MB, free: 7.117 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.03723, allocations: 7.984 kB / 357.4 MB, free: 7.109 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000336/0.03756, allocations: 217.9 kB / 357.6 MB, free: 6.867 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.03757, allocations: 4 kB / 357.6 MB, free: 6.863 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002894/0.03786, allocations: 51.91 kB / 357.7 MB, free: 6.812 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004207/0.03828, allocations: 76.72 kB / 357.8 MB, free: 6.734 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.0383, allocations: 8 kB / 357.8 MB, free: 6.727 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002676/0.04097, allocations: 2.662 MB / 360.4 MB, free: 3.844 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.04098, allocations: 0 / 360.4 MB, free: 3.844 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.0423, allocations: 0.7187 MB / 361.1 MB, free: 3.102 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.369e-05/0.04233, allocations: 19.89 kB / 361.2 MB, free: 3.082 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.685e-05/0.04236, allocations: 7.938 kB / 361.2 MB, free: 3.074 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.04254, allocations: 15.92 kB / 361.2 MB, free: 3.059 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.831e-05/0.04262, allocations: 23.95 kB / 361.2 MB, free: 3.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.04263, allocations: 7.984 kB / 361.2 MB, free: 3.027 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.842e-05/0.04271, allocations: 99.2 kB / 361.3 MB, free: 2.93 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04271, allocations: 0 / 361.3 MB, free: 2.93 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003765/0.04309, allocations: 68 kB / 361.4 MB, free: 2.863 MB / 282.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.0006528/0.04374, allocations: 176.9 kB / 361.6 MB, free: 2.695 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009273/0.04467, allocations: 363.3 kB / 361.9 MB, free: 2.344 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.04467, allocations: 0 / 361.9 MB, free: 2.344 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006433/0.04531, allocations: 290.9 kB / 362.2 MB, free: 2.047 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006834/0.046, allocations: 102.6 kB / 362.3 MB, free: 1.949 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.04719, allocations: 0.6184 MB / 362.9 MB, free: 1.309 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.04734, allocations: 129.4 kB / 363 MB, free: 1.156 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002271/0.04756, allocations: 104.3 kB / 363.1 MB, free: 1.059 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.167e-05/0.04763, allocations: 24.5 kB / 363.2 MB, free: 1.031 MB / 282.7 MB Notification: Performance of SimCode: time 5.11e-07/0.04763, allocations: 4 kB / 363.2 MB, free: 1.027 MB / 282.7 MB Notification: Performance of Templates: time 0.01208/0.05971, allocations: 5.457 MB / 368.6 MB, free: 11.7 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=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.491825381992385]