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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 176.1 kB / 8.348 MB, free: 0.7266 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.474/1.474, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.000903/0.000903, allocations: 101.4 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.251e-05/2.253e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.124, allocations: 50.42 MB / 387.5 MB, free: 7.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9125/1.037, allocations: 320.8 MB / 0.6917 GB, free: 8.199 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/1.037, allocations: 80.91 kB / 0.6917 GB, free: 8.16 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6323/1.669, allocations: 133.5 MB / 0.8221 GB, free: 73.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.785e-06/1.669, allocations: 0 / 0.8221 GB, free: 73.91 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001092/1.669, allocations: 20 kB / 0.8221 GB, free: 73.89 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.003808/1.673, allocations: 1.081 MB / 0.8232 GB, free: 72.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/1.673, allocations: 8.031 kB / 0.8232 GB, free: 72.76 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007246/1.674, allocations: 91.06 kB / 0.8233 GB, free: 72.67 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001787/1.676, allocations: 0.667 MB / 0.8239 GB, free: 71.98 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/1.676, allocations: 88.7 kB / 0.824 GB, free: 71.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002188/1.676, allocations: 31.91 kB / 0.824 GB, free: 71.84 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001373/1.678, allocations: 0.7444 MB / 0.8248 GB, free: 71.1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/1.679, allocations: 0.8009 MB / 0.8255 GB, free: 70.27 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/1.679, allocations: 4 kB / 0.8255 GB, free: 70.27 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/1.679, allocations: 0 / 0.8255 GB, free: 70.27 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-05/1.679, allocations: 57.2 kB / 0.8256 GB, free: 70.21 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005675/1.685, allocations: 3.155 MB / 0.8287 GB, free: 66.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007636/1.686, allocations: 0.6092 MB / 0.8293 GB, free: 66.33 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000405/1.686, allocations: 350.4 kB / 0.8296 GB, free: 65.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002686/1.689, allocations: 2.007 MB / 0.8316 GB, free: 63.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/1.689, allocations: 47.12 kB / 0.8316 GB, free: 63.74 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 2.304e-06/1.689, allocations: 0 / 0.8316 GB, free: 63.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=66): time 0.006971/1.696, allocations: 2.464 MB / 0.834 GB, free: 61.23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/1.696, allocations: 85.67 kB / 0.8341 GB, free: 61.12 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006704/1.697, allocations: 458.1 kB / 0.8345 GB, free: 60.67 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.577e-05/1.697, allocations: 25.7 kB / 0.8346 GB, free: 60.64 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002006/1.697, allocations: 343.9 kB / 0.8349 GB, free: 60.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/1.697, allocations: 216.8 kB / 0.8351 GB, free: 60.08 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-05/1.697, allocations: 4 kB / 0.8351 GB, free: 60.08 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/1.697, allocations: 378.7 kB / 0.8355 GB, free: 59.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004436/1.698, allocations: 341.4 kB / 0.8358 GB, free: 59.37 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000493/1.698, allocations: 484.1 kB / 0.8362 GB, free: 58.84 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001943/1.7, allocations: 0.6718 MB / 0.8369 GB, free: 58.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/1.7, allocations: 4 kB / 0.8369 GB, free: 58.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003026/1.703, allocations: 1.347 MB / 0.8382 GB, free: 56.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003735/1.704, allocations: 1.587 MB / 0.8398 GB, free: 55.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/1.704, allocations: 11.94 kB / 0.8398 GB, free: 55.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007774/1.705, allocations: 360.5 kB / 0.8401 GB, free: 54.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006169/1.705, allocations: 159.8 kB / 0.8403 GB, free: 54.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001777/1.707, allocations: 1.219 MB / 0.8415 GB, free: 53.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007419/1.708, allocations: 27.92 kB / 0.8415 GB, free: 53.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.165e-05/1.708, allocations: 35.98 kB / 0.8415 GB, free: 53.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/1.708, allocations: 5.406 kB / 0.8415 GB, free: 53.26 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002653/1.711, allocations: 1.179 MB / 0.8427 GB, free: 52.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/1.711, allocations: 11.89 kB / 0.8427 GB, free: 52.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006204/1.711, allocations: 308.8 kB / 0.843 GB, free: 51.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006004/1.712, allocations: 163.8 kB / 0.8431 GB, free: 51.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/1.713, allocations: 1.06 MB / 0.8442 GB, free: 50.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007266/1.714, allocations: 35.92 kB / 0.8442 GB, free: 50.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.988e-05/1.714, allocations: 31.98 kB / 0.8442 GB, free: 50.45 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.0002784/1.714, allocations: 124.8 kB / 0.8444 GB, free: 50.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/1.715, allocations: 71.16 kB / 0.8444 GB, free: 50.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002861/1.717, allocations: 1.19 MB / 0.8456 GB, free: 49.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/1.717, allocations: 8 kB / 0.8456 GB, free: 49.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/1.717, allocations: 0 / 0.8456 GB, free: 49.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/1.718, allocations: 3.984 kB / 0.8456 GB, free: 49.04 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004079/1.722, allocations: 2.029 MB / 0.8476 GB, free: 46.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/1.722, allocations: 0 / 0.8476 GB, free: 46.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005494/1.722, allocations: 119.9 kB / 0.8477 GB, free: 46.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007819/1.723, allocations: 368.6 kB / 0.8481 GB, free: 46.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.258e-05/1.723, allocations: 15.98 kB / 0.8481 GB, free: 46.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001838/1.725, allocations: 1.208 MB / 0.8492 GB, free: 45.25 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/1.725, allocations: 4 kB / 0.8493 GB, free: 45.25 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003097/1.728, allocations: 1.686 MB / 0.8509 GB, free: 43.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005633/1.729, allocations: 236.2 kB / 0.8511 GB, free: 43.29 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002085/1.729, allocations: 4 kB / 0.8511 GB, free: 43.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007128/1.73, allocations: 39.86 kB / 0.8512 GB, free: 43.25 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/1.73, allocations: 56.64 kB / 0.8512 GB, free: 43.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.414e-05/1.73, allocations: 31.97 kB / 0.8512 GB, free: 43.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000584/1.73, allocations: 338.9 kB / 0.8516 GB, free: 42.83 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.73, allocations: 0 / 0.8516 GB, free: 42.83 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003162/1.734, allocations: 0.5931 MB / 0.8522 GB, free: 42.23 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.002408/1.736, allocations: 0.5766 MB / 0.8527 GB, free: 41.68 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002776/1.739, allocations: 1.323 MB / 0.854 GB, free: 40.36 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/1.739, allocations: 0 / 0.854 GB, free: 40.36 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008141/1.74, allocations: 446.7 kB / 0.8544 GB, free: 39.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001848/1.742, allocations: 311.6 kB / 0.8547 GB, free: 39.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003223/1.745, allocations: 1.292 MB / 0.856 GB, free: 38.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000582/1.745, allocations: 1.011 MB / 0.857 GB, free: 37.26 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001345/1.747, allocations: 315.6 kB / 0.8573 GB, free: 36.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/1.747, allocations: 63.41 kB / 0.8573 GB, free: 36.89 MB / 442.7 MB Notification: Performance of SimCode: time 1.533e-06/1.747, allocations: 7.938 kB / 0.8573 GB, free: 36.88 MB / 442.7 MB Notification: Performance of Templates: time 0.03375/1.781, allocations: 20.17 MB / 0.877 GB, free: 16.86 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