Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 193.5 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.665/1.665, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001014/0.001014, allocations: 95.52 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.051e-05/2.058e-05, allocations: 4 kB / 343.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1307, allocations: 51.48 MB / 395.2 MB, free: 4.754 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9373/1.068, allocations: 322.4 MB / 0.7007 GB, free: 34.91 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/1.068, allocations: 84.61 kB / 0.7008 GB, free: 34.87 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5923/1.661, allocations: 139.3 MB / 0.8369 GB, free: 72.79 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.322e-06/1.661, allocations: 0 / 0.8369 GB, free: 72.79 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.449e-05/1.661, allocations: 19.91 kB / 0.8369 GB, free: 72.77 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002903/1.664, allocations: 1.036 MB / 0.8379 GB, free: 71.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/1.664, allocations: 8.031 kB / 0.8379 GB, free: 71.69 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00053/1.664, allocations: 86.67 kB / 0.838 GB, free: 71.61 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001433/1.666, allocations: 0.5854 MB / 0.8386 GB, free: 70.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.875e-05/1.666, allocations: 16 kB / 0.8386 GB, free: 70.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/1.666, allocations: 32 kB / 0.8386 GB, free: 70.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001021/1.667, allocations: 0.6078 MB / 0.8392 GB, free: 70.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/1.668, allocations: 0.6543 MB / 0.8398 GB, free: 69.65 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/1.668, allocations: 0 / 0.8398 GB, free: 69.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.083e-05/1.668, allocations: 4 kB / 0.8398 GB, free: 69.64 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.005e-05/1.668, allocations: 49.23 kB / 0.8399 GB, free: 69.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003758/1.672, allocations: 2.743 MB / 0.8426 GB, free: 66.71 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005235/1.673, allocations: 437.2 kB / 0.843 GB, free: 66.27 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/1.673, allocations: 238 kB / 0.8432 GB, free: 66.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002225/1.673, allocations: 352.7 kB / 0.8436 GB, free: 65.62 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/1.673, allocations: 43 kB / 0.8436 GB, free: 65.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 1.803e-06/1.673, allocations: 0 / 0.8436 GB, free: 65.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.004802/1.678, allocations: 1.807 MB / 0.8454 GB, free: 63.71 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/1.678, allocations: 89.67 kB / 0.8454 GB, free: 63.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004532/1.678, allocations: 446.1 kB / 0.8459 GB, free: 63.17 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.761e-05/1.678, allocations: 33.69 kB / 0.8459 GB, free: 63.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/1.679, allocations: 324.2 kB / 0.8462 GB, free: 62.81 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/1.679, allocations: 208.9 kB / 0.8464 GB, free: 62.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.313e-05/1.679, allocations: 0 / 0.8464 GB, free: 62.61 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.282e-05/1.679, allocations: 374.8 kB / 0.8468 GB, free: 62.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003337/1.679, allocations: 269.5 kB / 0.847 GB, free: 61.96 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003862/1.68, allocations: 433.4 kB / 0.8474 GB, free: 61.48 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001809/1.681, allocations: 0.5664 MB / 0.848 GB, free: 60.91 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/1.681, allocations: 4 kB / 0.848 GB, free: 60.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002487/1.684, allocations: 1.097 MB / 0.8491 GB, free: 59.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003642/1.684, allocations: 1.757 MB / 0.8508 GB, free: 57.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/1.684, allocations: 4 kB / 0.8508 GB, free: 57.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004557/1.685, allocations: 160.7 kB / 0.8509 GB, free: 57.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005283/1.685, allocations: 155.7 kB / 0.8511 GB, free: 57.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/1.687, allocations: 0.9425 MB / 0.852 GB, free: 56.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005665/1.687, allocations: 32.03 kB / 0.852 GB, free: 56.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-05/1.687, allocations: 31.98 kB / 0.8521 GB, free: 56.56 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/1.687, allocations: 7.953 kB / 0.8521 GB, free: 56.55 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00225/1.69, allocations: 0.9366 MB / 0.853 GB, free: 55.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/1.69, allocations: 4 kB / 0.853 GB, free: 55.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003286/1.69, allocations: 108.8 kB / 0.8531 GB, free: 55.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005174/1.691, allocations: 159.7 kB / 0.8533 GB, free: 55.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000983/1.692, allocations: 0.7981 MB / 0.854 GB, free: 54.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005354/1.692, allocations: 31.91 kB / 0.8541 GB, free: 54.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.327e-05/1.692, allocations: 35.98 kB / 0.8541 GB, free: 54.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002027/1.692, allocations: 124.8 kB / 0.8542 GB, free: 54.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/1.693, allocations: 63.25 kB / 0.8543 GB, free: 54.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001748/1.694, allocations: 0.8109 MB / 0.8551 GB, free: 53.45 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/1.694, allocations: 8 kB / 0.8551 GB, free: 53.44 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/1.694, allocations: 7.984 kB / 0.8551 GB, free: 53.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/1.694, allocations: 0 / 0.8551 GB, free: 53.43 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/1.697, allocations: 1.574 MB / 0.8566 GB, free: 51.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/1.697, allocations: 0 / 0.8566 GB, free: 51.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004581/1.697, allocations: 111.9 kB / 0.8567 GB, free: 51.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004373/1.698, allocations: 172.8 kB / 0.8569 GB, free: 51.54 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.39e-05/1.698, allocations: 7.984 kB / 0.8569 GB, free: 51.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009573/1.699, allocations: 0.8658 MB / 0.8577 GB, free: 50.64 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/1.699, allocations: 3.938 kB / 0.8578 GB, free: 50.63 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/1.701, allocations: 1.24 MB / 0.859 GB, free: 49.36 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/1.701, allocations: 148.2 kB / 0.8591 GB, free: 49.19 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/1.701, allocations: 7.984 kB / 0.8591 GB, free: 49.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004752/1.702, allocations: 31.91 kB / 0.8591 GB, free: 49.15 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/1.702, allocations: 56.44 kB / 0.8592 GB, free: 49.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.178e-05/1.702, allocations: 23.98 kB / 0.8592 GB, free: 49.07 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000331/1.702, allocations: 346.9 kB / 0.8595 GB, free: 48.74 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.702, allocations: 0 / 0.8595 GB, free: 48.74 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001788/1.704, allocations: 0.5502 MB / 0.8601 GB, free: 48.19 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001549/1.706, allocations: 0.5958 MB / 0.8607 GB, free: 47.62 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001681/1.707, allocations: 1.064 MB / 0.8617 GB, free: 46.56 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1.707, allocations: 7.938 kB / 0.8617 GB, free: 46.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004688/1.708, allocations: 353.9 kB / 0.8621 GB, free: 46.21 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/1.709, allocations: 293.6 kB / 0.8623 GB, free: 45.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/1.711, allocations: 1.159 MB / 0.8635 GB, free: 44.73 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/1.711, allocations: 0.9795 MB / 0.8644 GB, free: 43.73 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0009973/1.712, allocations: 288.9 kB / 0.8647 GB, free: 43.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/1.712, allocations: 55.42 kB / 0.8647 GB, free: 43.4 MB / 442.7 MB Notification: Performance of SimCode: time 6.12e-07/1.712, allocations: 0 / 0.8647 GB, free: 43.4 MB / 442.7 MB Notification: Performance of Templates: time 0.02554/1.738, allocations: 18.37 MB / 0.8827 GB, free: 25.2 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches