Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009784/0.0009784, allocations: 168.9 kB / 8.47 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.16/1.16, allocations: 205.2 MB / 214.1 MB, free: 5.496 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008839/0.0008839, allocations: 87.33 kB / 262.1 MB, free: 5.551 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.212e-06/6.372e-06, allocations: 0 / 315 MB, free: 41.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07697/0.07699, allocations: 47.58 MB / 362.5 MB, free: 10 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5867/0.6637, allocations: 327.4 MB / 0.6737 GB, free: 64.24 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.6641, allocations: 90.25 kB / 0.6738 GB, free: 64.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.5464/1.21, allocations: 166 MB / 0.836 GB, free: 76.24 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.719e-05/1.211, allocations: 16 kB / 0.836 GB, free: 76.22 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003412/1.214, allocations: 1.109 MB / 0.8371 GB, free: 75.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/1.214, allocations: 8.031 kB / 0.8371 GB, free: 75.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007505/1.215, allocations: 102.9 kB / 0.8372 GB, free: 74.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001747/1.217, allocations: 0.6391 MB / 0.8378 GB, free: 74.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.806e-05/1.217, allocations: 20 kB / 0.8378 GB, free: 74.28 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001963/1.217, allocations: 32 kB / 0.8379 GB, free: 74.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001354/1.218, allocations: 0.7171 MB / 0.8386 GB, free: 73.53 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/1.22, allocations: 0.8048 MB / 0.8393 GB, free: 72.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/1.22, allocations: 4 kB / 0.8393 GB, free: 72.66 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/1.22, allocations: 3.984 kB / 0.8393 GB, free: 72.66 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.89e-05/1.22, allocations: 53.28 kB / 0.8394 GB, free: 72.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005509/1.225, allocations: 3.648 MB / 0.843 GB, free: 68.78 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005321/1.226, allocations: 355.5 kB / 0.8433 GB, free: 68.43 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000335/1.226, allocations: 254.1 kB / 0.8435 GB, free: 68.18 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002165/1.228, allocations: 1.838 MB / 0.8453 GB, free: 66.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/1.229, allocations: 38.56 kB / 0.8454 GB, free: 66.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 3.857e-06/1.229, allocations: 0 / 0.8454 GB, free: 66.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.007193/1.236, allocations: 1.912 MB / 0.8472 GB, free: 64.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/1.236, allocations: 132.5 kB / 0.8474 GB, free: 63.96 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007595/1.237, allocations: 0.5109 MB / 0.8479 GB, free: 63.44 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.15e-05/1.237, allocations: 29.69 kB / 0.8479 GB, free: 63.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002282/1.237, allocations: 331.1 kB / 0.8482 GB, free: 63.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/1.237, allocations: 157.8 kB / 0.8484 GB, free: 62.92 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.34e-05/1.237, allocations: 0 / 0.8484 GB, free: 62.92 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/1.237, allocations: 378.8 kB / 0.8487 GB, free: 62.54 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000374/1.238, allocations: 245.5 kB / 0.849 GB, free: 62.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004348/1.238, allocations: 484.6 kB / 0.8494 GB, free: 61.72 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004579/1.243, allocations: 0.9999 MB / 0.8504 GB, free: 60.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/1.243, allocations: 4 kB / 0.8504 GB, free: 60.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.005708/1.248, allocations: 1.489 MB / 0.8519 GB, free: 59.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005021/1.249, allocations: 2.702 MB / 0.8545 GB, free: 56.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.829e-05/1.249, allocations: 11.98 kB / 0.8545 GB, free: 56.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000337/1.249, allocations: 89.58 kB / 0.8546 GB, free: 56.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/1.25, allocations: 191.7 kB / 0.8548 GB, free: 56.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/1.252, allocations: 1.921 MB / 0.8566 GB, free: 54.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008822/1.253, allocations: 44.09 kB / 0.8567 GB, free: 53.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/1.253, allocations: 35.98 kB / 0.8567 GB, free: 53.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/1.253, allocations: 4 kB / 0.8567 GB, free: 53.93 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005498/1.259, allocations: 1.367 MB / 0.8581 GB, free: 52.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.573e-05/1.259, allocations: 15.92 kB / 0.8581 GB, free: 52.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002618/1.259, allocations: 89.59 kB / 0.8582 GB, free: 52.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00076/1.26, allocations: 175.7 kB / 0.8583 GB, free: 52.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/1.261, allocations: 1.261 MB / 0.8596 GB, free: 50.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008299/1.262, allocations: 44.05 kB / 0.8596 GB, free: 50.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/1.262, allocations: 31.98 kB / 0.8596 GB, free: 50.89 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002935/1.262, allocations: 136.7 kB / 0.8598 GB, free: 50.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002069/1.262, allocations: 67.16 kB / 0.8598 GB, free: 50.68 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002482/1.265, allocations: 0.9314 MB / 0.8607 GB, free: 49.74 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/1.265, allocations: 12 kB / 0.8607 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/1.265, allocations: 0 / 0.8607 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/1.265, allocations: 3.984 kB / 0.8608 GB, free: 49.72 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003286/1.268, allocations: 1.551 MB / 0.8623 GB, free: 48.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/1.268, allocations: 4 kB / 0.8623 GB, free: 48.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006791/1.269, allocations: 131.9 kB / 0.8624 GB, free: 47.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002199/1.269, allocations: 69.61 kB / 0.8625 GB, free: 47.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-05/1.269, allocations: 7.984 kB / 0.8625 GB, free: 47.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/1.27, allocations: 1.804 MB / 0.8642 GB, free: 46.03 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/1.27, allocations: 0 / 0.8642 GB, free: 46.03 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002098/1.272, allocations: 1.185 MB / 0.8654 GB, free: 44.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002867/1.273, allocations: 156.2 kB / 0.8655 GB, free: 44.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002182/1.273, allocations: 8 kB / 0.8655 GB, free: 44.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006725/1.274, allocations: 35.94 kB / 0.8656 GB, free: 44.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/1.274, allocations: 52.42 kB / 0.8656 GB, free: 44.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.28e-05/1.274, allocations: 27.97 kB / 0.8657 GB, free: 44.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0005069/1.274, allocations: 395.2 kB / 0.866 GB, free: 44.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002381/1.277, allocations: 0.6158 MB / 0.8666 GB, free: 43.51 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002019/1.279, allocations: 0.6649 MB / 0.8673 GB, free: 42.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002824/1.282, allocations: 1.109 MB / 0.8684 GB, free: 41.78 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/1.282, allocations: 0 / 0.8684 GB, free: 41.78 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008045/1.282, allocations: 374.8 kB / 0.8687 GB, free: 41.41 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/1.284, allocations: 267.2 kB / 0.869 GB, free: 41.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002711/1.287, allocations: 1.126 MB / 0.8701 GB, free: 40 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000747/1.288, allocations: 1.092 MB / 0.8711 GB, free: 38.88 MB / 426.7 MB Notification: Performance of SimCode: time 1.062e-06/1.288, allocations: 0 / 0.8711 GB, free: 38.88 MB / 426.7 MB Notification: Performance of Templates: time 0.03417/1.322, allocations: 21.85 MB / 0.8925 GB, free: 17.04 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches