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.00112/0.00112, allocations: 198.3 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.243/1.243, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009163/0.0009164, allocations: 100.5 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002479/0.0002479, allocations: 8 kB / 357.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2221, allocations: 51.48 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6866/0.9087, allocations: 323.1 MB / 0.7154 GB, free: 146.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003435/0.9091, allocations: 94.34 kB / 0.7155 GB, free: 146 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.269/1.178, allocations: 140.5 MB / 0.8527 GB, free: 4.25 MB / 458.7 MB Notification: Performance of FrontEnd: time 9.62e-07/1.178, allocations: 0 / 0.8527 GB, free: 4.25 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.652e-05/1.178, allocations: 20 kB / 0.8527 GB, free: 4.23 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002821/1.181, allocations: 1.131 MB / 0.8538 GB, free: 3.051 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/1.181, allocations: 11.97 kB / 0.8538 GB, free: 3.039 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004467/1.182, allocations: 91 kB / 0.8539 GB, free: 2.949 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001247/1.183, allocations: 0.5755 MB / 0.8545 GB, free: 2.332 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.381e-05/1.183, allocations: 41 kB / 0.8545 GB, free: 2.293 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/1.183, allocations: 47.98 kB / 0.8545 GB, free: 2.246 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/1.184, allocations: 0.7264 MB / 0.8553 GB, free: 1.484 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/1.184, allocations: 3.938 kB / 0.8553 GB, free: 1.48 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.35e-05/1.184, allocations: 31.95 kB / 0.8553 GB, free: 1.449 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.603e-05/1.184, allocations: 40.98 kB / 0.8553 GB, free: 1.41 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009674/1.185, allocations: 0.6909 MB / 0.856 GB, free: 0.7188 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2105/1.396, allocations: 2.858 MB / 0.8588 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/1.397, allocations: 462.9 kB / 0.8592 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003112/1.397, allocations: 345.3 kB / 0.8596 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/1.397, allocations: 41.72 kB / 0.8596 GB, free: 100.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 4.318e-06/1.397, allocations: 0 / 0.8596 GB, free: 100.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.005003/1.402, allocations: 2.274 MB / 0.8618 GB, free: 99.98 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/1.402, allocations: 88.17 kB / 0.8619 GB, free: 99.89 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005221/1.403, allocations: 0.5486 MB / 0.8624 GB, free: 99.77 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.903e-05/1.403, allocations: 43.11 kB / 0.8625 GB, free: 99.73 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/1.403, allocations: 325.2 kB / 0.8628 GB, free: 99.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/1.403, allocations: 209.4 kB / 0.863 GB, free: 99.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/1.403, allocations: 16.75 kB / 0.863 GB, free: 99.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.766e-05/1.404, allocations: 377.7 kB / 0.8634 GB, free: 99.18 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004352/1.404, allocations: 281.5 kB / 0.8636 GB, free: 99.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004842/1.404, allocations: 452 kB / 0.8641 GB, free: 99.01 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004175/1.405, allocations: 338.9 kB / 0.8644 GB, free: 99.01 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/1.405, allocations: 3.391 kB / 0.8644 GB, free: 99.01 MB / 458.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001276/1.406, allocations: 0.9234 MB / 0.8653 GB, free: 98.92 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003038/1.406, allocations: 1.746 MB / 0.867 GB, free: 97.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/1.406, allocations: 7.969 kB / 0.867 GB, free: 97.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001809/1.408, allocations: 359.5 kB / 0.8674 GB, free: 97.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005654/1.409, allocations: 154.6 kB / 0.8675 GB, free: 97.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007296/1.41, allocations: 0.8177 MB / 0.8683 GB, free: 96.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005084/1.41, allocations: 51.75 kB / 0.8683 GB, free: 96.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.934e-05/1.41, allocations: 27.2 kB / 0.8684 GB, free: 96.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/1.41, allocations: 9.094 kB / 0.8684 GB, free: 96.57 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001133/1.411, allocations: 0.7862 MB / 0.8691 GB, free: 96.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/1.411, allocations: 3.219 kB / 0.8692 GB, free: 96.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/1.413, allocations: 222.8 kB / 0.8694 GB, free: 96.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005847/1.413, allocations: 161 kB / 0.8695 GB, free: 96.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005218/1.414, allocations: 0.695 MB / 0.8702 GB, free: 96.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004798/1.414, allocations: 49.66 kB / 0.8702 GB, free: 96.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.286e-05/1.414, allocations: 37.66 kB / 0.8703 GB, free: 96.01 MB / 458.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 () * Number of clocked 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.0003543/1.415, allocations: 316.9 kB / 0.8706 GB, free: 95.82 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.899e-05/1.415, allocations: 71.25 kB / 0.8706 GB, free: 95.79 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/1.416, allocations: 0.8332 MB / 0.8715 GB, free: 95.71 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.481e-05/1.416, allocations: 6.594 kB / 0.8715 GB, free: 95.71 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/1.416, allocations: 3.953 kB / 0.8715 GB, free: 95.71 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/1.416, allocations: 4.219 kB / 0.8715 GB, free: 95.71 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002607/1.419, allocations: 1.68 MB / 0.8731 GB, free: 95.37 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/1.419, allocations: 3.719 kB / 0.8731 GB, free: 95.37 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004649/1.419, allocations: 104.4 kB / 0.8732 GB, free: 95.37 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/1.421, allocations: 337.3 kB / 0.8735 GB, free: 95.36 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-05/1.421, allocations: 18.86 kB / 0.8736 GB, free: 95.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005288/1.421, allocations: 0.8008 MB / 0.8743 GB, free: 94.84 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/1.421, allocations: 3.781 kB / 0.8743 GB, free: 94.84 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/1.423, allocations: 1.255 MB / 0.8756 GB, free: 94.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/1.423, allocations: 162.5 kB / 0.8757 GB, free: 94.46 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.851e-05/1.423, allocations: 15.28 kB / 0.8757 GB, free: 94.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004338/1.423, allocations: 39.88 kB / 0.8758 GB, free: 94.46 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.661e-05/1.423, allocations: 54.38 kB / 0.8758 GB, free: 94.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.544e-05/1.424, allocations: 23.16 kB / 0.8759 GB, free: 94.46 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003934/1.424, allocations: 434.7 kB / 0.8763 GB, free: 94.37 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.21e-07/1.424, allocations: 0 / 0.8763 GB, free: 94.37 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001439/1.425, allocations: 0.6019 MB / 0.8769 GB, free: 94.37 MB / 458.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]) * Number of clocked states: 0 () * 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.0009529/1.426, allocations: 0.6098 MB / 0.8775 GB, free: 94.28 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001711/1.428, allocations: 1.123 MB / 0.8785 GB, free: 94.26 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/1.428, allocations: 3.562 kB / 0.8786 GB, free: 94.26 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005051/1.429, allocations: 381.7 kB / 0.8789 GB, free: 94.25 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/1.43, allocations: 334 kB / 0.8792 GB, free: 94.25 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/1.432, allocations: 1.841 MB / 0.881 GB, free: 93.55 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/1.432, allocations: 0.987 MB / 0.882 GB, free: 92.85 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008228/1.433, allocations: 279.2 kB / 0.8823 GB, free: 92.84 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/1.433, allocations: 67.66 kB / 0.8823 GB, free: 92.83 MB / 458.7 MB Notification: Performance of SimCode: time 2.41e-07/1.433, allocations: 0 / 0.8823 GB, free: 92.83 MB / 458.7 MB Notification: Performance of Templates: time 0.02343/1.457, allocations: 19.52 MB / 0.9014 GB, free: 92.07 MB / 458.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