Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009823/0.0009823, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009211/0.0009211, allocations: 139.8 kB / 24.97 MB, free: 9.309 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9853/0.9853, allocations: 173.3 MB / 201.5 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 268.1 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.983e-05/2.14e-05, allocations: 6.25 kB / 268.1 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1349/0.1349, allocations: 29.5 MB / 297.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0126/0.1475, allocations: 15.06 MB / 312.6 MB, free: 9.547 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001075/0.1485, allocations: 58.97 kB / 312.7 MB, free: 9.516 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.1496, allocations: 0.5881 MB / 313.3 MB, free: 9.203 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003453/0.153, allocations: 2.414 MB / 315.7 MB, free: 7.562 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005833/0.1589, allocations: 4.058 MB / 319.7 MB, free: 4.734 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002966/0.1618, allocations: 4.178 MB / 323.9 MB, free: 2.316 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001112/0.163, allocations: 1.07 MB / 325 MB, free: 1.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002031/0.165, allocations: 2.05 MB / 327 MB, free: 15.2 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001768/0.1668, allocations: 1.663 MB / 328.7 MB, free: 13.53 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003138/0.1671, allocations: 164 kB / 328.9 MB, free: 13.37 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00285/0.1699, allocations: 1.876 MB / 330.7 MB, free: 11.49 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004858/0.1704, allocations: 0.6816 MB / 331.4 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006318/0.171, allocations: 0.6353 MB / 332.1 MB, free: 10.17 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003681/0.1747, allocations: 3.225 MB / 335.3 MB, free: 6.938 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1747, allocations: 4 kB / 335.3 MB, free: 6.934 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1747, allocations: 0 / 335.3 MB, free: 6.934 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.1747, allocations: 4 kB / 335.3 MB, free: 6.93 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.0029/0.1776, allocations: 2.259 MB / 337.5 MB, free: 4.621 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.1777, allocations: 12.03 kB / 337.6 MB, free: 4.609 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004825/0.1782, allocations: 270.8 kB / 337.8 MB, free: 4.344 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.1793, allocations: 1.028 MB / 338.9 MB, free: 3.285 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.1794, allocations: 252.2 kB / 339.1 MB, free: 3.004 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.1796, allocations: 104 kB / 339.2 MB, free: 2.902 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.1811, allocations: 1.554 MB / 340.8 MB, free: 1.172 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.1811, allocations: 3.953 kB / 340.8 MB, free: 1.168 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.422e-05/0.1812, allocations: 43.97 kB / 340.8 MB, free: 1.125 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001095/0.1813, allocations: 113.9 kB / 340.9 MB, free: 1.012 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.1825, allocations: 0.7182 MB / 341.6 MB, free: 288 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005274/0.1877, allocations: 4.271 MB / 345.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008516/0.1886, allocations: 0.6123 MB / 346.5 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004349/0.189, allocations: 302.5 kB / 346.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002477/0.1915, allocations: 1.854 MB / 348.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.1915, allocations: 57.83 kB / 348.7 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003924/0.1919, allocations: 175.3 kB / 348.9 MB, free: 8.902 MB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 1.893e-06/0.1919, allocations: 0 / 348.9 MB, free: 8.902 MB / 298.7 MB Notification: Performance of matching and sorting (n=112): time 0.007738/0.1997, allocations: 3.379 MB / 352.3 MB, free: 5.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/0.1997, allocations: 141.5 kB / 352.4 MB, free: 5.332 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008043/0.2005, allocations: 0.9535 MB / 353.4 MB, free: 4.359 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.559e-05/0.2006, allocations: 49.7 kB / 353.4 MB, free: 4.305 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003402/0.2009, allocations: 0.6865 MB / 354.1 MB, free: 3.609 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002432/0.2012, allocations: 412.5 kB / 354.5 MB, free: 3.203 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003142/0.2015, allocations: 301.1 kB / 354.8 MB, free: 2.898 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2016, allocations: 480.7 kB / 355.3 MB, free: 2.426 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004782/0.2021, allocations: 279.5 kB / 355.5 MB, free: 2.148 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007341/0.2028, allocations: 0.8289 MB / 356.4 MB, free: 1.102 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.204, allocations: 1.05 MB / 357.4 MB, free: 15.87 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.204, allocations: 4 kB / 357.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001859/0.2059, allocations: 1.297 MB / 358.7 MB, free: 14.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.2059, allocations: 12.62 kB / 358.7 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.2059, allocations: 8 kB / 358.7 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002996/0.2089, allocations: 0.9445 MB / 359.7 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006252/0.2095, allocations: 299.5 kB / 360 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/0.2107, allocations: 1.171 MB / 361.1 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005229/0.2112, allocations: 55.97 kB / 361.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-05/0.2113, allocations: 71.97 kB / 361.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006377/0.2119, allocations: 414.7 kB / 361.7 MB, free: 11.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007607/0.2127, allocations: 0.8562 MB / 362.5 MB, free: 10.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001252/0.2139, allocations: 1.056 MB / 363.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.719e-06/0.2139, allocations: 0 / 363.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001879/0.2158, allocations: 1.269 MB / 364.9 MB, free: 7.949 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.2158, allocations: 8 kB / 364.9 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.2158, allocations: 12.56 kB / 364.9 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002543/0.2184, allocations: 0.8034 MB / 365.7 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006052/0.219, allocations: 307.5 kB / 366 MB, free: 6.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008919/0.2199, allocations: 1.107 MB / 367.1 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000524/0.2204, allocations: 59.97 kB / 367.1 MB, free: 5.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.002e-05/0.2205, allocations: 73.06 kB / 367.2 MB, free: 5.555 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0003212/0.2208, allocations: 360.1 kB / 367.6 MB, free: 5.195 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002126/0.221, allocations: 175.2 kB / 367.7 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001897/0.2229, allocations: 1.193 MB / 368.9 MB, free: 3.828 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.2229, allocations: 16 kB / 368.9 MB, free: 3.812 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2229, allocations: 0 / 368.9 MB, free: 3.812 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/0.2229, allocations: 7.969 kB / 369 MB, free: 3.805 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002786/0.2257, allocations: 2.125 MB / 371.1 MB, free: 1.637 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2257, allocations: 4 kB / 371.1 MB, free: 1.633 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004925/0.2262, allocations: 191.8 kB / 371.3 MB, free: 1.445 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001153/0.2274, allocations: 0.6079 MB / 371.9 MB, free: 0.832 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.356e-05/0.2274, allocations: 31.92 kB / 371.9 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/0.2285, allocations: 1.214 MB / 373.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.2285, allocations: 0 / 373.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001957/0.2304, allocations: 1.483 MB / 374.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003566/0.2308, allocations: 290.8 kB / 374.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.2309, allocations: 20 kB / 374.9 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000418/0.2313, allocations: 59.95 kB / 375 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.2315, allocations: 93.12 kB / 375.1 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.116e-05/0.2315, allocations: 51.97 kB / 375.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004834/0.232, allocations: 0.5656 MB / 375.7 MB, free: 12.97 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.232, allocations: 0 / 375.7 MB, free: 12.97 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001923/0.2339, allocations: 1.165 MB / 376.8 MB, free: 11.8 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001261/0.2352, allocations: 0.9202 MB / 377.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002767/0.238, allocations: 1.644 MB / 379.4 MB, free: 9.234 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.238, allocations: 4.188 kB / 379.4 MB, free: 9.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000779/0.2387, allocations: 0.5102 MB / 379.9 MB, free: 8.715 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/0.2402, allocations: 0.6278 MB / 380.5 MB, free: 8.109 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003316/0.2435, allocations: 2.509 MB / 383.1 MB, free: 5.57 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.2437, allocations: 349.1 kB / 383.4 MB, free: 5.207 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009722/0.2447, allocations: 0.5067 MB / 383.9 MB, free: 4.695 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002316/0.2449, allocations: 128.4 kB / 384 MB, free: 4.57 MB / 330.7 MB Notification: Performance of SimCode: time 8.22e-07/0.2449, allocations: 0 / 384 MB, free: 4.57 MB / 330.7 MB Notification: Performance of Templates: time 0.03838/0.2833, allocations: 41.51 MB / 425.5 MB, free: 11.48 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.9357445288915187]