Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,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.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,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.TankWithEmptyingPipe2") [: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.001168/0.001168, allocations: 196.2 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 225.5 MB / 234.4 MB, free: 3.348 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009171/0.0009172, allocations: 94.12 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.241e-05/1.27e-05, allocations: 4 kB / 343.1 MB, free: 8.723 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1286, allocations: 51.48 MB / 394.6 MB, free: 5.195 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6393/0.768, allocations: 324.4 MB / 0.7022 GB, free: 30.14 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002056/0.7682, allocations: 87.83 kB / 0.7023 GB, free: 30.09 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.5989/1.367, allocations: 195 MB / 0.8928 GB, free: 43.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001018/1.367, allocations: 31.14 kB / 0.8928 GB, free: 43.17 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003546/1.371, allocations: 1.296 MB / 0.8941 GB, free: 41.84 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/1.371, allocations: 8.031 kB / 0.8941 GB, free: 41.83 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006452/1.371, allocations: 110.8 kB / 0.8942 GB, free: 41.72 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001753/1.373, allocations: 0.7476 MB / 0.8949 GB, free: 40.95 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.697e-05/1.373, allocations: 20 kB / 0.8949 GB, free: 40.93 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001863/1.374, allocations: 39.98 kB / 0.895 GB, free: 40.89 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001489/1.375, allocations: 0.9201 MB / 0.8959 GB, free: 39.97 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/1.376, allocations: 0.9733 MB / 0.8968 GB, free: 38.93 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/1.377, allocations: 4 kB / 0.8968 GB, free: 38.93 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/1.377, allocations: 4 kB / 0.8968 GB, free: 38.93 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.687e-05/1.377, allocations: 65.27 kB / 0.8969 GB, free: 38.86 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006472/1.383, allocations: 4.262 MB / 0.9011 GB, free: 34.41 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005886/1.384, allocations: 419.5 kB / 0.9015 GB, free: 33.99 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004069/1.384, allocations: 314 kB / 0.9018 GB, free: 33.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002401/1.387, allocations: 2.019 MB / 0.9037 GB, free: 31.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/1.387, allocations: 38.89 kB / 0.9038 GB, free: 31.42 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 2.504e-06/1.387, allocations: 0 / 0.9038 GB, free: 31.42 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.006041/1.393, allocations: 1.804 MB / 0.9055 GB, free: 29.55 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/1.393, allocations: 162.2 kB / 0.9057 GB, free: 29.36 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009147/1.394, allocations: 0.6364 MB / 0.9063 GB, free: 28.72 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.786e-05/1.394, allocations: 29.7 kB / 0.9063 GB, free: 28.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002476/1.394, allocations: 394.3 kB / 0.9067 GB, free: 28.29 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/1.394, allocations: 165.5 kB / 0.9069 GB, free: 28.13 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.854e-05/1.394, allocations: 0 / 0.9069 GB, free: 28.13 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/1.394, allocations: 386.8 kB / 0.9072 GB, free: 27.75 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004473/1.395, allocations: 309.8 kB / 0.9075 GB, free: 27.45 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000539/1.395, allocations: 0.5786 MB / 0.9081 GB, free: 26.73 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003186/1.399, allocations: 0.8966 MB / 0.909 GB, free: 25.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/1.399, allocations: 4 kB / 0.909 GB, free: 25.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004262/1.403, allocations: 1.504 MB / 0.9104 GB, free: 24.31 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005666/1.403, allocations: 3.311 MB / 0.9137 GB, free: 20.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/1.404, allocations: 8 kB / 0.9137 GB, free: 20.74 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006149/1.404, allocations: 169.6 kB / 0.9138 GB, free: 20.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006901/1.405, allocations: 171.7 kB / 0.914 GB, free: 20.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001916/1.407, allocations: 1.542 MB / 0.9155 GB, free: 18.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009992/1.408, allocations: 43.97 kB / 0.9156 GB, free: 18.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/1.408, allocations: 43.98 kB / 0.9156 GB, free: 18.72 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/1.408, allocations: 7.438 kB / 0.9156 GB, free: 18.71 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003678/1.412, allocations: 1.327 MB / 0.9169 GB, free: 17.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.961e-05/1.412, allocations: 8 kB / 0.9169 GB, free: 17.37 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006075/1.412, allocations: 170.1 kB / 0.9171 GB, free: 17.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006588/1.413, allocations: 171.7 kB / 0.9172 GB, free: 17.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001508/1.414, allocations: 1.44 MB / 0.9186 GB, free: 15.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008799/1.415, allocations: 44.05 kB / 0.9187 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/1.415, allocations: 43.98 kB / 0.9187 GB, free: 15.45 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002592/1.416, allocations: 132.8 kB / 0.9188 GB, free: 15.32 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002072/1.416, allocations: 86.97 kB / 0.9189 GB, free: 15.23 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002263/1.418, allocations: 0.8392 MB / 0.9198 GB, free: 14.38 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/1.418, allocations: 8 kB / 0.9198 GB, free: 14.38 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/1.418, allocations: 4 kB / 0.9198 GB, free: 14.37 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/1.418, allocations: 0 / 0.9198 GB, free: 14.37 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003057/1.421, allocations: 1.568 MB / 0.9213 GB, free: 12.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/1.421, allocations: 3.984 kB / 0.9213 GB, free: 12.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/1.422, allocations: 79.91 kB / 0.9214 GB, free: 12.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005867/1.422, allocations: 157.6 kB / 0.9215 GB, free: 12.52 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.249e-05/1.422, allocations: 7.906 kB / 0.9215 GB, free: 12.51 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001336/1.424, allocations: 1.421 MB / 0.9229 GB, free: 11.04 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.424, allocations: 0 / 0.9229 GB, free: 11.04 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001902/1.426, allocations: 1.139 MB / 0.924 GB, free: 9.859 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003247/1.426, allocations: 172 kB / 0.9242 GB, free: 9.672 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002276/1.426, allocations: 7.891 kB / 0.9242 GB, free: 9.664 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006609/1.427, allocations: 36.03 kB / 0.9242 GB, free: 9.629 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/1.427, allocations: 44.38 kB / 0.9243 GB, free: 9.586 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.014e-05/1.427, allocations: 31.91 kB / 0.9243 GB, free: 9.555 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0005924/1.428, allocations: 495.1 kB / 0.9248 GB, free: 9.078 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002577/1.43, allocations: 0.7954 MB / 0.9256 GB, free: 8.285 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002151/1.432, allocations: 0.8144 MB / 0.9264 GB, free: 7.52 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001929/1.434, allocations: 1.179 MB / 0.9275 GB, free: 6.352 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/1.434, allocations: 1.938 kB / 0.9275 GB, free: 6.352 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004532/1.435, allocations: 313.5 kB / 0.9278 GB, free: 6.047 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/1.436, allocations: 286.3 kB / 0.9281 GB, free: 5.773 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00237/1.439, allocations: 1.249 MB / 0.9293 GB, free: 4.488 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006398/1.439, allocations: 1.142 MB / 0.9304 GB, free: 3.316 MB / 458.7 MB Notification: Performance of SimCode: time 4.61e-07/1.439, allocations: 0 / 0.9304 GB, free: 3.316 MB / 458.7 MB Notification: Performance of Templates: time 0.1723/1.612, allocations: 25.61 MB / 0.9554 GB, free: 124.1 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TankWithEmptyingPipe2/TankWithEmptyingPipe2.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches