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.001528/0.001528, allocations: 196.7 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 226.5 MB / 245.4 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008332/0.0008339, allocations: 102.1 kB / 297.5 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002228/0.0002227, allocations: 4 kB / 358.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.254, allocations: 51.3 MB / 409.4 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7679/1.022, allocations: 327.7 MB / 0.7198 GB, free: 143.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/1.022, allocations: 103.5 kB / 0.7199 GB, free: 143.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5126/1.535, allocations: 145.5 MB / 0.862 GB, free: 103.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.894e-06/1.535, allocations: 1.594 kB / 0.862 GB, free: 103.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 5.825e-05/1.535, allocations: 21.14 kB / 0.862 GB, free: 103.4 MB / 458.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.002183/1.537, allocations: 1.175 MB / 0.8632 GB, free: 102.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/1.537, allocations: 7.719 kB / 0.8632 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003328/1.538, allocations: 94.22 kB / 0.8633 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/1.539, allocations: 0.6349 MB / 0.8639 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.072e-05/1.539, allocations: 96.3 kB / 0.864 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.589e-05/1.539, allocations: 50.36 kB / 0.864 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/1.54, allocations: 0.833 MB / 0.8648 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/1.54, allocations: 1.344 kB / 0.8648 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.79e-05/1.54, allocations: 27.05 kB / 0.8649 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.642e-05/1.54, allocations: 42.12 kB / 0.8649 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/1.541, allocations: 0.6803 MB / 0.8656 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004105/1.545, allocations: 3.374 MB / 0.8689 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006206/1.546, allocations: 431.7 kB / 0.8693 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003712/1.546, allocations: 269.5 kB / 0.8695 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001613/1.548, allocations: 1.365 MB / 0.8709 GB, free: 99.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004671/1.549, allocations: 369 kB / 0.8712 GB, free: 99.48 MB / 458.7 MB Notification: Performance of pre-optimization done (n=35): time 1.813e-06/1.549, allocations: 0 / 0.8712 GB, free: 99.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=40): time 0.003818/1.552, allocations: 1.894 MB / 0.8731 GB, free: 98.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.934e-05/1.553, allocations: 265.8 kB / 0.8733 GB, free: 98.59 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000993/1.554, allocations: 0.7736 MB / 0.8741 GB, free: 98.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.065e-05/1.554, allocations: 33.23 kB / 0.8741 GB, free: 98.43 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002813/1.554, allocations: 400.7 kB / 0.8745 GB, free: 98.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/1.554, allocations: 138.1 kB / 0.8746 GB, free: 98.19 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-05/1.554, allocations: 15.88 kB / 0.8746 GB, free: 98.19 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/1.554, allocations: 391.2 kB / 0.875 GB, free: 97.88 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005234/1.555, allocations: 263.3 kB / 0.8753 GB, free: 97.87 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005495/1.555, allocations: 0.5052 MB / 0.8758 GB, free: 97.59 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005897/1.561, allocations: 1.821 MB / 0.8775 GB, free: 97.23 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/1.561, allocations: 6.562 kB / 0.8775 GB, free: 97.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001746/1.563, allocations: 0.9809 MB / 0.8785 GB, free: 97.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001598/1.563, allocations: 310.2 kB / 0.8788 GB, free: 96.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/1.563, allocations: 8.531 kB / 0.8788 GB, free: 96.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005364/1.564, allocations: 131 kB / 0.8789 GB, free: 96.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004652/1.564, allocations: 133.9 kB / 0.8791 GB, free: 96.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005156/1.565, allocations: 0.6915 MB / 0.8797 GB, free: 96.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007968/1.566, allocations: 48.53 kB / 0.8798 GB, free: 96.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.326e-05/1.566, allocations: 41.67 kB / 0.8798 GB, free: 96.24 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.806e-06/1.566, allocations: 4.344 kB / 0.8798 GB, free: 96.24 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001534/1.567, allocations: 0.919 MB / 0.8807 GB, free: 96.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/1.567, allocations: 11.78 kB / 0.8807 GB, free: 96.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003863/1.568, allocations: 118.8 kB / 0.8808 GB, free: 96.17 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004362/1.568, allocations: 145.9 kB / 0.881 GB, free: 96.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004182/1.569, allocations: 0.6564 MB / 0.8816 GB, free: 95.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006774/1.569, allocations: 52.42 kB / 0.8817 GB, free: 95.65 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-05/1.569, allocations: 37.86 kB / 0.8817 GB, free: 95.65 MB / 458.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true 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" fixed = true 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 ($PRE.tank.aboveLevel[1],$whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked 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.0005737/1.57, allocations: 396.9 kB / 0.8821 GB, free: 95.42 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/1.57, allocations: 81.03 kB / 0.8822 GB, free: 95.38 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/1.571, allocations: 0.7374 MB / 0.8829 GB, free: 95.29 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/1.571, allocations: 3.875 kB / 0.8829 GB, free: 95.29 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/1.571, allocations: 0 / 0.8829 GB, free: 95.29 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/1.571, allocations: 3.75 kB / 0.8829 GB, free: 95.29 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/1.573, allocations: 1.477 MB / 0.8843 GB, free: 94.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/1.573, allocations: 0 / 0.8843 GB, free: 94.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003259/1.574, allocations: 70.98 kB / 0.8844 GB, free: 94.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004845/1.574, allocations: 121.7 kB / 0.8845 GB, free: 94.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.73e-05/1.574, allocations: 14.25 kB / 0.8845 GB, free: 94.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004639/1.575, allocations: 0.6683 MB / 0.8852 GB, free: 94.39 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/1.575, allocations: 3.875 kB / 0.8852 GB, free: 94.39 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/1.576, allocations: 1.098 MB / 0.8863 GB, free: 94.15 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001954/1.576, allocations: 153.6 kB / 0.8864 GB, free: 94.02 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/1.576, allocations: 13.72 kB / 0.8864 GB, free: 94.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004577/1.577, allocations: 38.59 kB / 0.8865 GB, free: 94.02 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.675e-05/1.577, allocations: 35.17 kB / 0.8865 GB, free: 94.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.828e-05/1.577, allocations: 22.61 kB / 0.8865 GB, free: 94.02 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005981/1.578, allocations: 0.5344 MB / 0.887 GB, free: 93.93 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.578, allocations: 2.812 kB / 0.887 GB, free: 93.93 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001733/1.579, allocations: 0.6021 MB / 0.8876 GB, free: 93.84 MB / 458.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) * Number of clocked states: 0 () * 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.001205/1.581, allocations: 0.6034 MB / 0.8882 GB, free: 93.66 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002002/1.583, allocations: 1.164 MB / 0.8893 GB, free: 93.53 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/1.583, allocations: 0 / 0.8893 GB, free: 93.53 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005426/1.583, allocations: 357.6 kB / 0.8897 GB, free: 93.46 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001559/1.585, allocations: 325.8 kB / 0.89 GB, free: 93.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/1.587, allocations: 1.701 MB / 0.8917 GB, free: 92.77 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/1.587, allocations: 0.9671 MB / 0.8926 GB, free: 92.07 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008791/1.588, allocations: 246.9 kB / 0.8928 GB, free: 92.06 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/1.588, allocations: 58.16 kB / 0.8929 GB, free: 92.05 MB / 458.7 MB Notification: Performance of SimCode: time 1.132e-06/1.588, allocations: 0 / 0.8929 GB, free: 92.05 MB / 458.7 MB Notification: Performance of Templates: time 0.02904/1.617, allocations: 18.85 MB / 0.9113 GB, free: 91.36 MB / 458.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/jenkins1/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