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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001851/0.001851, allocations: 95.59 kB / 20.97 MB, free: 3.305 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001914/0.001914, allocations: 156.9 kB / 24.27 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.574/1.574, allocations: 177 MB / 204.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,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=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.654e-06/1.654e-06, allocations: 0 / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.771e-05/2.937e-05, allocations: 3.719 kB / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.03209/0.03212, allocations: 16.31 MB / 288.5 MB, free: 1.457 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1455/0.1776, allocations: 6.892 MB / 295.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007785/0.1784, allocations: 31.84 kB / 295.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.1795, allocations: 329.8 kB / 295.7 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002988/0.1825, allocations: 1.149 MB / 296.9 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005145/0.1876, allocations: 1.888 MB / 298.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002814/0.1904, allocations: 2.168 MB / 300.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001007/0.1914, allocations: 0.5331 MB / 301.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002486/0.1939, allocations: 1.068 MB / 302.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001551/0.1955, allocations: 0.7812 MB / 303.3 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000176/0.1956, allocations: 77.62 kB / 303.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002369/0.198, allocations: 1.03 MB / 304.4 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003326/0.1983, allocations: 340 kB / 304.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004537/0.1988, allocations: 334.7 kB / 305.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002582/0.2014, allocations: 2.004 MB / 307.1 MB, free: 10.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2014, allocations: 7.562 kB / 307.1 MB, free: 10.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2014, allocations: 0 / 307.1 MB, free: 10.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.2014, allocations: 0 / 307.1 MB, free: 10.91 MB / 266.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.002458/0.2038, allocations: 1.368 MB / 308.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.2039, allocations: 13.61 kB / 308.5 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004216/0.2043, allocations: 160.1 kB / 308.6 MB, free: 9.789 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009086/0.2052, allocations: 0.58 MB / 309.2 MB, free: 9.379 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.48e-05/0.2053, allocations: 166.5 kB / 309.4 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.2054, allocations: 54.25 kB / 309.4 MB, free: 9.215 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.2065, allocations: 0.98 MB / 310.4 MB, free: 8.449 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.2066, allocations: 3.938 kB / 310.4 MB, free: 8.445 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.39e-05/0.2066, allocations: 28.53 kB / 310.4 MB, free: 8.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.696e-05/0.2067, allocations: 51.02 kB / 310.5 MB, free: 8.414 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009342/0.2076, allocations: 0.5213 MB / 311 MB, free: 8.207 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004399/0.212, allocations: 2.685 MB / 313.7 MB, free: 6.266 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007539/0.2128, allocations: 497.1 kB / 314.2 MB, free: 6.023 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003698/0.2132, allocations: 226.2 kB / 314.4 MB, free: 5.922 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002085/0.2152, allocations: 1.095 MB / 315.5 MB, free: 4.984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.2153, allocations: 41.89 kB / 315.5 MB, free: 4.934 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.084e-06/0.2153, allocations: 0 / 315.5 MB, free: 4.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.005698/0.221, allocations: 2.082 MB / 317.6 MB, free: 2.812 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.221, allocations: 85.77 kB / 317.7 MB, free: 2.711 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005791/0.2216, allocations: 0.6782 MB / 318.4 MB, free: 2.016 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.959e-05/0.2216, allocations: 37.7 kB / 318.4 MB, free: 1.973 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/0.2218, allocations: 435.3 kB / 318.9 MB, free: 1.543 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.2219, allocations: 263.5 kB / 319.1 MB, free: 1.289 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002462/0.2222, allocations: 176.3 kB / 319.3 MB, free: 1.109 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.2223, allocations: 0.5938 MB / 319.9 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004157/0.2227, allocations: 255.5 kB / 320.1 MB, free: 256 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007091/0.2234, allocations: 0.514 MB / 320.6 MB, free: 15.64 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.2248, allocations: 0.7448 MB / 321.4 MB, free: 14.82 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.2248, allocations: 4 kB / 321.4 MB, free: 14.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002072/0.2269, allocations: 0.9066 MB / 322.3 MB, free: 13.9 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.2269, allocations: 12.09 kB / 322.3 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.2269, allocations: 5.125 kB / 322.3 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/0.2282, allocations: 352.9 kB / 322.7 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000702/0.2289, allocations: 155.8 kB / 322.8 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.2303, allocations: 1.074 MB / 323.9 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000586/0.2309, allocations: 31.98 kB / 323.9 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.729e-05/0.231, allocations: 31.98 kB / 323.9 MB, free: 12.22 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000831/0.2319, allocations: 440.7 kB / 324.4 MB, free: 11.78 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008321/0.2327, allocations: 0.5114 MB / 324.9 MB, free: 11.18 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001354/0.234, allocations: 0.7367 MB / 325.6 MB, free: 10.36 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.951e-06/0.234, allocations: 4 kB / 325.6 MB, free: 10.36 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001974/0.236, allocations: 0.8865 MB / 326.5 MB, free: 9.457 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.236, allocations: 8 kB / 326.5 MB, free: 9.449 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.236, allocations: 4.562 kB / 326.5 MB, free: 9.445 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000728/0.2368, allocations: 239.6 kB / 326.8 MB, free: 9.207 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007491/0.2375, allocations: 175.3 kB / 326.9 MB, free: 9.039 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.2389, allocations: 1.02 MB / 328 MB, free: 7.988 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000639/0.2395, allocations: 31.98 kB / 328 MB, free: 7.957 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.444e-05/0.2396, allocations: 31.98 kB / 328 MB, free: 7.926 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (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 (84): * Single equations (assignments): 83 * 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003964/0.24, allocations: 320.3 kB / 328.3 MB, free: 7.605 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002197/0.2402, allocations: 91.58 kB / 328.4 MB, free: 7.516 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/0.2422, allocations: 0.8153 MB / 329.2 MB, free: 6.699 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.2422, allocations: 11.94 kB / 329.2 MB, free: 6.688 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2422, allocations: 0 / 329.2 MB, free: 6.688 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.2422, allocations: 7.984 kB / 329.3 MB, free: 6.68 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003381/0.2456, allocations: 1.58 MB / 330.8 MB, free: 5.062 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2456, allocations: 0 / 330.8 MB, free: 5.062 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006189/0.2462, allocations: 119.9 kB / 330.9 MB, free: 4.945 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/0.2474, allocations: 348.4 kB / 331.3 MB, free: 4.602 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.224e-05/0.2474, allocations: 19.92 kB / 331.3 MB, free: 4.582 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001311/0.2488, allocations: 1.076 MB / 332.4 MB, free: 3.477 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2488, allocations: 0 / 332.4 MB, free: 3.477 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002406/0.2512, allocations: 1.228 MB / 333.6 MB, free: 2.227 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004735/0.2516, allocations: 151.5 kB / 333.8 MB, free: 2.078 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.2518, allocations: 15.98 kB / 333.8 MB, free: 2.062 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004949/0.2523, allocations: 27.98 kB / 333.8 MB, free: 2.035 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.2524, allocations: 56.55 kB / 333.9 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.477e-05/0.2525, allocations: 23.98 kB / 333.9 MB, free: 1.957 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006357/0.2531, allocations: 438.7 kB / 334.3 MB, free: 1.531 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2531, allocations: 4 kB / 334.3 MB, free: 1.527 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001773/0.2549, allocations: 0.5849 MB / 334.9 MB, free: 0.9414 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked 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 (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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001161/0.2561, allocations: 0.5125 MB / 335.4 MB, free: 456 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003021/0.2591, allocations: 1.132 MB / 336.5 MB, free: 15.31 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.2591, allocations: 4 kB / 336.5 MB, free: 15.31 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.2601, allocations: 380.3 kB / 336.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.2619, allocations: 388.4 kB / 337.3 MB, free: 14.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.2655, allocations: 1.505 MB / 338.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/0.266, allocations: 388.4 kB / 339.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009301/0.2669, allocations: 277.7 kB / 339.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.2671, allocations: 68.48 kB / 339.5 MB, free: 12.31 MB / 298.7 MB Notification: Performance of SimCode: time 1.503e-06/0.2671, allocations: 0 / 339.5 MB, free: 12.31 MB / 298.7 MB Notification: Performance of Templates: time 0.04097/0.3081, allocations: 22.05 MB / 361.6 MB, free: 6.551 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.48990770499222]