Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [: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.001002/0.001002, allocations: 184.8 kB / 8.134 MB, free: 2.199 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.357/1.357, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.001013/0.001013, allocations: 97.84 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.374e-06/7.474e-06, allocations: 0 / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3036, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7724/1.076, allocations: 320.7 MB / 0.6911 GB, free: 148.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/1.076, allocations: 84.7 kB / 0.6911 GB, free: 148.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.2896/1.366, allocations: 134 MB / 0.822 GB, free: 13.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.732e-05/1.366, allocations: 20 kB / 0.822 GB, free: 13.23 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002463/1.369, allocations: 1.087 MB / 0.8231 GB, free: 12.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/1.369, allocations: 12.03 kB / 0.8231 GB, free: 12.09 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003444/1.369, allocations: 98.97 kB / 0.8232 GB, free: 11.99 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/1.37, allocations: 0.6559 MB / 0.8238 GB, free: 11.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.57e-05/1.37, allocations: 84.66 kB / 0.8239 GB, free: 11.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.671e-05/1.37, allocations: 36 kB / 0.824 GB, free: 11.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001138/1.372, allocations: 0.7678 MB / 0.8247 GB, free: 10.39 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/1.373, allocations: 0.8204 MB / 0.8255 GB, free: 9.547 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/1.373, allocations: 7.906 kB / 0.8255 GB, free: 9.539 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.536e-05/1.373, allocations: 0 / 0.8255 GB, free: 9.539 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.957e-05/1.373, allocations: 57.27 kB / 0.8256 GB, free: 9.48 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005036/1.378, allocations: 3.177 MB / 0.8287 GB, free: 6.16 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000629/1.379, allocations: 0.5067 MB / 0.8292 GB, free: 5.645 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004364/1.379, allocations: 362.2 kB / 0.8295 GB, free: 5.285 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002487/1.381, allocations: 2.016 MB / 0.8315 GB, free: 3.078 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/1.382, allocations: 39.06 kB / 0.8315 GB, free: 3.031 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 2.164e-06/1.382, allocations: 3.938 kB / 0.8315 GB, free: 3.027 MB / 442.7 MB Notification: Performance of matching and sorting (n=66): time 0.006875/1.388, allocations: 2.554 MB / 0.834 GB, free: 432 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/1.388, allocations: 81.77 kB / 0.8341 GB, free: 332 kB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2233/1.612, allocations: 456.4 kB / 0.8345 GB, free: 131.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002486/1.612, allocations: 29.52 kB / 0.8346 GB, free: 131.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/1.612, allocations: 269 kB / 0.8348 GB, free: 131.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002205/1.612, allocations: 223.7 kB / 0.835 GB, free: 131.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.501e-05/1.613, allocations: 0 / 0.835 GB, free: 131.1 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/1.613, allocations: 379.1 kB / 0.8354 GB, free: 130.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005464/1.613, allocations: 347.9 kB / 0.8357 GB, free: 130.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005249/1.614, allocations: 497.2 kB / 0.8362 GB, free: 130.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002308/1.616, allocations: 0.7169 MB / 0.8369 GB, free: 130.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/1.616, allocations: 0 / 0.8369 GB, free: 130.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003134/1.619, allocations: 1.413 MB / 0.8383 GB, free: 130.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003301/1.62, allocations: 1.568 MB / 0.8398 GB, free: 128.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/1.62, allocations: 3.938 kB / 0.8398 GB, free: 128.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008115/1.62, allocations: 367.9 kB / 0.8402 GB, free: 128.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006657/1.621, allocations: 155.7 kB / 0.8403 GB, free: 128.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001975/1.623, allocations: 1.265 MB / 0.8416 GB, free: 128.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007136/1.624, allocations: 32.11 kB / 0.8416 GB, free: 128.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.866e-05/1.624, allocations: 34.7 kB / 0.8416 GB, free: 128.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/1.624, allocations: 8.125 kB / 0.8416 GB, free: 128.4 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002788/1.627, allocations: 1.225 MB / 0.8428 GB, free: 128.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/1.627, allocations: 6.344 kB / 0.8428 GB, free: 128.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006811/1.627, allocations: 313.7 kB / 0.8431 GB, free: 128.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006316/1.628, allocations: 162.3 kB / 0.8433 GB, free: 128.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001589/1.63, allocations: 1.108 MB / 0.8444 GB, free: 127.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006624/1.63, allocations: 24.3 kB / 0.8444 GB, free: 127.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.281e-05/1.63, allocations: 36.48 kB / 0.8444 GB, free: 127.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002482/1.631, allocations: 129 kB / 0.8445 GB, free: 127.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/1.631, allocations: 75 kB / 0.8446 GB, free: 127.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002908/1.634, allocations: 1.241 MB / 0.8458 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/1.634, allocations: 9.859 kB / 0.8458 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/1.634, allocations: 10.58 kB / 0.8458 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/1.634, allocations: 5.578 kB / 0.8459 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003877/1.638, allocations: 2.08 MB / 0.8479 GB, free: 127.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/1.638, allocations: 0 / 0.8479 GB, free: 127.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005835/1.638, allocations: 117.2 kB / 0.848 GB, free: 127.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007798/1.639, allocations: 375.1 kB / 0.8484 GB, free: 127.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.547e-05/1.639, allocations: 11.36 kB / 0.8484 GB, free: 127.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001896/1.641, allocations: 1.255 MB / 0.8496 GB, free: 126.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/1.641, allocations: 2.906 kB / 0.8496 GB, free: 126.8 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003106/1.644, allocations: 1.75 MB / 0.8513 GB, free: 126.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004132/1.645, allocations: 235.5 kB / 0.8515 GB, free: 126.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/1.645, allocations: 7.375 kB / 0.8515 GB, free: 126.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006173/1.645, allocations: 42.22 kB / 0.8516 GB, free: 126.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/1.646, allocations: 52.28 kB / 0.8516 GB, free: 126.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.074e-05/1.646, allocations: 30.72 kB / 0.8517 GB, free: 126.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0004012/1.646, allocations: 343.4 kB / 0.852 GB, free: 126.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002029/1.648, allocations: 0.5911 MB / 0.8526 GB, free: 126.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001158/1.649, allocations: 0.5943 MB / 0.8531 GB, free: 126.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002485/1.652, allocations: 1.348 MB / 0.8545 GB, free: 126.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/1.652, allocations: 3.969 kB / 0.8545 GB, free: 126.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008008/1.653, allocations: 454.4 kB / 0.8549 GB, free: 126.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/1.654, allocations: 299.1 kB / 0.8552 GB, free: 126.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003073/1.657, allocations: 1.338 MB / 0.8565 GB, free: 126 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006595/1.658, allocations: 1.1 MB / 0.8576 GB, free: 125.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.182e-06/1.658, allocations: 0 / 0.8576 GB, free: 125.3 MB / 442.7 MB Notification: Performance of Templates: time 0.0355/1.693, allocations: 23.76 MB / 0.8808 GB, free: 124.7 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches