Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.001328/0.001328, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001539/0.001539, allocations: 163.1 kB / 24.99 MB, free: 8.801 MB / 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 0.9766/0.9766, allocations: 177 MB / 205.2 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] 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.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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 273 MB, free: 1.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.728e-05/1.886e-05, allocations: 5.125 kB / 273 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1467/0.1468, allocations: 29.68 MB / 302.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01295/0.1597, allocations: 15.05 MB / 317.7 MB, free: 3.762 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.1608, allocations: 58.62 kB / 317.8 MB, free: 3.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.1618, allocations: 0.5844 MB / 318.4 MB, free: 3.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00352/0.1654, allocations: 2.43 MB / 320.8 MB, free: 1.363 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006425/0.1718, allocations: 4.023 MB / 324.8 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004097/0.1759, allocations: 4.165 MB / 329 MB, free: 10.23 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001446/0.1773, allocations: 1.058 MB / 330 MB, free: 9.148 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002603/0.1799, allocations: 2.069 MB / 332.1 MB, free: 7.074 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002059/0.182, allocations: 1.667 MB / 333.8 MB, free: 5.406 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007007/0.1827, allocations: 160 kB / 333.9 MB, free: 5.25 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003158/0.1858, allocations: 1.891 MB / 335.8 MB, free: 3.355 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000478/0.1863, allocations: 0.6738 MB / 336.5 MB, free: 2.68 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006477/0.187, allocations: 0.6431 MB / 337.1 MB, free: 2.035 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003438/0.1904, allocations: 3.252 MB / 340.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1904, allocations: 8 kB / 340.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1904, allocations: 0 / 340.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.708e-05/0.1904, allocations: 0 / 340.4 MB, free: 14.77 MB / 298.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.002941/0.1934, allocations: 2.259 MB / 342.7 MB, free: 12.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1934, allocations: 15.98 kB / 342.7 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004676/0.1939, allocations: 286.6 kB / 342.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.1949, allocations: 1.02 MB / 344 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/0.1951, allocations: 252.2 kB / 344.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.1952, allocations: 104 kB / 344.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.1967, allocations: 1.55 MB / 345.9 MB, free: 9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.1967, allocations: 0 / 345.9 MB, free: 9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.791e-05/0.1968, allocations: 43.97 kB / 345.9 MB, free: 8.957 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000114/0.197, allocations: 113.9 kB / 346 MB, free: 8.844 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.1981, allocations: 0.7181 MB / 346.7 MB, free: 8.113 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005185/0.2033, allocations: 4.263 MB / 351 MB, free: 3.777 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008527/0.2042, allocations: 0.5961 MB / 351.6 MB, free: 3.168 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004512/0.2046, allocations: 309 kB / 351.9 MB, free: 2.863 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002293/0.2069, allocations: 1.846 MB / 353.7 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.207, allocations: 50.39 kB / 353.8 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003846/0.2073, allocations: 179.3 kB / 354 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 2.084e-06/0.2073, allocations: 0 / 354 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of matching and sorting (n=112): time 0.007715/0.2151, allocations: 3.368 MB / 357.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.167e-05/0.2151, allocations: 145.5 kB / 357.5 MB, free: 13.19 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007596/0.2159, allocations: 0.9613 MB / 358.4 MB, free: 12.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.213e-05/0.216, allocations: 45.7 kB / 358.5 MB, free: 12.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003076/0.2163, allocations: 0.6827 MB / 359.2 MB, free: 11.47 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002189/0.2165, allocations: 408.6 kB / 359.6 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002904/0.2168, allocations: 301.1 kB / 359.9 MB, free: 10.76 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.853e-05/0.2169, allocations: 484.7 kB / 360.3 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000471/0.2173, allocations: 283.5 kB / 360.6 MB, free: 10 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007059/0.218, allocations: 0.8289 MB / 361.4 MB, free: 8.961 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.2193, allocations: 1.052 MB / 362.5 MB, free: 7.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.2194, allocations: 4 kB / 362.5 MB, free: 7.727 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001789/0.2211, allocations: 1.289 MB / 363.8 MB, free: 6.426 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.2212, allocations: 19.12 kB / 363.8 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.2212, allocations: 8 kB / 363.8 MB, free: 6.402 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002884/0.2241, allocations: 0.9481 MB / 364.8 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000593/0.2246, allocations: 295.6 kB / 365 MB, free: 5.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.2257, allocations: 1.175 MB / 366.2 MB, free: 3.949 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004685/0.2262, allocations: 55.98 kB / 366.3 MB, free: 3.895 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.99e-05/0.2263, allocations: 71.95 kB / 366.3 MB, free: 3.824 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006169/0.2269, allocations: 414.7 kB / 366.8 MB, free: 3.414 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006737/0.2276, allocations: 0.8445 MB / 367.6 MB, free: 2.352 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001103/0.2287, allocations: 1.06 MB / 368.7 MB, free: 1.098 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.44e-06/0.2287, allocations: 4.625 kB / 368.7 MB, free: 1.094 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001854/0.2305, allocations: 1.273 MB / 369.9 MB, free: 15.81 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.2305, allocations: 12 kB / 369.9 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2306, allocations: 8 kB / 370 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002499/0.2331, allocations: 0.8031 MB / 370.8 MB, free: 14.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005812/0.2336, allocations: 311.5 kB / 371.1 MB, free: 14.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008498/0.2345, allocations: 1.097 MB / 372.2 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004717/0.235, allocations: 59.97 kB / 372.2 MB, free: 13.49 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.501e-05/0.235, allocations: 71.95 kB / 372.3 MB, free: 13.42 MB / 330.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.0002629/0.2353, allocations: 363.6 kB / 372.6 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001982/0.2355, allocations: 171.2 kB / 372.8 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001829/0.2373, allocations: 1.196 MB / 374 MB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.2373, allocations: 12 kB / 374 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2373, allocations: 0 / 374 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.2373, allocations: 7.969 kB / 374 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00283/0.2402, allocations: 2.132 MB / 376.2 MB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.2402, allocations: 0 / 376.2 MB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004864/0.2407, allocations: 187.8 kB / 376.3 MB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001288/0.242, allocations: 0.6041 MB / 376.9 MB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.616e-05/0.242, allocations: 35.92 kB / 377 MB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009905/0.243, allocations: 1.211 MB / 378.2 MB, free: 7.426 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.243, allocations: 0 / 378.2 MB, free: 7.426 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.245, allocations: 1.479 MB / 379.7 MB, free: 5.926 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000342/0.2453, allocations: 286.9 kB / 380 MB, free: 5.645 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.2454, allocations: 24 kB / 380 MB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003989/0.2458, allocations: 43.97 kB / 380 MB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.246, allocations: 93.12 kB / 380.1 MB, free: 5.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.751e-05/0.246, allocations: 56.03 kB / 380.2 MB, free: 5.434 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004659/0.2465, allocations: 0.5694 MB / 380.7 MB, free: 4.855 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2465, allocations: 0 / 380.7 MB, free: 4.855 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001863/0.2484, allocations: 1.173 MB / 381.9 MB, free: 3.68 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.001207/0.2496, allocations: 0.9204 MB / 382.8 MB, free: 2.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002955/0.2525, allocations: 1.644 MB / 384.5 MB, free: 1.109 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.2525, allocations: 0 / 384.5 MB, free: 1.109 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008015/0.2533, allocations: 0.5155 MB / 385 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001469/0.2548, allocations: 0.6407 MB / 385.6 MB, free: 15.99 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003226/0.258, allocations: 2.51 MB / 388.1 MB, free: 13.44 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002236/0.2582, allocations: 345.1 kB / 388.5 MB, free: 13.08 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009539/0.2592, allocations: 0.5052 MB / 389 MB, free: 12.58 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.2594, allocations: 124.5 kB / 389.1 MB, free: 12.46 MB / 346.7 MB Notification: Performance of SimCode: time 8.62e-07/0.2594, allocations: 3.938 kB / 389.1 MB, free: 12.46 MB / 346.7 MB Notification: Performance of Templates: time 0.0393/0.2987, allocations: 41.36 MB / 430.5 MB, free: 3.457 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.963764396030456]