Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.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.001009/0.001009, allocations: 89.06 kB / 19.64 MB, free: 276 kB / 13.93 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.001182/0.001182, allocations: 173 kB / 23.02 MB, free: 1.543 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.013/1.013, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.02335/0.02335, allocations: 1.996 MB / 261.9 MB, free: 11.05 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.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit") translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.477e-06/3.477e-06, allocations: 0 / 332.3 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.023e-05/2.371e-05, allocations: 12.36 kB / 332.3 MB, free: 2.02 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit): time 0.01187/0.01189, allocations: 15.28 MB / 347.6 MB, free: 2.68 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01028/0.02217, allocations: 13.69 MB / 361.3 MB, free: 4.941 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000315/0.02248, allocations: 8 kB / 361.3 MB, free: 4.934 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006249/0.02311, allocations: 341.4 kB / 361.6 MB, free: 4.598 MB / 330.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.TestBasePropertiesExplicit.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.Medium.setState_ph'. Notification: Performance of NFTyping.typeBindings: time 0.003141/0.02625, allocations: 1.866 MB / 363.5 MB, free: 2.719 MB / 330.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.TestBasePropertiesExplicit.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.002044/0.02829, allocations: 0.9904 MB / 364.5 MB, free: 1.723 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001475/0.02977, allocations: 1.828 MB / 366.3 MB, free: 15.88 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.02991, allocations: 55.44 kB / 366.4 MB, free: 15.81 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004573/0.03448, allocations: 0.89 MB / 367.3 MB, free: 14.94 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005655/0.03505, allocations: 482.6 kB / 367.7 MB, free: 14.47 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.658e-05/0.03513, allocations: 72 kB / 367.8 MB, free: 14.4 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001957/0.03709, allocations: 0.7729 MB / 368.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.03725, allocations: 210.9 kB / 368.8 MB, free: 13.42 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004545/0.0377, allocations: 470.9 kB / 369.2 MB, free: 12.96 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001866/0.03957, allocations: 1.467 MB / 370.7 MB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.03957, allocations: 0 / 370.7 MB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.03957, allocations: 0 / 370.7 MB, free: 11.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.03958, allocations: 0 / 370.7 MB, free: 11.48 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 438 * Number of variables: 438 Notification: Performance of Generate backend data structure: time 0.001699/0.04128, allocations: 1.688 MB / 372.4 MB, free: 9.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.04132, allocations: 12.03 kB / 372.4 MB, free: 9.738 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004949/0.04627, allocations: 3.019 MB / 375.4 MB, free: 6.715 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005472/0.04681, allocations: 438.9 kB / 375.9 MB, free: 6.258 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.101e-05/0.04689, allocations: 86.45 kB / 375.9 MB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.04699, allocations: 104.4 kB / 376 MB, free: 6.07 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.04861, allocations: 1.249 MB / 377.3 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.04863, allocations: 192 / 377.3 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.809e-05/0.0487, allocations: 48.12 kB / 377.3 MB, free: 4.668 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-05/0.04876, allocations: 91.94 kB / 377.4 MB, free: 4.578 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.04982, allocations: 0.6933 MB / 378.1 MB, free: 3.883 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004435/0.05426, allocations: 5.132 MB / 383.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007255/0.05498, allocations: 412 kB / 383.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003901/0.05537, allocations: 295.3 kB / 383.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00153/0.0569, allocations: 1.631 MB / 385.6 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.05693, allocations: 41.39 kB / 385.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=193): time 1.723e-06/0.05693, allocations: 0 / 385.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=193): time 0.001738/0.05867, allocations: 1.094 MB / 386.7 MB, free: 11.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/0.05871, allocations: 81.11 kB / 386.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001923/0.0589, allocations: 271.8 kB / 387.1 MB, free: 10.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.3e-05/0.05893, allocations: 33.7 kB / 387.1 MB, free: 10.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002198/0.05915, allocations: 0.5005 MB / 387.6 MB, free: 10.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003561/0.05951, allocations: 0.6232 MB / 388.2 MB, free: 9.555 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/0.05972, allocations: 187.7 kB / 388.4 MB, free: 9.363 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.05985, allocations: 492.4 kB / 388.9 MB, free: 8.875 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002553/0.06011, allocations: 150.4 kB / 389 MB, free: 8.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004467/0.06055, allocations: 0.4962 MB / 389.5 MB, free: 8.105 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008119/0.06136, allocations: 0.7904 MB / 390.3 MB, free: 7.184 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.06137, allocations: 4 kB / 390.3 MB, free: 7.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.001057/0.06243, allocations: 0.8448 MB / 391.2 MB, free: 6.328 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.06244, allocations: 8 kB / 391.2 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.06246, allocations: 4 kB / 391.2 MB, free: 6.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.06248, allocations: 16.03 kB / 391.2 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002303/0.06271, allocations: 83.84 kB / 391.3 MB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.06272, allocations: 15.92 kB / 391.3 MB, free: 6.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002801/0.063, allocations: 118.9 kB / 391.4 MB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-05/0.06305, allocations: 32 kB / 391.4 MB, free: 6.055 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 14 (medium2.completeBubbleDewStates.bubbleStateTwoPhase.state.phase,medium2.completeBubbleDewStates.bubbleStateOnePhase.state.phase,medium2.completeBubbleDewStates.dewStateTwoPhase.state.phase,medium2.completeBubbleDewStates.dewStateOnePhase.state.phase,medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeBubbleDewStates.bubbleStateTwoPhase.state.phase,medium1.completeBubbleDewStates.bubbleStateOnePhase.state.phase,medium1.completeBubbleDewStates.dewStateTwoPhase.state.phase,medium1.completeBubbleDewStates.dewStateOnePhase.state.phase,medium1.completeState.state.phase,medium1.baseProperties.phaseOutput,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.0002129/0.06326, allocations: 192.4 kB / 391.6 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.06337, allocations: 71.53 kB / 391.7 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.488e-05/0.06345, allocations: 48.95 kB / 391.7 MB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.06346, allocations: 11.98 kB / 391.7 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.06346, allocations: 0 / 391.7 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.06346, allocations: 0 / 391.7 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007715/0.06424, allocations: 0.6959 MB / 392.4 MB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.06424, allocations: 0 / 392.4 MB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.914e-05/0.06433, allocations: 23.98 kB / 392.5 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.06433, allocations: 4 kB / 392.5 MB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.996e-05/0.06436, allocations: 19.98 kB / 392.5 MB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.06437, allocations: 0 / 392.5 MB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.06437, allocations: 4 kB / 392.5 MB, free: 4.945 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009586/0.06533, allocations: 0.9789 MB / 393.5 MB, free: 3.945 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.509e-05/0.0654, allocations: 91.09 kB / 393.6 MB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.06544, allocations: 7.938 kB / 393.6 MB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.06564, allocations: 8 kB / 393.6 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.376e-05/0.06573, allocations: 31.95 kB / 393.6 MB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.879e-05/0.06576, allocations: 19.98 kB / 393.6 MB, free: 3.789 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.742e-05/0.06584, allocations: 163.3 kB / 393.8 MB, free: 3.629 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.06584, allocations: 0 / 393.8 MB, free: 3.629 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007135/0.06656, allocations: 375 kB / 394.2 MB, free: 3.262 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 12 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium2.completeBubbleDewStates.dewStateOnePhase.state.phase,medium2.completeBubbleDewStates.dewStateTwoPhase.state.phase,medium2.completeBubbleDewStates.bubbleStateOnePhase.state.phase,medium2.completeBubbleDewStates.bubbleStateTwoPhase.state.phase,medium1.baseProperties.phaseOutput,medium1.completeState.state.phase,medium1.completeBubbleDewStates.dewStateOnePhase.state.phase,medium1.completeBubbleDewStates.dewStateTwoPhase.state.phase,medium1.completeBubbleDewStates.bubbleStateOnePhase.state.phase,medium1.completeBubbleDewStates.bubbleStateTwoPhase.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.0003639/0.06692, allocations: 198.8 kB / 394.3 MB, free: 3.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.06818, allocations: 1.519 MB / 395.9 MB, free: 1.363 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.06818, allocations: 0 / 395.9 MB, free: 1.363 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.06931, allocations: 1.947 MB / 397.8 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001746/0.07106, allocations: 0.5433 MB / 398.4 MB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002846/0.0739, allocations: 2.198 MB / 400.6 MB, free: 12.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.07424, allocations: 346.9 kB / 400.9 MB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007755/0.07501, allocations: 370.7 kB / 401.3 MB, free: 11.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.07517, allocations: 100.5 kB / 401.4 MB, free: 11.41 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/0.07517, allocations: 0 / 401.4 MB, free: 11.41 MB / 378.7 MB Notification: Performance of Templates: time 0.03305/0.1082, allocations: 26.81 MB / 428.2 MB, free: 0.9531 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.makefile [Timeout 660] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit -abortSlowSimulation -alarm=240 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.7186647979542613]