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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001707/0.001707, allocations: 187 kB / 22.22 MB, free: 5.105 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.537/1.537, allocations: 225.6 MB / 251 MB, free: 13.03 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.01286/0.01286, allocations: 2.8 MB / 309.1 MB, free: 5.93 MB / 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.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=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 0.001887/0.001887, allocations: 71.88 kB / 430.7 MB, free: 20.34 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1039, allocations: 52.99 MB / 483.7 MB, free: 15.25 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01073/0.1146, allocations: 8.437 MB / 492.1 MB, free: 6.773 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.009659/0.1243, allocations: 9.498 MB / 0.4898 GB, free: 13.24 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001378/0.1244, allocations: 0 / 0.4898 GB, free: 13.24 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0005757/0.125, allocations: 163 kB / 0.49 GB, free: 13.08 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003373/0.1253, allocations: 99.36 kB / 0.4901 GB, free: 12.98 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.003964/0.1293, allocations: 1.459 MB / 0.4915 GB, free: 11.52 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004279/0.1297, allocations: 266.8 kB / 0.4918 GB, free: 11.26 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 5.878e-05/0.1298, allocations: 9.812 kB / 0.4918 GB, free: 11.25 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.004485/0.1343, allocations: 134.8 kB / 0.4919 GB, free: 11.12 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002021/0.1345, allocations: 87.61 kB / 0.492 GB, free: 11.04 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.088e-05/0.1345, allocations: 8 kB / 0.492 GB, free: 11.03 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001657/0.1362, allocations: 479.8 kB / 0.4925 GB, free: 10.56 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.802e-05/0.1363, allocations: 31.91 kB / 0.4925 GB, free: 10.53 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.1364, allocations: 87.53 kB / 0.4926 GB, free: 10.44 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001137/0.1375, allocations: 0.4947 MB / 0.4931 GB, free: 9.945 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1375, allocations: 0 / 0.4931 GB, free: 9.945 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.433e-06/0.1375, allocations: 0 / 0.4931 GB, free: 9.945 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 1.266e-05/0.1375, allocations: 0 / 0.4931 GB, free: 9.945 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.001036/0.1386, allocations: 0.489 MB / 0.4935 GB, free: 9.426 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.1386, allocations: 8.031 kB / 0.4935 GB, free: 9.418 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003579/0.139, allocations: 52.75 kB / 0.4936 GB, free: 9.367 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.1392, allocations: 150.2 kB / 0.4937 GB, free: 9.195 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/0.1393, allocations: 16.38 kB / 0.4938 GB, free: 9.18 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.204e-05/0.1393, allocations: 12.36 kB / 0.4938 GB, free: 9.168 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005741/0.1399, allocations: 251.3 kB / 0.494 GB, free: 8.91 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.1399, allocations: 4 kB / 0.494 GB, free: 8.906 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/0.1399, allocations: 4 kB / 0.494 GB, free: 8.902 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.1399, allocations: 7.984 kB / 0.494 GB, free: 8.895 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000543/0.1405, allocations: 212.2 kB / 0.4942 GB, free: 8.688 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.1415, allocations: 0.6465 MB / 0.4949 GB, free: 7.988 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006657/0.1422, allocations: 222.5 kB / 0.4951 GB, free: 7.762 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.1424, allocations: 137.2 kB / 0.4952 GB, free: 7.625 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001825/0.1426, allocations: 95.94 kB / 0.4953 GB, free: 7.531 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.1426, allocations: 38.55 kB / 0.4953 GB, free: 7.484 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=44): time 1.443e-06/0.1427, allocations: 0 / 0.4953 GB, free: 7.484 MB / 366.1 MB
Notification: Performance of matching and sorting (n=48): time 0.003057/0.1457, allocations: 1.186 MB / 0.4965 GB, free: 6.262 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.1458, allocations: 55.41 kB / 0.4965 GB, free: 6.195 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.1459, allocations: 125.8 kB / 0.4967 GB, free: 6.062 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.705e-05/0.1459, allocations: 29.7 kB / 0.4967 GB, free: 6.027 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 9.384e-05/0.146, allocations: 108.9 kB / 0.4968 GB, free: 5.918 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.1462, allocations: 158.5 kB / 0.4969 GB, free: 5.762 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.1463, allocations: 69.64 kB / 0.497 GB, free: 5.688 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001855/0.1465, allocations: 326.8 kB / 0.4973 GB, free: 5.359 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002733/0.1467, allocations: 132.4 kB / 0.4974 GB, free: 5.23 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003238/0.147, allocations: 184.1 kB / 0.4976 GB, free: 5.035 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0006231/0.1477, allocations: 355.8 kB / 0.498 GB, free: 4.668 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.1477, allocations: 0 / 0.498 GB, free: 4.668 MB / 366.1 MB
Notification: Performance of matching and sorting (n=55) (initialization): time 0.00129/0.149, allocations: 493.9 kB / 0.4984 GB, free: 4.176 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.149, allocations: 4 kB / 0.4984 GB, free: 4.172 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.149, allocations: 0 / 0.4984 GB, free: 4.172 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0008536/0.1498, allocations: 160.8 kB / 0.4986 GB, free: 4.012 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.15, allocations: 31.92 kB / 0.4986 GB, free: 3.98 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008139/0.1508, allocations: 0.6733 MB / 0.4993 GB, free: 3.281 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.151, allocations: 8 kB / 0.4993 GB, free: 3.273 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.151, allocations: 15.98 kB / 0.4993 GB, free: 3.258 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.0001694/0.1512, allocations: 137.8 kB / 0.4994 GB, free: 3.113 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.126e-05/0.1512, allocations: 15.86 kB / 0.4994 GB, free: 3.098 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.914e-05/0.1513, allocations: 26.22 kB / 0.4995 GB, free: 3.066 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.771e-05/0.1513, allocations: 11.98 kB / 0.4995 GB, free: 3.055 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.1514, allocations: 4 kB / 0.4995 GB, free: 3.051 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.1514, allocations: 0 / 0.4995 GB, free: 3.051 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004015/0.1518, allocations: 277.2 kB / 0.4998 GB, free: 2.734 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1518, allocations: 0 / 0.4998 GB, free: 2.734 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.1521, allocations: 51.91 kB / 0.4998 GB, free: 2.684 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0003768/0.1524, allocations: 72.77 kB / 0.4999 GB, free: 2.609 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.1524, allocations: 3.938 kB / 0.4999 GB, free: 2.605 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002527/0.155, allocations: 2.72 MB / 0.5025 GB, free: 15.64 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.155, allocations: 8.125 kB / 0.5025 GB, free: 15.63 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.1563, allocations: 0.7054 MB / 0.5032 GB, free: 14.91 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.35e-05/0.1563, allocations: 19.88 kB / 0.5032 GB, free: 14.89 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.1563, allocations: 4 kB / 0.5033 GB, free: 14.89 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.1565, allocations: 16.06 kB / 0.5033 GB, free: 14.87 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.573e-05/0.1566, allocations: 31.83 kB / 0.5033 GB, free: 14.84 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.822e-05/0.1566, allocations: 7.984 kB / 0.5033 GB, free: 14.83 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 7.282e-05/0.1567, allocations: 87.28 kB / 0.5034 GB, free: 14.75 MB / 382.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.1567, allocations: 0 / 0.5034 GB, free: 14.75 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.000399/0.1571, allocations: 71.92 kB / 0.5035 GB, free: 14.68 MB / 382.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.0004406/0.1575, allocations: 172.9 kB / 0.5036 GB, free: 14.52 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.0009064/0.1584, allocations: 354.8 kB / 0.504 GB, free: 14.17 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.1584, allocations: 0 / 0.504 GB, free: 14.17 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0006268/0.1591, allocations: 296.7 kB / 0.5042 GB, free: 13.87 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006553/0.1597, allocations: 102.3 kB / 0.5043 GB, free: 13.77 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001391/0.1611, allocations: 0.7081 MB / 0.505 GB, free: 13.04 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/0.1615, allocations: 0.7411 MB / 0.5058 GB, free: 12.27 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0002608/0.1618, allocations: 107.7 kB / 0.5059 GB, free: 12.16 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.988e-05/0.1619, allocations: 15.44 kB / 0.5059 GB, free: 12.14 MB / 382.1 MB
Notification: Performance of SimCode: time 4.21e-07/0.1619, allocations: 4 kB / 0.5059 GB, free: 12.14 MB / 382.1 MB
Notification: Performance of Templates: time 0.01246/0.1743, allocations: 5.589 MB / 0.5113 GB, free: 6.613 MB / 382.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: 5.006410149857402]
Failed to read output from testmodel.py, exit status != 0:
0.18215129803866148 0.388970282 0.24856670200000003
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fa15a5dd7b0>