Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.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.001324/0.001324, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001533/0.001533, allocations: 181 kB / 23.36 MB, free: 1.133 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.005/1.005, allocations: 177.1 MB / 203.8 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] 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.007708/0.007708, allocations: 1.994 MB / 262.2 MB, free: 10.96 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.TestStatesSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat") translateModel(ExternalMedia.Test.TestMedium.TestStatesSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 279.6 MB, free: 9.637 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.137e-05/2.27e-05, allocations: 2.312 kB / 279.6 MB, free: 9.633 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestStatesSat): time 0.1357/0.1357, allocations: 15.97 MB / 295.5 MB, free: 18.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.1462, allocations: 14.39 MB / 309.9 MB, free: 9.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005431/0.1467, allocations: 8.594 kB / 309.9 MB, free: 9.336 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007083/0.1474, allocations: 375.5 kB / 310.3 MB, free: 9.164 MB / 266.7 MB [/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.TestStatesSat.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestStatesSat.Medium.setState_ph'. [/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.TestStatesSat.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestStatesSat.Medium.setState_ph'. Notification: Performance of NFTyping.typeBindings: time 0.003002/0.1504, allocations: 1.925 MB / 312.2 MB, free: 7.668 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.TestStatesSat.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestStatesSat.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.002116/0.1525, allocations: 1.042 MB / 313.3 MB, free: 6.832 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001107/0.1537, allocations: 1.847 MB / 315.1 MB, free: 5.691 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.1538, allocations: 75.08 kB / 315.2 MB, free: 5.641 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00382/0.1576, allocations: 0.8458 MB / 316 MB, free: 5.215 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004595/0.1581, allocations: 493.9 kB / 316.5 MB, free: 5.008 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.948e-05/0.1581, allocations: 48.06 kB / 316.6 MB, free: 5.008 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001479/0.1596, allocations: 0.813 MB / 317.4 MB, free: 4.477 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.882e-05/0.1597, allocations: 202.7 kB / 317.6 MB, free: 4.277 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002709/0.16, allocations: 478.8 kB / 318 MB, free: 3.809 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001305/0.1613, allocations: 1.537 MB / 319.6 MB, free: 2.266 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1613, allocations: 0 / 319.6 MB, free: 2.266 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1613, allocations: 0 / 319.6 MB, free: 2.266 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.709e-05/0.1613, allocations: 4 kB / 319.6 MB, free: 2.262 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.001125/0.1624, allocations: 1.593 MB / 321.2 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.1624, allocations: 8.031 kB / 321.2 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003794/0.1662, allocations: 2.777 MB / 324 MB, free: 13.85 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003906/0.1666, allocations: 323.9 kB / 324.3 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.875e-05/0.1667, allocations: 82.5 kB / 324.4 MB, free: 13.42 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.664e-05/0.1667, allocations: 100.4 kB / 324.5 MB, free: 13.32 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.1678, allocations: 1.175 MB / 325.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.1678, allocations: 2.953 kB / 325.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.195e-05/0.1678, allocations: 44.38 kB / 325.7 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-05/0.1679, allocations: 95.8 kB / 325.8 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006126/0.1685, allocations: 0.5944 MB / 326.4 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002588/0.1711, allocations: 3.374 MB / 329.7 MB, free: 7.871 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005166/0.1716, allocations: 0.5524 MB / 330.3 MB, free: 7.246 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001967/0.1718, allocations: 253.4 kB / 330.5 MB, free: 6.977 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001419/0.1732, allocations: 1.995 MB / 332.5 MB, free: 4.957 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.1732, allocations: 46.5 kB / 332.6 MB, free: 4.902 MB / 282.7 MB Notification: Performance of pre-optimization done (n=253): time 1.573e-06/0.1733, allocations: 0 / 332.6 MB, free: 4.902 MB / 282.7 MB Notification: Performance of matching and sorting (n=253): time 0.001325/0.1746, allocations: 1.113 MB / 333.7 MB, free: 3.797 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.505e-05/0.1747, allocations: 243.4 kB / 333.9 MB, free: 3.504 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.1748, allocations: 182.4 kB / 334.1 MB, free: 3.312 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.1748, allocations: 33.7 kB / 334.1 MB, free: 3.273 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.1749, allocations: 434.9 kB / 334.6 MB, free: 2.84 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003404/0.1753, allocations: 0.8204 MB / 335.4 MB, free: 2.012 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.1754, allocations: 194.2 kB / 335.6 MB, free: 1.816 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.659e-05/0.1755, allocations: 306 kB / 335.9 MB, free: 1.512 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.1756, allocations: 137.6 kB / 336 MB, free: 1.375 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.1759, allocations: 388.2 kB / 336.4 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004742/0.1763, allocations: 0.6912 MB / 337.1 MB, free: 124 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.1763, allocations: 4 kB / 337.1 MB, free: 120 kB / 282.7 MB Notification: Performance of matching and sorting (n=274) (initialization): time 0.0006161/0.1769, allocations: 0.7218 MB / 337.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.177, allocations: 16.14 kB / 337.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.177, allocations: 8 kB / 337.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.177, allocations: 10.72 kB / 337.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.1771, allocations: 79.84 kB / 337.9 MB, free: 15.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.1772, allocations: 11.94 kB / 337.9 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002104/0.1774, allocations: 130.7 kB / 338.1 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.1774, allocations: 24 kB / 338.1 MB, free: 15.12 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 16 (completeBubbleDewStates2.bubbleStateTwoPhase.state.phase,completeBubbleDewStates2.bubbleStateOnePhase.state.phase,completeBubbleDewStates2.dewStateTwoPhase.state.phase,completeBubbleDewStates2.dewStateOnePhase.state.phase,completeBubbleDewStates1.bubbleStateTwoPhase.state.phase,completeBubbleDewStates1.bubbleStateOnePhase.state.phase,completeBubbleDewStates1.dewStateTwoPhase.state.phase,completeBubbleDewStates1.dewStateOnePhase.state.phase,state2.phase,state1.phase,baseProperties2.phaseOutput,baseProperties2.state.phase,baseProperties1.phaseOutput,baseProperties1.state.phase,baseProperties1.phaseInput,baseProperties2.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001591/0.1776, allocations: 147.1 kB / 338.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.1777, allocations: 47.89 kB / 338.3 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.932e-05/0.1777, allocations: 46.41 kB / 338.3 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/0.1778, allocations: 19.98 kB / 338.3 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.1778, allocations: 4 kB / 338.3 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1778, allocations: 3.984 kB / 338.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006014/0.1784, allocations: 0.4901 MB / 338.8 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1784, allocations: 4 kB / 338.8 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.204e-05/0.1784, allocations: 35.91 kB / 338.9 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.1784, allocations: 11.25 kB / 338.9 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.1785, allocations: 12 kB / 338.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.1785, allocations: 8 kB / 338.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1785, allocations: 0 / 338.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007135/0.1792, allocations: 1.414 MB / 340.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.882e-05/0.1792, allocations: 114.8 kB / 340.4 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.1793, allocations: 8 kB / 340.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002636/0.1795, allocations: 8 kB / 340.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.129e-05/0.1796, allocations: 39.88 kB / 340.5 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.1796, allocations: 4 kB / 340.5 MB, free: 12.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.878e-05/0.1796, allocations: 40.81 kB / 340.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1796, allocations: 0 / 340.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006402/0.1803, allocations: 407 kB / 340.9 MB, free: 12.21 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 14 (completeBubbleDewStates1.dewStateOnePhase.state.phase,completeBubbleDewStates1.dewStateTwoPhase.state.phase,completeBubbleDewStates1.bubbleStateOnePhase.state.phase,completeBubbleDewStates1.bubbleStateTwoPhase.state.phase,completeBubbleDewStates2.dewStateOnePhase.state.phase,completeBubbleDewStates2.dewStateTwoPhase.state.phase,completeBubbleDewStates2.bubbleStateOnePhase.state.phase,completeBubbleDewStates2.bubbleStateTwoPhase.state.phase,state2.phase,state1.phase,baseProperties2.state.phase,baseProperties2.phaseOutput,baseProperties1.state.phase,baseProperties1.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004109/0.1807, allocations: 266.2 kB / 341.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000814/0.1815, allocations: 1.369 MB / 342.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.1815, allocations: 0 / 342.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007854/0.1823, allocations: 1.735 MB / 344.3 MB, free: 8.359 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/0.1839, allocations: 0.6372 MB / 344.9 MB, free: 7.781 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002185/0.1861, allocations: 2.456 MB / 347.4 MB, free: 5.246 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.1864, allocations: 367.5 kB / 347.7 MB, free: 4.863 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005806/0.187, allocations: 421.7 kB / 348.2 MB, free: 4.449 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006958/0.1877, allocations: 499 kB / 348.6 MB, free: 3.957 MB / 298.7 MB Notification: Performance of SimCode: time 9.21e-07/0.1877, allocations: 0 / 348.6 MB, free: 3.957 MB / 298.7 MB Notification: Performance of Templates: time 0.03255/0.2202, allocations: 30.61 MB / 379.2 MB, free: 5.855 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.makefile [Timeout 660] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.501275003887713]