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.001882/0.001882, allocations: 200.7 kB / 18.11 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 226.5 MB / 245.4 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007859/0.0007859, allocations: 102 kB / 297.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002512/0.0002512, allocations: 11.98 kB / 358.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2325, allocations: 51.28 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7564/0.9889, allocations: 323.2 MB / 0.7154 GB, free: 148.4 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.9892, allocations: 86.83 kB / 0.7155 GB, free: 148.4 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2929/1.282, allocations: 139.6 MB / 0.8518 GB, free: 7.527 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.136e-06/1.282, allocations: 4 kB / 0.8518 GB, free: 7.523 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.297e-05/1.282, allocations: 19.94 kB / 0.8518 GB, free: 7.504 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.002879/1.285, allocations: 1.118 MB / 0.8529 GB, free: 6.336 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/1.285, allocations: 11.97 kB / 0.8529 GB, free: 6.324 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004428/1.286, allocations: 88 kB / 0.853 GB, free: 6.238 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/1.287, allocations: 0.5997 MB / 0.8536 GB, free: 5.598 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.26e-05/1.287, allocations: 41.36 kB / 0.8537 GB, free: 5.559 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/1.287, allocations: 44.38 kB / 0.8537 GB, free: 5.516 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/1.288, allocations: 0.7425 MB / 0.8544 GB, free: 4.742 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/1.288, allocations: 3.938 kB / 0.8544 GB, free: 4.738 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.492e-05/1.288, allocations: 24 kB / 0.8544 GB, free: 4.715 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.777e-05/1.288, allocations: 40.97 kB / 0.8545 GB, free: 4.676 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/1.289, allocations: 0.6831 MB / 0.8552 GB, free: 3.992 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003905/1.293, allocations: 2.86 MB / 0.8579 GB, free: 0.9531 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006648/1.294, allocations: 472.5 kB / 0.8584 GB, free: 488 kB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003217/1.294, allocations: 250 kB / 0.8586 GB, free: 236 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1985/1.493, allocations: 337.9 kB / 0.859 GB, free: 103 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.052e-05/1.493, allocations: 39.44 kB / 0.859 GB, free: 103 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 2.755e-06/1.493, allocations: 0.7812 kB / 0.859 GB, free: 103 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.006143/1.499, allocations: 2.28 MB / 0.8612 GB, free: 102.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/1.499, allocations: 87.84 kB / 0.8613 GB, free: 102.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007764/1.5, allocations: 0.612 MB / 0.8619 GB, free: 102.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.52e-05/1.5, allocations: 42.14 kB / 0.8619 GB, free: 102.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001893/1.5, allocations: 331.9 kB / 0.8623 GB, free: 102.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/1.5, allocations: 206.7 kB / 0.8625 GB, free: 102.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.394e-05/1.5, allocations: 16.56 kB / 0.8625 GB, free: 102.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.625e-05/1.501, allocations: 382.5 kB / 0.8628 GB, free: 101.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003867/1.501, allocations: 280 kB / 0.8631 GB, free: 101.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004344/1.501, allocations: 454.2 kB / 0.8635 GB, free: 101.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008189/1.502, allocations: 0.7008 MB / 0.8642 GB, free: 101.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/1.502, allocations: 7.562 kB / 0.8642 GB, free: 101.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001313/1.504, allocations: 0.9239 MB / 0.8651 GB, free: 101.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/1.504, allocations: 226.4 kB / 0.8653 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/1.504, allocations: 4.125 kB / 0.8653 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001832/1.506, allocations: 356 kB / 0.8657 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005999/1.506, allocations: 152.2 kB / 0.8658 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007965/1.507, allocations: 0.8237 MB / 0.8666 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00057/1.508, allocations: 45.83 kB / 0.8667 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.551e-05/1.508, allocations: 37.25 kB / 0.8667 GB, free: 100.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/1.508, allocations: 7.406 kB / 0.8667 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001152/1.509, allocations: 0.7848 MB / 0.8675 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/1.509, allocations: 3.344 kB / 0.8675 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/1.51, allocations: 224.2 kB / 0.8677 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005225/1.511, allocations: 155.3 kB / 0.8679 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000459/1.511, allocations: 0.7061 MB / 0.8685 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004811/1.512, allocations: 45.58 kB / 0.8686 GB, free: 100 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.774e-05/1.512, allocations: 33.39 kB / 0.8686 GB, free: 100 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.0003859/1.512, allocations: 321.2 kB / 0.8689 GB, free: 99.83 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/1.512, allocations: 72.69 kB / 0.869 GB, free: 99.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001333/1.514, allocations: 0.8288 MB / 0.8698 GB, free: 99.73 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/1.514, allocations: 11 kB / 0.8698 GB, free: 99.73 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/1.514, allocations: 0 / 0.8698 GB, free: 99.73 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/1.514, allocations: 3.609 kB / 0.8698 GB, free: 99.73 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002385/1.516, allocations: 1.664 MB / 0.8714 GB, free: 99.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/1.516, allocations: 1.703 kB / 0.8714 GB, free: 99.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005266/1.517, allocations: 112.1 kB / 0.8716 GB, free: 99.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001514/1.518, allocations: 333.2 kB / 0.8719 GB, free: 99.38 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-05/1.518, allocations: 22.66 kB / 0.8719 GB, free: 99.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006098/1.519, allocations: 0.8054 MB / 0.8727 GB, free: 98.85 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/1.519, allocations: 1.969 kB / 0.8727 GB, free: 98.85 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/1.52, allocations: 1.237 MB / 0.8739 GB, free: 98.64 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/1.52, allocations: 162.4 kB / 0.874 GB, free: 98.51 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.933e-05/1.521, allocations: 12.41 kB / 0.8741 GB, free: 98.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004311/1.521, allocations: 34.62 kB / 0.8741 GB, free: 98.51 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/1.521, allocations: 57.81 kB / 0.8741 GB, free: 98.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.902e-05/1.521, allocations: 33.77 kB / 0.8742 GB, free: 98.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004377/1.522, allocations: 436.9 kB / 0.8746 GB, free: 98.41 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.522, allocations: 0 / 0.8746 GB, free: 98.41 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001503/1.523, allocations: 0.5973 MB / 0.8752 GB, free: 98.41 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.0009335/1.524, allocations: 0.5985 MB / 0.8758 GB, free: 98.32 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00177/1.526, allocations: 1.125 MB / 0.8769 GB, free: 98.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/1.526, allocations: 0 / 0.8769 GB, free: 98.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005378/1.526, allocations: 383.8 kB / 0.8772 GB, free: 98.29 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/1.528, allocations: 346.5 kB / 0.8776 GB, free: 98.29 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002009/1.53, allocations: 1.847 MB / 0.8794 GB, free: 97.58 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/1.53, allocations: 0.9677 MB / 0.8803 GB, free: 96.88 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008499/1.531, allocations: 273.6 kB / 0.8806 GB, free: 96.87 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/1.531, allocations: 64.53 kB / 0.8806 GB, free: 96.86 MB / 458.7 MB Notification: Performance of SimCode: time 3.81e-07/1.531, allocations: 0 / 0.8806 GB, free: 96.86 MB / 458.7 MB Notification: Performance of Templates: time 0.02572/1.557, allocations: 20.05 MB / 0.9002 GB, free: 96.14 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/jenkins1/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