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.002488/0.002488, allocations: 103.5 kB / 20.97 MB, free: 3.449 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.002759/0.002759, allocations: 156.8 kB / 24.27 MB, free: 156 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.6/1.6, allocations: 177 MB / 204.4 MB, free: 5.625 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.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.313e-06/1.313e-06, allocations: 0 / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.626e-05/2.757e-05, allocations: 2.312 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1538/0.1538, allocations: 29.59 MB / 301.8 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01786/0.1717, allocations: 15.06 MB / 316.8 MB, free: 3.914 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001924/0.1736, allocations: 59.09 kB / 316.9 MB, free: 3.883 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001533/0.1752, allocations: 0.5851 MB / 317.5 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005652/0.1808, allocations: 2.438 MB / 319.9 MB, free: 1.504 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00962/0.1904, allocations: 4.013 MB / 323.9 MB, free: 14.54 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006922/0.1973, allocations: 4.173 MB / 328.1 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002018/0.1994, allocations: 1.056 MB / 329.2 MB, free: 9.277 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003825/0.2032, allocations: 2.061 MB / 331.2 MB, free: 7.211 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003029/0.2062, allocations: 1.67 MB / 332.9 MB, free: 5.539 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004015/0.2066, allocations: 160 kB / 333.1 MB, free: 5.383 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005135/0.2118, allocations: 1.891 MB / 334.9 MB, free: 3.488 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009684/0.2127, allocations: 0.6738 MB / 335.6 MB, free: 2.812 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.2139, allocations: 0.6431 MB / 336.3 MB, free: 2.168 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007132/0.221, allocations: 3.977 MB / 340.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.221, allocations: 4 kB / 340.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.221, allocations: 4 kB / 340.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.97e-05/0.2211, allocations: 0 / 340.2 MB, free: 14.17 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.005789/0.2268, allocations: 2.349 MB / 342.6 MB, free: 11.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.2269, allocations: 15.98 kB / 342.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007676/0.2277, allocations: 290.6 kB / 342.9 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002142/0.2298, allocations: 1.036 MB / 343.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002622/0.2301, allocations: 248.2 kB / 344.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/0.2303, allocations: 108 kB / 344.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003029/0.2333, allocations: 1.784 MB / 346.1 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.387e-05/0.2334, allocations: 4.562 kB / 346.1 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001561/0.2335, allocations: 47.97 kB / 346.1 MB, free: 8.016 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001814/0.2337, allocations: 113.9 kB / 346.2 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002449/0.2361, allocations: 1.07 MB / 347.3 MB, free: 6.824 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01174/0.2479, allocations: 4.999 MB / 352.3 MB, free: 1.754 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/0.2496, allocations: 0.8763 MB / 353.2 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009683/0.2506, allocations: 470.4 kB / 353.6 MB, free: 408 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005403/0.256, allocations: 2.088 MB / 355.7 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.79e-05/0.2561, allocations: 54.38 kB / 355.8 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009571/0.257, allocations: 179.2 kB / 355.9 MB, free: 14.05 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 2.795e-06/0.257, allocations: 0 / 355.9 MB, free: 14.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=112): time 0.01691/0.2739, allocations: 4.165 MB / 360.1 MB, free: 9.859 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.2741, allocations: 141.5 kB / 360.2 MB, free: 9.691 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001895/0.276, allocations: 1.262 MB / 361.5 MB, free: 8.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001263/0.2761, allocations: 53.64 kB / 361.6 MB, free: 8.352 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007123/0.2768, allocations: 0.7373 MB / 362.3 MB, free: 7.605 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004947/0.2773, allocations: 448.5 kB / 362.7 MB, free: 7.164 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007602/0.278, allocations: 337.1 kB / 363.1 MB, free: 6.824 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002379/0.2783, allocations: 484.7 kB / 363.5 MB, free: 6.348 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.2793, allocations: 479.4 kB / 364 MB, free: 5.875 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001627/0.281, allocations: 1.059 MB / 365.1 MB, free: 4.602 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/0.2836, allocations: 1.537 MB / 366.6 MB, free: 2.883 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.661e-05/0.2836, allocations: 4 kB / 366.6 MB, free: 2.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003903/0.2875, allocations: 1.742 MB / 368.3 MB, free: 1.125 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.2876, allocations: 8 kB / 368.4 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/0.2876, allocations: 8.031 kB / 368.4 MB, free: 1.109 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006744/0.2943, allocations: 1.057 MB / 369.4 MB, free: 48 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001372/0.2957, allocations: 299.5 kB / 369.7 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002571/0.2983, allocations: 1.429 MB / 371.1 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.2995, allocations: 63.97 kB / 371.2 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002085/0.2997, allocations: 67.97 kB / 371.3 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001478/0.3012, allocations: 0.6822 MB / 372 MB, free: 13.47 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001695/0.3029, allocations: 1.079 MB / 373 MB, free: 12.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002719/0.3056, allocations: 1.498 MB / 374.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.798e-06/0.3056, allocations: 4 kB / 374.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003908/0.3095, allocations: 1.699 MB / 376.2 MB, free: 8.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.3095, allocations: 8 kB / 376.2 MB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.3096, allocations: 16.05 kB / 376.3 MB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006082/0.3156, allocations: 0.9051 MB / 377.2 MB, free: 7.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.317, allocations: 303.5 kB / 377.5 MB, free: 7.543 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002043/0.319, allocations: 1.37 MB / 378.8 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.3202, allocations: 59.97 kB / 378.9 MB, free: 6.082 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001637/0.3204, allocations: 71.97 kB / 379 MB, free: 6.012 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.0005316/0.3209, allocations: 359.6 kB / 379.3 MB, free: 5.652 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003671/0.3213, allocations: 171.1 kB / 379.5 MB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003906/0.3252, allocations: 1.572 MB / 381 MB, free: 3.922 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.805e-05/0.3252, allocations: 15.94 kB / 381.1 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.3252, allocations: 0 / 381.1 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/0.3252, allocations: 7.969 kB / 381.1 MB, free: 3.898 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005824/0.331, allocations: 2.815 MB / 383.9 MB, free: 1.035 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.331, allocations: 0 / 383.9 MB, free: 1.035 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000978/0.332, allocations: 187.8 kB / 384.1 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002542/0.3346, allocations: 0.7058 MB / 384.8 MB, free: 144 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/0.3347, allocations: 35.91 kB / 384.8 MB, free: 108 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002303/0.337, allocations: 1.488 MB / 386.3 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.337, allocations: 0 / 386.3 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004354/0.3413, allocations: 2.159 MB / 388.5 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009082/0.3422, allocations: 286.9 kB / 388.7 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002281/0.3425, allocations: 24 kB / 388.8 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008897/0.3434, allocations: 44.03 kB / 388.8 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/0.3436, allocations: 109 kB / 388.9 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/0.3438, allocations: 55.97 kB / 389 MB, free: 11.89 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001166/0.3449, allocations: 0.7257 MB / 389.7 MB, free: 11.15 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3449, allocations: 0 / 389.7 MB, free: 11.15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00312/0.348, allocations: 1.165 MB / 390.9 MB, free: 9.984 MB / 346.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.002103/0.3501, allocations: 0.9182 MB / 391.8 MB, free: 9.055 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006287/0.3564, allocations: 2.249 MB / 394 MB, free: 6.812 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.727e-06/0.3564, allocations: 3.938 kB / 394 MB, free: 6.809 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001875/0.3583, allocations: 0.7015 MB / 394.7 MB, free: 6.105 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0032/0.3615, allocations: 0.6371 MB / 395.4 MB, free: 5.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005703/0.3672, allocations: 2.71 MB / 398.1 MB, free: 2.758 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008867/0.3681, allocations: 0.6778 MB / 398.8 MB, free: 2.043 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001786/0.3699, allocations: 0.5101 MB / 399.3 MB, free: 1.539 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003786/0.3703, allocations: 120.5 kB / 399.4 MB, free: 1.422 MB / 346.7 MB Notification: Performance of SimCode: time 1.583e-06/0.3703, allocations: 0 / 399.4 MB, free: 1.422 MB / 346.7 MB Notification: Performance of Templates: time 0.1847/0.555, allocations: 41.33 MB / 440.7 MB, free: 127.9 MB / 378.7 MB " [Timeout remaining time 659] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.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: 6.688869238016196]