Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001689/0.001688, allocations: 184.3 kB / 8.138 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 221.4 MB / 229.9 MB, free: 3.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008424/0.0008426, allocations: 98.16 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.857e-06/9.128e-06, allocations: 4 kB / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2132, allocations: 50.39 MB / 386.9 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5485/0.7617, allocations: 328 MB / 0.6981 GB, free: 140.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.762, allocations: 92.64 kB / 0.6982 GB, free: 140.8 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.4912/1.253, allocations: 169.6 MB / 0.8638 GB, free: 96.21 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.138e-05/1.253, allocations: 24.09 kB / 0.8638 GB, free: 96.21 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.002249/1.256, allocations: 1.107 MB / 0.8649 GB, free: 95.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/1.256, allocations: 13.78 kB / 0.8649 GB, free: 95.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003614/1.256, allocations: 99.23 kB / 0.865 GB, free: 95.58 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/1.257, allocations: 0.6333 MB / 0.8656 GB, free: 95.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.189e-05/1.257, allocations: 26.03 kB / 0.8656 GB, free: 95.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.176e-05/1.257, allocations: 30.59 kB / 0.8657 GB, free: 95.34 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001044/1.258, allocations: 0.7294 MB / 0.8664 GB, free: 95.33 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/1.259, allocations: 0.8013 MB / 0.8672 GB, free: 95.15 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/1.259, allocations: 6.156 kB / 0.8672 GB, free: 95.15 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.04e-05/1.259, allocations: 3.719 kB / 0.8672 GB, free: 95.15 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.496e-05/1.259, allocations: 48.69 kB / 0.8672 GB, free: 95.15 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004123/1.264, allocations: 3.64 MB / 0.8708 GB, free: 93.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000466/1.264, allocations: 363 kB / 0.8711 GB, free: 93.18 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003015/1.264, allocations: 258.7 kB / 0.8714 GB, free: 93.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001809/1.266, allocations: 1.825 MB / 0.8732 GB, free: 91.94 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/1.266, allocations: 41.62 kB / 0.8732 GB, free: 91.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 1.893e-06/1.266, allocations: 3.812 kB / 0.8732 GB, free: 91.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.006712/1.273, allocations: 1.913 MB / 0.8751 GB, free: 91.48 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/1.273, allocations: 132.3 kB / 0.8752 GB, free: 91.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006898/1.274, allocations: 0.5084 MB / 0.8757 GB, free: 91.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.809e-05/1.274, allocations: 28.98 kB / 0.8757 GB, free: 91.16 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/1.274, allocations: 335.9 kB / 0.876 GB, free: 90.95 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/1.274, allocations: 153.3 kB / 0.8762 GB, free: 90.85 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.484e-05/1.274, allocations: 3.312 kB / 0.8762 GB, free: 90.85 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/1.274, allocations: 377.3 kB / 0.8765 GB, free: 90.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003492/1.275, allocations: 249.6 kB / 0.8768 GB, free: 90.53 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004922/1.275, allocations: 486.5 kB / 0.8772 GB, free: 90.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002281/1.278, allocations: 0.6594 MB / 0.8779 GB, free: 90.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/1.278, allocations: 3.938 kB / 0.8779 GB, free: 90.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003084/1.281, allocations: 1.15 MB / 0.879 GB, free: 90.16 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004786/1.281, allocations: 2.697 MB / 0.8817 GB, free: 87.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/1.281, allocations: 7.656 kB / 0.8817 GB, free: 87.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002826/1.281, allocations: 88.69 kB / 0.8817 GB, free: 87.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/1.282, allocations: 193.4 kB / 0.8819 GB, free: 87.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/1.284, allocations: 1.917 MB / 0.8838 GB, free: 85.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007944/1.285, allocations: 44.8 kB / 0.8838 GB, free: 85.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.192e-05/1.285, allocations: 33.2 kB / 0.8839 GB, free: 85.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.597e-06/1.285, allocations: 5.938 kB / 0.8839 GB, free: 85.7 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002752/1.288, allocations: 1.029 MB / 0.8849 GB, free: 85.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.505e-06/1.288, allocations: 7.406 kB / 0.8849 GB, free: 85.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002131/1.288, allocations: 96.28 kB / 0.885 GB, free: 85.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006459/1.289, allocations: 174.3 kB / 0.8852 GB, free: 85.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009383/1.29, allocations: 1.265 MB / 0.8864 GB, free: 84.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006608/1.29, allocations: 37.84 kB / 0.8864 GB, free: 84.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.949e-05/1.29, allocations: 34.34 kB / 0.8865 GB, free: 84.62 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.0002643/1.291, allocations: 137.2 kB / 0.8866 GB, free: 84.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/1.291, allocations: 69.72 kB / 0.8867 GB, free: 84.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002304/1.293, allocations: 0.9351 MB / 0.8876 GB, free: 84.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/1.293, allocations: 9.406 kB / 0.8876 GB, free: 84.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/1.293, allocations: 3.891 kB / 0.8876 GB, free: 84.39 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/1.293, allocations: 2.781 kB / 0.8876 GB, free: 84.39 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00296/1.296, allocations: 1.556 MB / 0.8891 GB, free: 84.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/1.296, allocations: 7.031 kB / 0.8891 GB, free: 84.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006193/1.297, allocations: 129.6 kB / 0.8892 GB, free: 84.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001961/1.297, allocations: 68.83 kB / 0.8893 GB, free: 84.05 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.049e-05/1.297, allocations: 15.22 kB / 0.8893 GB, free: 84.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009699/1.298, allocations: 1.798 MB / 0.8911 GB, free: 82.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/1.298, allocations: 2.469 kB / 0.8911 GB, free: 82.43 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001915/1.3, allocations: 1.185 MB / 0.8922 GB, free: 82.15 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000161/1.3, allocations: 158.2 kB / 0.8924 GB, free: 82.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/1.3, allocations: 3.969 kB / 0.8924 GB, free: 82.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005066/1.301, allocations: 35.88 kB / 0.8924 GB, free: 82.01 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/1.301, allocations: 54.17 kB / 0.8925 GB, free: 82.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.532e-05/1.301, allocations: 26.33 kB / 0.8925 GB, free: 82.01 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003819/1.301, allocations: 398.1 kB / 0.8929 GB, free: 81.92 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001825/1.303, allocations: 0.6073 MB / 0.8935 GB, free: 81.82 MB / 442.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.001287/1.304, allocations: 0.6793 MB / 0.8941 GB, free: 81.61 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002251/1.307, allocations: 1.104 MB / 0.8952 GB, free: 81.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/1.307, allocations: 3.875 kB / 0.8952 GB, free: 81.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006804/1.307, allocations: 367.6 kB / 0.8956 GB, free: 81.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/1.309, allocations: 268.5 kB / 0.8958 GB, free: 81.59 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/1.311, allocations: 1.127 MB / 0.8969 GB, free: 81.29 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005845/1.311, allocations: 1.084 MB / 0.898 GB, free: 80.58 MB / 442.7 MB Notification: Performance of SimCode: time 5.81e-07/1.311, allocations: 0 / 0.898 GB, free: 80.58 MB / 442.7 MB Notification: Performance of Templates: time 0.03117/1.343, allocations: 21.85 MB / 0.9193 GB, free: 79.37 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches