Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002233/0.002233, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.652/1.652, allocations: 225.6 MB / 234.8 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00102/0.00102, allocations: 95.09 kB / 286.7 MB, free: 5.227 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.287e-05/2.266e-05, allocations: 4 kB / 343.7 MB, free: 8.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1426, allocations: 51.48 MB / 395.2 MB, free: 4.773 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.124/1.267, allocations: 326.9 MB / 0.7052 GB, free: 30.57 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/1.267, allocations: 91.23 kB / 0.7053 GB, free: 30.52 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.647/1.914, allocations: 144.9 MB / 0.8468 GB, free: 63.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.703e-06/1.914, allocations: 0 / 0.8468 GB, free: 63.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001146/1.914, allocations: 23.91 kB / 0.8468 GB, free: 63.96 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003526/1.918, allocations: 1.075 MB / 0.8479 GB, free: 62.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/1.918, allocations: 12.03 kB / 0.8479 GB, free: 62.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007308/1.918, allocations: 95.83 kB / 0.848 GB, free: 62.73 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001681/1.92, allocations: 0.608 MB / 0.8486 GB, free: 62.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.587e-05/1.92, allocations: 84.72 kB / 0.8487 GB, free: 62 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/1.92, allocations: 28 kB / 0.8487 GB, free: 61.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001096/1.921, allocations: 0.6077 MB / 0.8493 GB, free: 61.37 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001149/1.923, allocations: 0.7434 MB / 0.85 GB, free: 60.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.717e-05/1.923, allocations: 3.938 kB / 0.85 GB, free: 60.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.192e-05/1.923, allocations: 4 kB / 0.85 GB, free: 60.56 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.176e-05/1.923, allocations: 41.28 kB / 0.85 GB, free: 60.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004556/1.927, allocations: 3.285 MB / 0.8533 GB, free: 57.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005557/1.928, allocations: 409.7 kB / 0.8536 GB, free: 56.66 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000282/1.928, allocations: 249.1 kB / 0.8539 GB, free: 56.41 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001706/1.93, allocations: 1.378 MB / 0.8552 GB, free: 54.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000426/1.93, allocations: 356.3 kB / 0.8556 GB, free: 54.53 MB / 442.7 MB Notification: Performance of pre-optimization done (n=35): time 2.785e-06/1.93, allocations: 0 / 0.8556 GB, free: 54.53 MB / 442.7 MB Notification: Performance of matching and sorting (n=40): time 0.003302/1.934, allocations: 1.434 MB / 0.857 GB, free: 53.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.031e-05/1.934, allocations: 261 kB / 0.8572 GB, free: 52.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006414/1.935, allocations: 0.5462 MB / 0.8578 GB, free: 52.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.535e-05/1.935, allocations: 29.7 kB / 0.8578 GB, free: 52.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002608/1.935, allocations: 415.2 kB / 0.8582 GB, free: 51.73 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/1.935, allocations: 134.1 kB / 0.8583 GB, free: 51.6 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/1.935, allocations: 0 / 0.8583 GB, free: 51.6 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/1.935, allocations: 374.8 kB / 0.8587 GB, free: 51.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003308/1.935, allocations: 249.5 kB / 0.8589 GB, free: 50.98 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004522/1.936, allocations: 492.6 kB / 0.8594 GB, free: 50.39 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/1.937, allocations: 0.4945 MB / 0.8599 GB, free: 49.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/1.937, allocations: 4 kB / 0.8599 GB, free: 49.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002343/1.94, allocations: 1.064 MB / 0.8609 GB, free: 48.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000667/1.94, allocations: 2.472 MB / 0.8633 GB, free: 46.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/1.94, allocations: 7.938 kB / 0.8633 GB, free: 46.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004048/1.941, allocations: 112.8 kB / 0.8634 GB, free: 46.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005203/1.941, allocations: 135.8 kB / 0.8636 GB, free: 45.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006395/1.942, allocations: 0.7084 MB / 0.8642 GB, free: 45.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006976/1.943, allocations: 39.98 kB / 0.8643 GB, free: 45.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.1e-05/1.943, allocations: 39.98 kB / 0.8643 GB, free: 45.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/1.943, allocations: 4 kB / 0.8643 GB, free: 45.08 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002247/1.945, allocations: 0.9698 MB / 0.8653 GB, free: 44.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/1.945, allocations: 4 kB / 0.8653 GB, free: 44.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003114/1.945, allocations: 108.9 kB / 0.8654 GB, free: 43.99 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004405/1.946, allocations: 131.8 kB / 0.8655 GB, free: 43.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004457/1.946, allocations: 0.6693 MB / 0.8662 GB, free: 43.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000618/1.947, allocations: 43.75 kB / 0.8662 GB, free: 43.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.831e-05/1.947, allocations: 39.98 kB / 0.8662 GB, free: 43.09 MB / 442.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003562/1.947, allocations: 184.4 kB / 0.8664 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/1.948, allocations: 67.25 kB / 0.8665 GB, free: 42.83 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001425/1.949, allocations: 0.6778 MB / 0.8671 GB, free: 42.14 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/1.949, allocations: 7.953 kB / 0.8671 GB, free: 42.13 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/1.949, allocations: 3.938 kB / 0.8672 GB, free: 42.13 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/1.949, allocations: 7.984 kB / 0.8672 GB, free: 42.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/1.951, allocations: 1.345 MB / 0.8685 GB, free: 40.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/1.951, allocations: 0 / 0.8685 GB, free: 40.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002757/1.952, allocations: 63.91 kB / 0.8685 GB, free: 40.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003105/1.952, allocations: 104.7 kB / 0.8686 GB, free: 40.57 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/1.952, allocations: 4 kB / 0.8686 GB, free: 40.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005309/1.953, allocations: 0.689 MB / 0.8693 GB, free: 39.85 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/1.953, allocations: 0 / 0.8693 GB, free: 39.85 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/1.954, allocations: 1.043 MB / 0.8703 GB, free: 38.77 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001965/1.954, allocations: 148.3 kB / 0.8705 GB, free: 38.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/1.954, allocations: 4 kB / 0.8705 GB, free: 38.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000486/1.955, allocations: 35.81 kB / 0.8705 GB, free: 38.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/1.955, allocations: 39.94 kB / 0.8705 GB, free: 38.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.566e-05/1.955, allocations: 28.05 kB / 0.8706 GB, free: 38.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005241/1.956, allocations: 419.1 kB / 0.871 GB, free: 38.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.956, allocations: 0 / 0.871 GB, free: 38.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002283/1.958, allocations: 0.562 MB / 0.8715 GB, free: 37.54 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002061/1.96, allocations: 0.6005 MB / 0.8721 GB, free: 36.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001701/1.962, allocations: 1.073 MB / 0.8732 GB, free: 35.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1.962, allocations: 0 / 0.8732 GB, free: 35.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003993/1.962, allocations: 315.2 kB / 0.8735 GB, free: 35.56 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/1.963, allocations: 229.5 kB / 0.8737 GB, free: 35.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/1.965, allocations: 1.022 MB / 0.8747 GB, free: 34.28 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005353/1.966, allocations: 0.9857 MB / 0.8756 GB, free: 33.27 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001162/1.967, allocations: 276.4 kB / 0.8759 GB, free: 33 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/1.967, allocations: 43.42 kB / 0.8759 GB, free: 32.96 MB / 442.7 MB Notification: Performance of SimCode: time 1.332e-06/1.967, allocations: 4 kB / 0.8759 GB, free: 32.95 MB / 442.7 MB Notification: Performance of Templates: time 0.03038/1.998, allocations: 16.63 MB / 0.8922 GB, free: 16.44 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/OneTank/OneTank.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches