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.001126/0.001126, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.001237/0.001237, allocations: 173 kB / 24.06 MB, free: 452 kB / 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.026/1.026, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.009729/0.009729, allocations: 1.991 MB / 263 MB, free: 10.91 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.015e-06/3.015e-06, allocations: 4 kB / 333.5 MB, free: 1.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.049e-05/2.35e-05, allocations: 8.781 kB / 333.5 MB, free: 1.742 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit): time 0.01065/0.01068, allocations: 15.13 MB / 348.7 MB, free: 2.547 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.02203, allocations: 13.49 MB / 362.2 MB, free: 5.008 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005137/0.02255, allocations: 8 kB / 362.2 MB, free: 5 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000703/0.02325, allocations: 325.5 kB / 362.5 MB, free: 4.68 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.003239/0.02649, allocations: 1.873 MB / 364.4 MB, free: 2.793 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.002052/0.02854, allocations: 0.9865 MB / 365.4 MB, free: 1.801 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001396/0.02994, allocations: 1.839 MB / 367.2 MB, free: 15.95 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.03008, allocations: 51.48 kB / 367.2 MB, free: 15.89 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004326/0.03441, allocations: 0.8992 MB / 368.1 MB, free: 15.01 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005066/0.03492, allocations: 478.6 kB / 368.6 MB, free: 14.54 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.355e-05/0.035, allocations: 76 kB / 368.7 MB, free: 14.47 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001751/0.03675, allocations: 0.7651 MB / 369.5 MB, free: 13.7 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.0369, allocations: 214.9 kB / 369.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004137/0.03731, allocations: 474.8 kB / 370.1 MB, free: 13.03 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001726/0.03904, allocations: 1.467 MB / 371.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.03904, allocations: 0 / 371.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.03904, allocations: 0 / 371.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.925e-05/0.03906, allocations: 0 / 371.6 MB, free: 11.55 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.0015/0.04056, allocations: 1.696 MB / 373.3 MB, free: 9.812 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.04059, allocations: 8.031 kB / 373.3 MB, free: 9.805 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003611/0.0442, allocations: 3.023 MB / 376.3 MB, free: 6.777 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005323/0.04474, allocations: 438.8 kB / 376.7 MB, free: 6.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.929e-05/0.0448, allocations: 86.52 kB / 376.8 MB, free: 6.234 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.161e-05/0.04488, allocations: 104.4 kB / 376.9 MB, free: 6.133 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.04602, allocations: 1.147 MB / 378.1 MB, free: 4.879 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.04604, allocations: 192 / 378.1 MB, free: 4.879 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.113e-05/0.04609, allocations: 52.06 kB / 378.1 MB, free: 4.828 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.435e-05/0.04614, allocations: 95.92 kB / 378.2 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006236/0.04677, allocations: 0.5488 MB / 378.8 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003892/0.05066, allocations: 5.027 MB / 383.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005199/0.05118, allocations: 356 kB / 384.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.05139, allocations: 239.3 kB / 384.4 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001344/0.05274, allocations: 1.65 MB / 386 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.05276, allocations: 37.39 kB / 386.1 MB, free: 12.72 MB / 362.7 MB Notification: Performance of pre-optimization done (n=193): time 2.435e-06/0.05276, allocations: 0 / 386.1 MB, free: 12.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=193): time 0.001187/0.05395, allocations: 1.008 MB / 387.1 MB, free: 11.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.05399, allocations: 85.05 kB / 387.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000154/0.05414, allocations: 267.7 kB / 387.4 MB, free: 11.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.05417, allocations: 29.7 kB / 387.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.05437, allocations: 0.5005 MB / 388 MB, free: 10.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003125/0.05468, allocations: 0.6347 MB / 388.6 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001831/0.05486, allocations: 199.6 kB / 388.8 MB, free: 9.941 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.055, allocations: 492.4 kB / 389.3 MB, free: 9.453 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.05515, allocations: 122.4 kB / 389.4 MB, free: 9.336 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000344/0.05549, allocations: 483.9 kB / 389.9 MB, free: 8.734 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006452/0.05614, allocations: 0.7279 MB / 390.6 MB, free: 7.875 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.05614, allocations: 0 / 390.6 MB, free: 7.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.0007949/0.05694, allocations: 0.7742 MB / 391.4 MB, free: 7.094 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.05696, allocations: 11.98 kB / 391.4 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.05698, allocations: 8 kB / 391.4 MB, free: 7.074 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.05699, allocations: 8 kB / 391.4 MB, free: 7.066 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.05718, allocations: 83.84 kB / 391.5 MB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.05719, allocations: 15.94 kB / 391.5 MB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002289/0.05742, allocations: 118.9 kB / 391.6 MB, free: 6.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.268e-05/0.05745, allocations: 24.31 kB / 391.6 MB, free: 6.828 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,medium1.baseProperties.phaseInput,medium2.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.0002049/0.05765, allocations: 208.3 kB / 391.8 MB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.041e-05/0.05774, allocations: 71.47 kB / 391.9 MB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.531e-05/0.05781, allocations: 52.95 kB / 391.9 MB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.303e-06/0.05782, allocations: 4 kB / 391.9 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.05782, allocations: 0 / 391.9 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.05783, allocations: 0 / 391.9 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005837/0.05841, allocations: 0.5793 MB / 392.5 MB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.05841, allocations: 0 / 392.5 MB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.066e-05/0.05848, allocations: 31.92 kB / 392.6 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.05849, allocations: 4 kB / 392.6 MB, free: 5.848 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.05851, allocations: 19.98 kB / 392.6 MB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.05851, allocations: 0 / 392.6 MB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.05851, allocations: 0 / 392.6 MB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000709/0.05922, allocations: 0.928 MB / 393.5 MB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.21e-05/0.05928, allocations: 95.03 kB / 393.6 MB, free: 4.785 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.05931, allocations: 4 kB / 393.6 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.05946, allocations: 8 kB / 393.6 MB, free: 4.773 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.824e-05/0.05951, allocations: 31.95 kB / 393.6 MB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.125e-05/0.05953, allocations: 19.98 kB / 393.7 MB, free: 4.723 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.267e-05/0.0596, allocations: 163.3 kB / 393.8 MB, free: 4.562 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0596, allocations: 0 / 393.8 MB, free: 4.562 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005808/0.06018, allocations: 367.1 kB / 394.2 MB, free: 4.203 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.0003458/0.06052, allocations: 205.9 kB / 394.4 MB, free: 4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009594/0.06148, allocations: 1.449 MB / 395.8 MB, free: 2.359 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.06149, allocations: 0 / 395.8 MB, free: 2.359 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009329/0.06242, allocations: 1.93 MB / 397.8 MB, free: 15.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.06371, allocations: 0.5378 MB / 398.3 MB, free: 15.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002271/0.06599, allocations: 2.19 MB / 400.5 MB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.06627, allocations: 346.9 kB / 400.8 MB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006691/0.06694, allocations: 367.1 kB / 401.2 MB, free: 12.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006761/0.06761, allocations: 0.5096 MB / 401.7 MB, free: 12.03 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.06761, allocations: 0 / 401.7 MB, free: 12.03 MB / 378.7 MB Notification: Performance of Templates: time 0.03094/0.09856, allocations: 28.13 MB / 429.8 MB, free: 264 kB / 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.690916487015784]