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.002591/0.002591, allocations: 198.4 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 227.2 MB / 245 MB, free: 5.844 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009392/0.0009388, allocations: 98.5 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002742/0.0002746, allocations: 4 kB / 357.9 MB, free: 9.312 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.215, allocations: 51.5 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6883/0.9033, allocations: 327.7 MB / 0.7198 GB, free: 141.4 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.9037, allocations: 95.95 kB / 0.7199 GB, free: 141.3 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.494/1.398, allocations: 146.4 MB / 0.8629 GB, free: 103.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.893e-06/1.398, allocations: 1.219 kB / 0.8629 GB, free: 103.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.977e-05/1.398, allocations: 23.09 kB / 0.8629 GB, free: 103.7 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.002734/1.401, allocations: 1.179 MB / 0.864 GB, free: 103.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/1.401, allocations: 11 kB / 0.864 GB, free: 103.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003422/1.401, allocations: 95.34 kB / 0.8641 GB, free: 103.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/1.402, allocations: 0.6146 MB / 0.8647 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.208e-05/1.402, allocations: 95.19 kB / 0.8648 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.193e-05/1.402, allocations: 51.56 kB / 0.8649 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/1.403, allocations: 0.8182 MB / 0.8657 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/1.403, allocations: 6.031 kB / 0.8657 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-05/1.403, allocations: 25.8 kB / 0.8657 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-05/1.404, allocations: 41.53 kB / 0.8657 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009082/1.404, allocations: 0.6768 MB / 0.8664 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003799/1.408, allocations: 3.414 MB / 0.8697 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000657/1.409, allocations: 433.2 kB / 0.8701 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001604/1.411, allocations: 1.37 MB / 0.8715 GB, free: 99.87 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004737/1.411, allocations: 373.1 kB / 0.8718 GB, free: 99.75 MB / 458.7 MB Notification: Performance of pre-optimization done (n=35): time 1.784e-06/1.411, allocations: 2.969 kB / 0.8718 GB, free: 99.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=40): time 0.003378/1.414, allocations: 1.966 MB / 0.8738 GB, free: 99.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/1.415, allocations: 261.8 kB / 0.874 GB, free: 98.76 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006331/1.415, allocations: 0.6858 MB / 0.8747 GB, free: 98.62 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.716e-05/1.415, allocations: 37.42 kB / 0.8747 GB, free: 98.59 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000198/1.415, allocations: 397 kB / 0.8751 GB, free: 98.43 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.638e-05/1.415, allocations: 144.8 kB / 0.8752 GB, free: 98.35 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-05/1.416, allocations: 13.53 kB / 0.8752 GB, free: 98.35 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.26e-05/1.416, allocations: 388.4 kB / 0.8756 GB, free: 98.04 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003379/1.416, allocations: 265.8 kB / 0.8759 GB, free: 98.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004186/1.416, allocations: 0.4989 MB / 0.8764 GB, free: 97.75 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004034/1.417, allocations: 349.5 kB / 0.8767 GB, free: 97.72 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/1.417, allocations: 4.469 kB / 0.8767 GB, free: 97.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001402/1.418, allocations: 0.9874 MB / 0.8777 GB, free: 97.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004178/1.419, allocations: 2.477 MB / 0.8801 GB, free: 95.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/1.419, allocations: 7.812 kB / 0.8801 GB, free: 95.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005226/1.419, allocations: 125.5 kB / 0.8802 GB, free: 95.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004502/1.42, allocations: 140.8 kB / 0.8803 GB, free: 95.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004343/1.42, allocations: 0.6792 MB / 0.881 GB, free: 94.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005796/1.421, allocations: 59.77 kB / 0.8811 GB, free: 94.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.286e-05/1.421, allocations: 34.38 kB / 0.8811 GB, free: 94.49 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.023e-06/1.421, allocations: 3.906 kB / 0.8811 GB, free: 94.49 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001412/1.422, allocations: 0.919 MB / 0.882 GB, free: 94.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/1.422, allocations: 6 kB / 0.882 GB, free: 94.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003535/1.423, allocations: 123.3 kB / 0.8821 GB, free: 94.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004129/1.423, allocations: 135.3 kB / 0.8822 GB, free: 94.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003637/1.423, allocations: 0.6619 MB / 0.8829 GB, free: 93.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005012/1.424, allocations: 53.14 kB / 0.8829 GB, free: 93.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.316e-05/1.424, allocations: 38.69 kB / 0.883 GB, free: 93.91 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 ($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 () * 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.0004061/1.424, allocations: 395.3 kB / 0.8834 GB, free: 93.68 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.293e-05/1.424, allocations: 80.09 kB / 0.8834 GB, free: 93.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001167/1.426, allocations: 0.7466 MB / 0.8842 GB, free: 93.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/1.426, allocations: 7.438 kB / 0.8842 GB, free: 93.54 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/1.426, allocations: 0 / 0.8842 GB, free: 93.54 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/1.426, allocations: 7.75 kB / 0.8842 GB, free: 93.54 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/1.428, allocations: 1.47 MB / 0.8856 GB, free: 93.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/1.428, allocations: 3.5 kB / 0.8856 GB, free: 93.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002713/1.428, allocations: 64 kB / 0.8857 GB, free: 93.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004217/1.428, allocations: 123.2 kB / 0.8858 GB, free: 93.17 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.826e-05/1.428, allocations: 20.89 kB / 0.8858 GB, free: 93.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003934/1.429, allocations: 0.6633 MB / 0.8865 GB, free: 92.64 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.429, allocations: 2.438 kB / 0.8865 GB, free: 92.64 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/1.43, allocations: 1.1 MB / 0.8875 GB, free: 92.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/1.43, allocations: 166.8 kB / 0.8877 GB, free: 92.26 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/1.43, allocations: 21.97 kB / 0.8877 GB, free: 92.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004404/1.431, allocations: 29.58 kB / 0.8877 GB, free: 92.26 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.667e-05/1.431, allocations: 38.16 kB / 0.8878 GB, free: 92.26 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.423e-05/1.431, allocations: 28.8 kB / 0.8878 GB, free: 92.26 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005105/1.431, allocations: 0.5286 MB / 0.8883 GB, free: 92.16 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.431, allocations: 3 kB / 0.8883 GB, free: 92.16 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001592/1.433, allocations: 0.5997 MB / 0.8889 GB, free: 92.07 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.001163/1.434, allocations: 0.5979 MB / 0.8895 GB, free: 91.89 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001769/1.436, allocations: 1.175 MB / 0.8906 GB, free: 91.75 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/1.436, allocations: 3.188 kB / 0.8907 GB, free: 91.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005069/1.437, allocations: 355.6 kB / 0.891 GB, free: 91.68 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/1.438, allocations: 309.8 kB / 0.8913 GB, free: 91.68 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/1.439, allocations: 1.686 MB / 0.8929 GB, free: 91.01 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/1.44, allocations: 0.9799 MB / 0.8939 GB, free: 90.31 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0006813/1.44, allocations: 248 kB / 0.8941 GB, free: 90.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/1.441, allocations: 61.69 kB / 0.8942 GB, free: 90.3 MB / 458.7 MB Notification: Performance of SimCode: time 3.41e-07/1.441, allocations: 3.719 kB / 0.8942 GB, free: 90.3 MB / 458.7 MB Notification: Performance of Templates: time 0.02346/1.464, allocations: 18.32 MB / 0.9121 GB, free: 89.58 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/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