Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") [: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.001119/0.001118, allocations: 176.1 kB / 8.478 MB, free: 1.891 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.466/1.466, allocations: 205.2 MB / 214.1 MB, free: 5.105 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.001275/0.001275, allocations: 91.31 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.444e-06/7.544e-06, allocations: 4 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08073/0.08075, allocations: 47.57 MB / 362.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6252/0.706, allocations: 320.9 MB / 0.6675 GB, free: 70.31 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.7062, allocations: 86.5 kB / 0.6675 GB, free: 70.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.4039/1.11, allocations: 137.1 MB / 0.8014 GB, free: 111.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.799e-05/1.11, allocations: 23.94 kB / 0.8014 GB, free: 111.2 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001865/1.112, allocations: 1.022 MB / 0.8024 GB, free: 110.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/1.112, allocations: 12.03 kB / 0.8024 GB, free: 110.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002781/1.112, allocations: 90.98 kB / 0.8025 GB, free: 110 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000943/1.113, allocations: 0.5805 MB / 0.8031 GB, free: 109.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/1.113, allocations: 23.91 kB / 0.8031 GB, free: 109.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.45e-05/1.114, allocations: 31.98 kB / 0.8031 GB, free: 109.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000847/1.114, allocations: 0.6189 MB / 0.8037 GB, free: 108.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008493/1.115, allocations: 0.6737 MB / 0.8044 GB, free: 108.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/1.115, allocations: 4 kB / 0.8044 GB, free: 108 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.796e-05/1.115, allocations: 0 / 0.8044 GB, free: 108 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.441e-05/1.115, allocations: 48.97 kB / 0.8045 GB, free: 108 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003241/1.119, allocations: 2.735 MB / 0.8071 GB, free: 105.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004297/1.119, allocations: 370.8 kB / 0.8075 GB, free: 104.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002675/1.119, allocations: 246.1 kB / 0.8077 GB, free: 104.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002006/1.12, allocations: 344.8 kB / 0.808 GB, free: 104.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/1.12, allocations: 39 kB / 0.8081 GB, free: 104.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 1.653e-06/1.12, allocations: 0 / 0.8081 GB, free: 104.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.004843/1.124, allocations: 1.871 MB / 0.8099 GB, free: 102.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/1.124, allocations: 81.61 kB / 0.81 GB, free: 102 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004203/1.125, allocations: 450.1 kB / 0.8104 GB, free: 101.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.94e-05/1.125, allocations: 29.7 kB / 0.8104 GB, free: 101.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/1.125, allocations: 260.2 kB / 0.8107 GB, free: 101.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/1.125, allocations: 197.1 kB / 0.8109 GB, free: 101.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.212e-05/1.125, allocations: 0 / 0.8109 GB, free: 101.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.991e-05/1.125, allocations: 370.8 kB / 0.8112 GB, free: 100.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003414/1.126, allocations: 285.5 kB / 0.8115 GB, free: 100.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003861/1.126, allocations: 433.6 kB / 0.8119 GB, free: 99.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003648/1.13, allocations: 0.8965 MB / 0.8128 GB, free: 99.06 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/1.13, allocations: 0 / 0.8128 GB, free: 99.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.004349/1.134, allocations: 1.437 MB / 0.8142 GB, free: 97.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002972/1.134, allocations: 1.745 MB / 0.8159 GB, free: 95.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/1.134, allocations: 8.984 kB / 0.8159 GB, free: 95.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004846/1.135, allocations: 164.7 kB / 0.8161 GB, free: 95.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005745/1.135, allocations: 151.7 kB / 0.8162 GB, free: 95.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/1.137, allocations: 0.9854 MB / 0.8172 GB, free: 94.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005482/1.138, allocations: 32.03 kB / 0.8172 GB, free: 94.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.173e-05/1.138, allocations: 39.98 kB / 0.8172 GB, free: 94.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.013e-06/1.138, allocations: 4 kB / 0.8172 GB, free: 94.33 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004336/1.142, allocations: 1.256 MB / 0.8185 GB, free: 93.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/1.142, allocations: 7.938 kB / 0.8185 GB, free: 93.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003555/1.142, allocations: 109.5 kB / 0.8186 GB, free: 92.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005588/1.143, allocations: 156.1 kB / 0.8187 GB, free: 92.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001071/1.144, allocations: 0.8292 MB / 0.8195 GB, free: 91.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004801/1.144, allocations: 39.97 kB / 0.8196 GB, free: 91.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.389e-05/1.145, allocations: 32.05 kB / 0.8196 GB, free: 91.88 MB / 426.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 () * 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.0001618/1.145, allocations: 120.8 kB / 0.8197 GB, free: 91.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.999e-05/1.145, allocations: 67.25 kB / 0.8198 GB, free: 91.68 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001746/1.147, allocations: 0.8617 MB / 0.8206 GB, free: 90.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/1.147, allocations: 4 kB / 0.8206 GB, free: 90.81 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/1.147, allocations: 4 kB / 0.8206 GB, free: 90.81 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/1.147, allocations: 3.984 kB / 0.8206 GB, free: 90.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002528/1.149, allocations: 1.603 MB / 0.8222 GB, free: 89.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/1.149, allocations: 4 kB / 0.8222 GB, free: 89.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004925/1.15, allocations: 107.9 kB / 0.8223 GB, free: 89.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004523/1.15, allocations: 160.8 kB / 0.8225 GB, free: 88.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.921e-05/1.15, allocations: 12.05 kB / 0.8225 GB, free: 88.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/1.151, allocations: 0.8918 MB / 0.8234 GB, free: 87.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.151, allocations: 4 kB / 0.8234 GB, free: 87.96 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001925/1.153, allocations: 1.285 MB / 0.8246 GB, free: 86.64 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/1.153, allocations: 144.3 kB / 0.8248 GB, free: 86.48 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/1.153, allocations: 7.906 kB / 0.8248 GB, free: 86.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000458/1.154, allocations: 27.97 kB / 0.8248 GB, free: 86.45 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/1.154, allocations: 52.58 kB / 0.8248 GB, free: 86.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-05/1.154, allocations: 23.98 kB / 0.8249 GB, free: 86.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.000296/1.154, allocations: 346.9 kB / 0.8252 GB, free: 86.04 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001481/1.156, allocations: 0.5387 MB / 0.8257 GB, free: 85.5 MB / 426.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]) * 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.0009628/1.157, allocations: 0.593 MB / 0.8263 GB, free: 84.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001563/1.158, allocations: 1.095 MB / 0.8274 GB, free: 83.83 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/1.158, allocations: 2 kB / 0.8274 GB, free: 83.83 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000487/1.159, allocations: 367.8 kB / 0.8277 GB, free: 83.47 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/1.16, allocations: 282.1 kB / 0.828 GB, free: 83.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/1.162, allocations: 1.192 MB / 0.8291 GB, free: 81.97 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005251/1.163, allocations: 1.053 MB / 0.8302 GB, free: 80.89 MB / 426.7 MB Notification: Performance of SimCode: time 5.61e-07/1.163, allocations: 0 / 0.8302 GB, free: 80.89 MB / 426.7 MB Notification: Performance of Templates: time 0.02702/1.19, allocations: 21.45 MB / 0.8511 GB, free: 59.46 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_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/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches