Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001592/0.001592, allocations: 204.8 kB / 8.544 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009075/0.0009077, allocations: 95.25 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.218e-06/9.378e-06, allocations: 0 / 343.1 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1237, allocations: 51.47 MB / 394.6 MB, free: 5.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7046/0.8284, allocations: 328.7 MB / 0.7064 GB, free: 27.65 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/0.8287, allocations: 89.17 kB / 0.7065 GB, free: 27.61 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.532/1.361, allocations: 169.4 MB / 0.8719 GB, free: 25.72 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.805e-05/1.361, allocations: 23.84 kB / 0.8719 GB, free: 25.7 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003251/1.364, allocations: 1.118 MB / 0.873 GB, free: 24.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/1.364, allocations: 15.97 kB / 0.873 GB, free: 24.53 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007181/1.365, allocations: 103 kB / 0.8731 GB, free: 24.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001631/1.367, allocations: 0.6358 MB / 0.8738 GB, free: 23.76 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.264e-05/1.367, allocations: 19.98 kB / 0.8738 GB, free: 23.74 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/1.367, allocations: 32 kB / 0.8738 GB, free: 23.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001328/1.368, allocations: 0.721 MB / 0.8745 GB, free: 22.99 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/1.369, allocations: 0.8087 MB / 0.8753 GB, free: 22.12 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/1.369, allocations: 3.938 kB / 0.8753 GB, free: 22.12 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001324/1.37, allocations: 4 kB / 0.8753 GB, free: 22.11 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.066e-05/1.37, allocations: 45.28 kB / 0.8753 GB, free: 22.07 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004759/1.374, allocations: 3.656 MB / 0.8789 GB, free: 18.24 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000473/1.375, allocations: 347 kB / 0.8792 GB, free: 17.89 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003227/1.375, allocations: 265.9 kB / 0.8795 GB, free: 17.63 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001948/1.377, allocations: 1.827 MB / 0.8813 GB, free: 15.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/1.377, allocations: 42.47 kB / 0.8813 GB, free: 15.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 2.074e-06/1.377, allocations: 0 / 0.8813 GB, free: 15.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.006877/1.384, allocations: 1.91 MB / 0.8832 GB, free: 13.59 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/1.384, allocations: 132.5 kB / 0.8833 GB, free: 13.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006541/1.385, allocations: 0.5109 MB / 0.8838 GB, free: 12.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.72e-05/1.385, allocations: 25.7 kB / 0.8838 GB, free: 12.88 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/1.385, allocations: 335.1 kB / 0.8842 GB, free: 12.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/1.385, allocations: 161.8 kB / 0.8843 GB, free: 12.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/1.385, allocations: 0 / 0.8843 GB, free: 12.39 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001009/1.385, allocations: 374.8 kB / 0.8847 GB, free: 12.01 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003779/1.386, allocations: 249.5 kB / 0.8849 GB, free: 11.77 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004375/1.386, allocations: 485.5 kB / 0.8854 GB, free: 11.19 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002656/1.389, allocations: 0.7115 MB / 0.8861 GB, free: 10.48 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-06/1.389, allocations: 3.906 kB / 0.8861 GB, free: 10.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003475/1.392, allocations: 1.204 MB / 0.8872 GB, free: 9.254 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004617/1.393, allocations: 2.706 MB / 0.8899 GB, free: 6.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/1.393, allocations: 8 kB / 0.8899 GB, free: 6.332 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002902/1.393, allocations: 89.66 kB / 0.89 GB, free: 6.238 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000992/1.394, allocations: 199.6 kB / 0.8902 GB, free: 6.043 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001491/1.396, allocations: 1.913 MB / 0.892 GB, free: 4.055 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007578/1.396, allocations: 44.03 kB / 0.8921 GB, free: 4.012 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.918e-05/1.397, allocations: 32 kB / 0.8921 GB, free: 3.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.316e-06/1.397, allocations: 4 kB / 0.8921 GB, free: 3.977 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003299/1.4, allocations: 1.085 MB / 0.8932 GB, free: 2.883 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/1.4, allocations: 4 kB / 0.8932 GB, free: 2.879 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002113/1.4, allocations: 94.47 kB / 0.8933 GB, free: 2.781 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006646/1.401, allocations: 179.7 kB / 0.8934 GB, free: 2.605 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009834/1.402, allocations: 1.261 MB / 0.8947 GB, free: 1.293 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006573/1.402, allocations: 35.95 kB / 0.8947 GB, free: 1.258 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.027e-05/1.403, allocations: 39.98 kB / 0.8947 GB, free: 1.219 MB / 442.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.0002079/1.403, allocations: 125.8 kB / 0.8949 GB, free: 1.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/1.403, allocations: 71.16 kB / 0.8949 GB, free: 1.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002266/1.405, allocations: 0.9475 MB / 0.8959 GB, free: 64 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/1.405, allocations: 8 kB / 0.8959 GB, free: 56 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/1.405, allocations: 0 / 0.8959 GB, free: 56 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/1.405, allocations: 3.984 kB / 0.8959 GB, free: 52 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00365/1.409, allocations: 1.555 MB / 0.8974 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/1.409, allocations: 0 / 0.8974 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007641/1.41, allocations: 135.8 kB / 0.8975 GB, free: 14.31 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002313/1.41, allocations: 69.91 kB / 0.8976 GB, free: 14.24 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.508e-05/1.41, allocations: 15.98 kB / 0.8976 GB, free: 14.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001462/1.411, allocations: 1.8 MB / 0.8994 GB, free: 12.35 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.412, allocations: 0 / 0.8994 GB, free: 12.35 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002419/1.414, allocations: 1.181 MB / 0.9005 GB, free: 11.12 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003353/1.414, allocations: 156.2 kB / 0.9007 GB, free: 10.95 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002081/1.415, allocations: 11.98 kB / 0.9007 GB, free: 10.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006434/1.415, allocations: 27.88 kB / 0.9007 GB, free: 10.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/1.415, allocations: 52.42 kB / 0.9007 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/1.415, allocations: 23.98 kB / 0.9008 GB, free: 10.83 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0006609/1.416, allocations: 399.2 kB / 0.9012 GB, free: 10.45 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002511/1.419, allocations: 0.6205 MB / 0.9018 GB, free: 9.828 MB / 458.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.002058/1.421, allocations: 0.6728 MB / 0.9024 GB, free: 9.195 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00285/1.424, allocations: 1.097 MB / 0.9035 GB, free: 8.102 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/1.424, allocations: 0 / 0.9035 GB, free: 8.102 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008523/1.424, allocations: 378.5 kB / 0.9038 GB, free: 7.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001628/1.426, allocations: 272.3 kB / 0.9041 GB, free: 7.469 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/1.429, allocations: 1.134 MB / 0.9052 GB, free: 6.293 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000975/1.43, allocations: 1.085 MB / 0.9063 GB, free: 5.18 MB / 458.7 MB Notification: Performance of SimCode: time 8.22e-07/1.43, allocations: 0 / 0.9063 GB, free: 5.18 MB / 458.7 MB Notification: Performance of Templates: time 0.2132/1.643, allocations: 21.88 MB / 0.9276 GB, free: 126.8 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe1/TankWithEmptyingPipe1.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches