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.001369/0.001369, allocations: 79.03 kB / 19.76 MB, free: 2.031 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.001639/0.001639, allocations: 157.2 kB / 23.01 MB, free: 4.945 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.467/1.467, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.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.01496/0.01496, allocations: 1.995 MB / 261.8 MB, free: 14.66 MB / 254.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.002264/0.002264, allocations: 59.91 kB / 385.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1141, allocations: 54.14 MB / 439.8 MB, free: 12.18 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01207/0.1262, allocations: 7.698 MB / 447.5 MB, free: 4.438 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009585/0.1358, allocations: 8.163 MB / 455.6 MB, free: 12.25 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002177/0.136, allocations: 3.938 kB / 455.6 MB, free: 12.24 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006012/0.1366, allocations: 143.1 kB / 455.8 MB, free: 12.1 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000353/0.1369, allocations: 95.3 kB / 455.9 MB, free: 12.01 MB / 430.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.004142/0.1411, allocations: 1.444 MB / 457.3 MB, free: 10.56 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004388/0.1415, allocations: 266.7 kB / 457.6 MB, free: 10.3 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.352e-05/0.1416, allocations: 13.81 kB / 457.6 MB, free: 10.29 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004548/0.1461, allocations: 137.7 kB / 457.7 MB, free: 10.16 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002121/0.1463, allocations: 79.61 kB / 457.8 MB, free: 10.08 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.291e-05/0.1463, allocations: 8 kB / 457.8 MB, free: 10.07 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001528/0.1479, allocations: 467.9 kB / 458.3 MB, free: 9.613 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.705e-05/0.148, allocations: 35.84 kB / 458.3 MB, free: 9.578 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.1481, allocations: 71.66 kB / 458.4 MB, free: 9.508 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001396/0.1495, allocations: 0.4985 MB / 458.9 MB, free: 9.008 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1495, allocations: 0 / 458.9 MB, free: 9.008 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1495, allocations: 0 / 458.9 MB, free: 9.008 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.1495, allocations: 4 kB / 458.9 MB, free: 9.004 MB / 430.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.001004/0.1505, allocations: 492.7 kB / 459.4 MB, free: 8.492 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1505, allocations: 8.031 kB / 459.4 MB, free: 8.484 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003637/0.1509, allocations: 52.8 kB / 459.4 MB, free: 8.434 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.1512, allocations: 154.2 kB / 459.6 MB, free: 8.258 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.1512, allocations: 8.375 kB / 459.6 MB, free: 8.25 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.234e-05/0.1512, allocations: 20.31 kB / 459.6 MB, free: 8.23 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006137/0.1518, allocations: 299.1 kB / 459.9 MB, free: 7.906 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.1519, allocations: 0 / 459.9 MB, free: 7.906 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.1519, allocations: 4 kB / 459.9 MB, free: 7.902 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.1519, allocations: 19.91 kB / 459.9 MB, free: 7.883 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000532/0.1524, allocations: 204.3 kB / 460.1 MB, free: 7.684 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008461/0.1533, allocations: 0.5928 MB / 460.7 MB, free: 7.055 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006498/0.1539, allocations: 226.5 kB / 460.9 MB, free: 6.824 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000262/0.1542, allocations: 132.8 kB / 461.1 MB, free: 6.691 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001845/0.1544, allocations: 95.92 kB / 461.2 MB, free: 6.598 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.1544, allocations: 38.56 kB / 461.2 MB, free: 6.551 MB / 430.1 MB Notification: Performance of pre-optimization done (n=44): time 1.463e-06/0.1544, allocations: 0 / 461.2 MB, free: 6.551 MB / 430.1 MB Notification: Performance of matching and sorting (n=48): time 0.002997/0.1574, allocations: 1.19 MB / 462.4 MB, free: 5.328 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.1574, allocations: 59.34 kB / 462.4 MB, free: 5.258 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.1576, allocations: 129.7 kB / 462.6 MB, free: 5.121 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.1576, allocations: 29.7 kB / 462.6 MB, free: 5.086 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.182e-05/0.1577, allocations: 97.05 kB / 462.7 MB, free: 4.988 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000138/0.1578, allocations: 170.5 kB / 462.9 MB, free: 4.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.146e-05/0.1579, allocations: 57.69 kB / 462.9 MB, free: 4.758 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.1581, allocations: 326.8 kB / 463.2 MB, free: 4.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002654/0.1583, allocations: 132.4 kB / 463.4 MB, free: 4.301 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000311/0.1586, allocations: 188.1 kB / 463.5 MB, free: 4.098 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006059/0.1593, allocations: 348.9 kB / 463.9 MB, free: 3.742 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1593, allocations: 0 / 463.9 MB, free: 3.742 MB / 430.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001213/0.1605, allocations: 490.9 kB / 464.4 MB, free: 3.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.1605, allocations: 8.156 kB / 464.4 MB, free: 3.242 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.1605, allocations: 4 kB / 464.4 MB, free: 3.238 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007873/0.1613, allocations: 156.7 kB / 464.5 MB, free: 3.082 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.1614, allocations: 27.98 kB / 464.6 MB, free: 3.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007731/0.1622, allocations: 0.6771 MB / 465.2 MB, free: 2.352 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.1624, allocations: 12.03 kB / 465.2 MB, free: 2.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.433e-05/0.1624, allocations: 12 kB / 465.3 MB, free: 2.328 MB / 430.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.0001461/0.1625, allocations: 129.8 kB / 465.4 MB, free: 2.191 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.001e-05/0.1626, allocations: 19.86 kB / 465.4 MB, free: 2.172 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.065e-05/0.1627, allocations: 34.2 kB / 465.4 MB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.1627, allocations: 7.938 kB / 465.4 MB, free: 2.133 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.1627, allocations: 4 kB / 465.5 MB, free: 2.129 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.1627, allocations: 3.984 kB / 465.5 MB, free: 2.125 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003187/0.163, allocations: 210.2 kB / 465.7 MB, free: 1.891 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.163, allocations: 0 / 465.7 MB, free: 1.891 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002775/0.1633, allocations: 51.97 kB / 465.7 MB, free: 1.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003391/0.1636, allocations: 68.7 kB / 465.8 MB, free: 1.77 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.1637, allocations: 8 kB / 465.8 MB, free: 1.762 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002399/0.1661, allocations: 2.67 MB / 468.5 MB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1661, allocations: 0 / 468.5 MB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.1673, allocations: 0.7225 MB / 469.2 MB, free: 14.13 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.178e-05/0.1674, allocations: 11.94 kB / 469.2 MB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.376e-05/0.1674, allocations: 8 kB / 469.2 MB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.1675, allocations: 7.984 kB / 469.2 MB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.419e-05/0.1676, allocations: 24.03 kB / 469.2 MB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-05/0.1676, allocations: 15.98 kB / 469.2 MB, free: 14.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.891e-05/0.1677, allocations: 91.27 kB / 469.3 MB, free: 13.97 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1677, allocations: 0 / 469.3 MB, free: 13.97 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003707/0.1681, allocations: 67.94 kB / 469.4 MB, free: 13.91 MB / 446.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.0004063/0.1685, allocations: 182.8 kB / 469.6 MB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0009115/0.1694, allocations: 354.4 kB / 469.9 MB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1694, allocations: 0 / 469.9 MB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006182/0.17, allocations: 299.3 kB / 470.2 MB, free: 13.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006541/0.1707, allocations: 95.77 kB / 470.3 MB, free: 12.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.172, allocations: 0.711 MB / 471 MB, free: 12.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000131/0.1722, allocations: 125.6 kB / 471.1 MB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002379/0.1724, allocations: 109.3 kB / 471.3 MB, free: 12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.266e-05/0.1724, allocations: 24.5 kB / 471.3 MB, free: 11.97 MB / 446.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1724, allocations: 0 / 471.3 MB, free: 11.97 MB / 446.1 MB Notification: Performance of Templates: time 0.01156/0.184, allocations: 5.357 MB / 476.6 MB, free: 6.727 MB / 446.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 -s ida -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.779481510980986] Failed to read output from testmodel.py, exit status != 0: 0.19297906395513564 0.38441987899999996 0.23242527299999996 Calling exit ...