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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) 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=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 107.1 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01214/0.01214, allocations: 2.776 MB / 294 MB, free: 11.99 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001493, allocations: 60.11 kB / 406.6 MB, free: 29.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09631/0.09781, allocations: 50.23 MB / 456.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.0104/0.1083, allocations: 8.359 MB / 465.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008792/0.1171, allocations: 9.466 MB / 474.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001735/0.1173, allocations: 4 kB / 474.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005729/0.1179, allocations: 155 kB / 474.8 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000431/0.1184, allocations: 99.28 kB / 474.9 MB, free: 8.668 MB / 350.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.004321/0.1227, allocations: 1.46 MB / 476.3 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000449/0.1232, allocations: 270.7 kB / 476.6 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.797e-05/0.1232, allocations: 13.69 kB / 476.6 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004815/0.1281, allocations: 129.5 kB / 476.7 MB, free: 6.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002529/0.1283, allocations: 83.62 kB / 476.8 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.09e-05/0.1284, allocations: 8 kB / 476.8 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0018/0.1302, allocations: 475.8 kB / 477.3 MB, free: 6.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.389e-05/0.1303, allocations: 31.84 kB / 477.3 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001462/0.1304, allocations: 91.59 kB / 477.4 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001732/0.1322, allocations: 0.4911 MB / 477.9 MB, free: 5.637 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1322, allocations: 0 / 477.9 MB, free: 5.637 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1322, allocations: 0 / 477.9 MB, free: 5.637 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.1322, allocations: 0 / 477.9 MB, free: 5.637 MB / 350.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.001076/0.1333, allocations: 0.5534 MB / 478.5 MB, free: 5.035 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1334, allocations: 12.03 kB / 478.5 MB, free: 5.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004016/0.1338, allocations: 52.61 kB / 478.5 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/0.1341, allocations: 204.2 kB / 478.7 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.1341, allocations: 8.375 kB / 478.7 MB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.931e-05/0.1341, allocations: 12.38 kB / 478.7 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005822/0.1347, allocations: 247.2 kB / 479 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.1348, allocations: 7.938 kB / 479 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.298e-05/0.1348, allocations: 4 kB / 479 MB, free: 4.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.1348, allocations: 11.98 kB / 479 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005/0.1353, allocations: 200.2 kB / 479.2 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009133/0.1362, allocations: 0.6747 MB / 479.9 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006249/0.1369, allocations: 242.5 kB / 480.1 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/0.1371, allocations: 153.1 kB / 480.3 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002962/0.1374, allocations: 339.2 kB / 480.6 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.1375, allocations: 30.56 kB / 480.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.603e-06/0.1375, allocations: 0 / 480.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.003084/0.1406, allocations: 1.237 MB / 481.9 MB, free: 1.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.1406, allocations: 55.41 kB / 481.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.1407, allocations: 125.8 kB / 482 MB, free: 1.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.1408, allocations: 29.7 kB / 482.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.59e-05/0.1408, allocations: 104.8 kB / 482.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.141, allocations: 161.6 kB / 482.3 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.287e-05/0.1411, allocations: 61.69 kB / 482.4 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.1413, allocations: 326.8 kB / 482.7 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002476/0.1415, allocations: 124.5 kB / 482.8 MB, free: 384 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003173/0.1418, allocations: 188.4 kB / 483 MB, free: 180 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006183/0.1425, allocations: 343.8 kB / 483.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1425, allocations: 0 / 483.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001158/0.1436, allocations: 485.8 kB / 483.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.1437, allocations: 7.984 kB / 483.8 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/0.1437, allocations: 7.938 kB / 483.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007869/0.1445, allocations: 152.9 kB / 484 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.1447, allocations: 31.98 kB / 484 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007628/0.1455, allocations: 0.6732 MB / 484.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.1456, allocations: 16.03 kB / 484.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.1457, allocations: 4 kB / 484.7 MB, free: 14.42 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.0001329/0.1458, allocations: 138.4 kB / 484.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.138e-05/0.1459, allocations: 19.72 kB / 484.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.07e-05/0.1459, allocations: 30.2 kB / 484.9 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.1459, allocations: 8 kB / 484.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.146, allocations: 3.984 kB / 484.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.146, allocations: 0 / 484.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003502/0.1463, allocations: 302.2 kB / 485.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1463, allocations: 0 / 485.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.1466, allocations: 43.97 kB / 485.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003367/0.147, allocations: 64.78 kB / 485.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.561e-05/0.147, allocations: 15.92 kB / 485.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002377/0.1494, allocations: 2.937 MB / 488.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.1494, allocations: 0 / 488.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.1505, allocations: 0.6998 MB / 489 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.142e-05/0.1506, allocations: 96.84 kB / 489.1 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.1507, allocations: 4 kB / 489.1 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.1508, allocations: 8 kB / 489.1 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.082e-05/0.1509, allocations: 27.91 kB / 489.1 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.1509, allocations: 7.984 kB / 489.1 MB, free: 9.621 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.939e-05/0.151, allocations: 95.27 kB / 489.2 MB, free: 9.527 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.151, allocations: 4.062 kB / 489.2 MB, free: 9.523 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003953/0.1514, allocations: 64 kB / 489.3 MB, free: 9.461 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.0003845/0.1518, allocations: 173.6 kB / 489.4 MB, free: 9.293 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008836/0.1527, allocations: 379.1 kB / 489.8 MB, free: 8.922 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1527, allocations: 0 / 489.8 MB, free: 8.922 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006307/0.1533, allocations: 319.3 kB / 490.1 MB, free: 8.598 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006406/0.154, allocations: 95.53 kB / 490.2 MB, free: 8.508 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.1553, allocations: 0.7311 MB / 490.9 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.1556, allocations: 0.7332 MB / 491.7 MB, free: 6.977 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.599e-05/0.1557, allocations: 23.44 kB / 491.7 MB, free: 6.953 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1557, allocations: 0 / 491.7 MB, free: 6.953 MB / 366.1 MB Notification: Performance of Templates: time 0.006888/0.1626, allocations: 3.834 MB / 495.5 MB, free: 3.129 MB / 366.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.makefile (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)