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.001466/0.001466, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.001651/0.001651, allocations: 220 kB / 23 MB, free: 4.914 MB / 14.72 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.577/1.577, allocations: 230.6 MB / 256.8 MB, free: 7.832 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01345/0.01345, allocations: 2.804 MB / 316 MB, free: 112 kB / 238.1 MB " [Timeout remaining time 180] 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.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: ExternalMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 71.89 kB / 439.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1244, allocations: 54.17 MB / 494 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.0113/0.1357, allocations: 7.699 MB / 0.49 GB, free: 14.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009315/0.145, allocations: 8.155 MB / 0.498 GB, free: 6.652 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000212/0.1452, allocations: 4 kB / 0.498 GB, free: 6.648 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006776/0.1459, allocations: 131.2 kB / 0.4981 GB, free: 6.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003958/0.1463, allocations: 95.3 kB / 0.4982 GB, free: 6.426 MB / 366.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.005316/0.1516, allocations: 1.444 MB / 0.4996 GB, free: 4.977 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005211/0.1521, allocations: 270.7 kB / 0.4998 GB, free: 4.711 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.075e-05/0.1522, allocations: 5.812 kB / 0.4998 GB, free: 4.707 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005214/0.1574, allocations: 134.3 kB / 0.5 GB, free: 4.578 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002362/0.1576, allocations: 79.67 kB / 0.5 GB, free: 4.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.649e-05/0.1577, allocations: 8 kB / 0.5001 GB, free: 4.492 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001977/0.1597, allocations: 475.8 kB / 0.5005 GB, free: 4.027 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.1598, allocations: 35.86 kB / 0.5005 GB, free: 3.992 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.1599, allocations: 71.64 kB / 0.5006 GB, free: 3.922 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001206/0.1611, allocations: 0.4985 MB / 0.5011 GB, free: 3.422 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1611, allocations: 0 / 0.5011 GB, free: 3.422 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1611, allocations: 0 / 0.5011 GB, free: 3.422 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1611, allocations: 0 / 0.5011 GB, free: 3.422 MB / 366.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.001053/0.1622, allocations: 488.8 kB / 0.5016 GB, free: 2.914 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.1622, allocations: 12.03 kB / 0.5016 GB, free: 2.902 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003534/0.1626, allocations: 56.75 kB / 0.5016 GB, free: 2.848 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002855/0.1628, allocations: 154.2 kB / 0.5018 GB, free: 2.672 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.1629, allocations: 8.375 kB / 0.5018 GB, free: 2.664 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.717e-05/0.1629, allocations: 12.38 kB / 0.5018 GB, free: 2.652 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006234/0.1635, allocations: 304.3 kB / 0.5021 GB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1635, allocations: 0 / 0.5021 GB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.279e-05/0.1636, allocations: 4 kB / 0.5021 GB, free: 2.324 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.1636, allocations: 11.98 kB / 0.5021 GB, free: 2.312 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005203/0.1641, allocations: 212.2 kB / 0.5023 GB, free: 2.105 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009612/0.1651, allocations: 0.6039 MB / 0.5029 GB, free: 1.461 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006477/0.1657, allocations: 226.5 kB / 0.5031 GB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002603/0.166, allocations: 128.8 kB / 0.5032 GB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002061/0.1662, allocations: 99.92 kB / 0.5033 GB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.1662, allocations: 42.72 kB / 0.5034 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.552e-06/0.1662, allocations: 0 / 0.5034 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.2949/0.4611, allocations: 1.174 MB / 0.5045 GB, free: 24.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.4612, allocations: 55.78 kB / 0.5046 GB, free: 24.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.4613, allocations: 122.5 kB / 0.5047 GB, free: 24.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.4613, allocations: 31.89 kB / 0.5047 GB, free: 24.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.962e-05/0.4614, allocations: 103.8 kB / 0.5048 GB, free: 24.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.4615, allocations: 167.7 kB / 0.505 GB, free: 24.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.4616, allocations: 57.34 kB / 0.505 GB, free: 24.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.84e-05/0.4617, allocations: 331.2 kB / 0.5053 GB, free: 24.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002604/0.4619, allocations: 128.9 kB / 0.5055 GB, free: 24.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003132/0.4622, allocations: 193.7 kB / 0.5057 GB, free: 24.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005989/0.4628, allocations: 346.1 kB / 0.506 GB, free: 24.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.4628, allocations: 1.328 kB / 0.506 GB, free: 24.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001179/0.464, allocations: 499.7 kB / 0.5065 GB, free: 24.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.464, allocations: 8.891 kB / 0.5065 GB, free: 24.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4641, allocations: 1.062 kB / 0.5065 GB, free: 24.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007933/0.4649, allocations: 158.7 kB / 0.5066 GB, free: 24.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.465, allocations: 36.48 kB / 0.5067 GB, free: 24.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006179/0.4656, allocations: 0.6696 MB / 0.5073 GB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.4658, allocations: 12.03 kB / 0.5073 GB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.4658, allocations: 11 kB / 0.5073 GB, free: 23.55 MB / 366.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 0.0001139/0.4659, allocations: 137.7 kB / 0.5075 GB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.108e-05/0.466, allocations: 19.52 kB / 0.5075 GB, free: 23.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.641e-05/0.466, allocations: 22.11 kB / 0.5075 GB, free: 23.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.849e-05/0.466, allocations: 9.844 kB / 0.5075 GB, free: 23.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.4661, allocations: 0.7969 kB / 0.5075 GB, free: 23.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.4661, allocations: 5.062 kB / 0.5075 GB, free: 23.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002945/0.4664, allocations: 217.2 kB / 0.5077 GB, free: 23.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.4664, allocations: 0 / 0.5077 GB, free: 23.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002808/0.4666, allocations: 48.59 kB / 0.5078 GB, free: 23.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003265/0.467, allocations: 73.8 kB / 0.5078 GB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.467, allocations: 11.98 kB / 0.5079 GB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001509/0.4685, allocations: 2.662 MB / 0.5105 GB, free: 20.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4685, allocations: 7.078 kB / 0.5105 GB, free: 20.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.4696, allocations: 0.7136 MB / 0.5112 GB, free: 20.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.234e-05/0.4696, allocations: 22.44 kB / 0.5112 GB, free: 20.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.4696, allocations: 6.797 kB / 0.5112 GB, free: 20.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.4698, allocations: 10.73 kB / 0.5112 GB, free: 20.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.018e-05/0.4699, allocations: 26.66 kB / 0.5112 GB, free: 20.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.801e-05/0.4699, allocations: 6.812 kB / 0.5112 GB, free: 20.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.903e-05/0.4699, allocations: 93.86 kB / 0.5113 GB, free: 20.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4699, allocations: 1.25 kB / 0.5113 GB, free: 20.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003737/0.4703, allocations: 62.48 kB / 0.5114 GB, free: 20.26 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 (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.0004255/0.4707, allocations: 179.8 kB / 0.5116 GB, free: 20.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008356/0.4716, allocations: 353.6 kB / 0.5119 GB, free: 20.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4716, allocations: 3.938 kB / 0.5119 GB, free: 20.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006143/0.4722, allocations: 301.4 kB / 0.5122 GB, free: 19.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006469/0.4728, allocations: 96.06 kB / 0.5123 GB, free: 19.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.4742, allocations: 0.7421 MB / 0.513 GB, free: 19.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.4743, allocations: 125.8 kB / 0.5131 GB, free: 19.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.295e-05/0.4744, allocations: 23.67 kB / 0.5131 GB, free: 19.36 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.4744, allocations: 1.156 kB / 0.5131 GB, free: 19.36 MB / 366.1 MB Notification: Performance of Templates: time 0.008555/0.4829, allocations: 3.932 MB / 0.517 GB, free: 19.02 MB / 366.1 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: 8.129758540075272] Failed to read output from testmodel.py, exit status != 0: 0.49070926709100604 0.506685025 0.34278903200000005 Calling exit ...