Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001545/0.001545, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008992/0.0008992, allocations: 85.86 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.066e-05/1.079e-05, allocations: 0 / 343.1 MB, free: 8.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1199, allocations: 51.48 MB / 394.6 MB, free: 5.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8186/0.9386, allocations: 321.5 MB / 0.6994 GB, free: 32.85 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/0.9389, allocations: 77.45 kB / 0.6994 GB, free: 32.81 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.5652/1.504, allocations: 133.9 MB / 0.8302 GB, free: 104.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.028e-05/1.504, allocations: 17.09 kB / 0.8302 GB, free: 104.2 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002888/1.507, allocations: 1.091 MB / 0.8313 GB, free: 103.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/1.507, allocations: 13.47 kB / 0.8313 GB, free: 103.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003592/1.508, allocations: 100.4 kB / 0.8314 GB, free: 103.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001322/1.509, allocations: 0.6588 MB / 0.832 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.883e-05/1.509, allocations: 84.41 kB / 0.8321 GB, free: 102.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/1.509, allocations: 35.16 kB / 0.8321 GB, free: 102.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001242/1.51, allocations: 0.7729 MB / 0.8329 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/1.512, allocations: 0.8183 MB / 0.8337 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/1.512, allocations: 3.031 kB / 0.8337 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.814e-05/1.512, allocations: 7.844 kB / 0.8337 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.685e-05/1.512, allocations: 59.64 kB / 0.8338 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005683/1.518, allocations: 3.168 MB / 0.8369 GB, free: 99.54 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006543/1.518, allocations: 0.5072 MB / 0.8374 GB, free: 99.29 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004345/1.519, allocations: 361.7 kB / 0.8377 GB, free: 99.12 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003088/1.522, allocations: 2.006 MB / 0.8397 GB, free: 97.38 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.565e-05/1.522, allocations: 42.56 kB / 0.8397 GB, free: 97.33 MB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 2.485e-06/1.522, allocations: 0.5 kB / 0.8397 GB, free: 97.33 MB / 458.7 MB Notification: Performance of matching and sorting (n=66): time 0.007382/1.529, allocations: 2.567 MB / 0.8422 GB, free: 94.83 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/1.529, allocations: 85.77 kB / 0.8423 GB, free: 94.73 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005378/1.53, allocations: 442.2 kB / 0.8427 GB, free: 94.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.692e-05/1.53, allocations: 29.7 kB / 0.8427 GB, free: 94.25 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/1.53, allocations: 275.9 kB / 0.843 GB, free: 93.98 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/1.53, allocations: 223.9 kB / 0.8432 GB, free: 93.76 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.154e-05/1.53, allocations: 0 / 0.8432 GB, free: 93.76 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.323e-05/1.53, allocations: 382.7 kB / 0.8436 GB, free: 93.38 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004362/1.531, allocations: 349.4 kB / 0.8439 GB, free: 93.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004959/1.531, allocations: 495.1 kB / 0.8444 GB, free: 92.49 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00242/1.534, allocations: 0.7641 MB / 0.8451 GB, free: 91.73 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/1.534, allocations: 0 / 0.8451 GB, free: 91.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003436/1.537, allocations: 1.468 MB / 0.8466 GB, free: 90.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003549/1.538, allocations: 1.575 MB / 0.8481 GB, free: 88.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/1.538, allocations: 4 kB / 0.8481 GB, free: 88.55 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008044/1.538, allocations: 364.6 kB / 0.8485 GB, free: 88.19 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006591/1.539, allocations: 159.8 kB / 0.8486 GB, free: 88.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001935/1.541, allocations: 1.256 MB / 0.8498 GB, free: 86.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007151/1.542, allocations: 31.97 kB / 0.8499 GB, free: 86.72 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-05/1.542, allocations: 31.98 kB / 0.8499 GB, free: 86.69 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.538e-06/1.542, allocations: 4 kB / 0.8499 GB, free: 86.69 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003131/1.545, allocations: 1.287 MB / 0.8512 GB, free: 85.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/1.545, allocations: 8.031 kB / 0.8512 GB, free: 85.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006272/1.546, allocations: 320.6 kB / 0.8515 GB, free: 85.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000617/1.546, allocations: 163.8 kB / 0.8516 GB, free: 84.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/1.548, allocations: 1.103 MB / 0.8527 GB, free: 83.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000647/1.549, allocations: 35.81 kB / 0.8527 GB, free: 83.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.944e-05/1.549, allocations: 32.08 kB / 0.8528 GB, free: 83.72 MB / 458.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.0002374/1.549, allocations: 128.7 kB / 0.8529 GB, free: 83.59 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/1.549, allocations: 67.16 kB / 0.8529 GB, free: 83.52 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002857/1.552, allocations: 1.251 MB / 0.8542 GB, free: 82.26 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/1.552, allocations: 8 kB / 0.8542 GB, free: 82.25 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/1.552, allocations: 0 / 0.8542 GB, free: 82.25 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/1.552, allocations: 3.984 kB / 0.8542 GB, free: 82.25 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003744/1.556, allocations: 2.083 MB / 0.8562 GB, free: 80.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/1.556, allocations: 0 / 0.8562 GB, free: 80.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005791/1.556, allocations: 115.9 kB / 0.8563 GB, free: 80.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007332/1.557, allocations: 372.6 kB / 0.8567 GB, free: 79.65 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-05/1.557, allocations: 7.984 kB / 0.8567 GB, free: 79.64 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001864/1.559, allocations: 1.266 MB / 0.8579 GB, free: 78.35 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.559, allocations: 0 / 0.8579 GB, free: 78.35 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0029/1.562, allocations: 1.751 MB / 0.8596 GB, free: 76.58 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003563/1.562, allocations: 236.1 kB / 0.8599 GB, free: 76.33 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001292/1.562, allocations: 0 / 0.8599 GB, free: 76.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005925/1.563, allocations: 43.88 kB / 0.8599 GB, free: 76.29 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/1.563, allocations: 56.56 kB / 0.86 GB, free: 76.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-05/1.563, allocations: 23.98 kB / 0.86 GB, free: 76.21 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003583/1.564, allocations: 346.9 kB / 0.8603 GB, free: 75.88 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001965/1.565, allocations: 0.6011 MB / 0.8609 GB, free: 75.27 MB / 458.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.001136/1.567, allocations: 0.6028 MB / 0.8615 GB, free: 74.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002308/1.569, allocations: 1.349 MB / 0.8628 GB, free: 73.35 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.768e-06/1.569, allocations: 3.938 kB / 0.8628 GB, free: 73.35 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007833/1.57, allocations: 462 kB / 0.8632 GB, free: 72.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/1.571, allocations: 298.1 kB / 0.8635 GB, free: 72.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/1.574, allocations: 1.346 MB / 0.8648 GB, free: 71.24 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006047/1.575, allocations: 1.096 MB / 0.8659 GB, free: 70.11 MB / 458.7 MB Notification: Performance of SimCode: time 5.21e-07/1.575, allocations: 4 kB / 0.8659 GB, free: 70.11 MB / 458.7 MB Notification: Performance of Templates: time 0.03123/1.606, allocations: 23.81 MB / 0.8892 GB, free: 46.51 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches