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/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.001886/0.001886, allocations: 104 kB / 21.18 MB, free: 0.6719 MB / 14.72 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.002475/0.002475, allocations: 194.4 kB / 24.46 MB, free: 4.016 MB / 14.72 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 1.469/1.469, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,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=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 59.84 kB / 371.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2685, allocations: 52.18 MB / 423.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01847/0.2869, allocations: 14.56 MB / 438.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01016/0.2971, allocations: 6.277 MB / 444.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007763/0.2979, allocations: 31.69 kB / 444.7 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.2989, allocations: 318 kB / 445 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002943/0.3018, allocations: 1.108 MB / 446.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004605/0.3064, allocations: 1.832 MB / 447.9 MB, free: 6.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003178/0.3096, allocations: 2.218 MB / 450.1 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000971/0.3106, allocations: 0.5093 MB / 450.7 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001532/0.3121, allocations: 0.8333 MB / 451.5 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001372/0.3135, allocations: 0.8369 MB / 452.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.3137, allocations: 80 kB / 452.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002226/0.3159, allocations: 1.01 MB / 453.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003899/0.3163, allocations: 319 kB / 453.7 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005191/0.3168, allocations: 386.4 kB / 454.1 MB, free: 124 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002893/0.3197, allocations: 1.814 MB / 455.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3197, allocations: 0 / 455.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3197, allocations: 0 / 455.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.3197, allocations: 0 / 455.9 MB, free: 14.3 MB / 366.1 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.00286/0.3226, allocations: 1.22 MB / 457.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.3226, allocations: 12.03 kB / 457.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000345/0.323, allocations: 96.41 kB / 457.2 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001616/0.3246, allocations: 0.5712 MB / 457.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/0.3248, allocations: 156.1 kB / 458 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.325, allocations: 59.97 kB / 458 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002593/0.3276, allocations: 1.172 MB / 459.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.042e-05/0.3276, allocations: 4 kB / 459.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/0.3277, allocations: 23.92 kB / 459.2 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001381/0.3278, allocations: 57.27 kB / 459.3 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002388/0.3302, allocations: 0.8327 MB / 460.1 MB, free: 9.926 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008885/0.3391, allocations: 2.645 MB / 462.8 MB, free: 7.227 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.3408, allocations: 0.623 MB / 463.4 MB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008925/0.3417, allocations: 346.2 kB / 463.7 MB, free: 6.254 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004283/0.346, allocations: 1.193 MB / 464.9 MB, free: 5.039 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.504e-05/0.346, allocations: 43.06 kB / 465 MB, free: 4.988 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 4.499e-06/0.346, allocations: 0 / 465 MB, free: 4.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.01055/0.3566, allocations: 2.67 MB / 467.6 MB, free: 2.289 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.726e-05/0.3567, allocations: 93.7 kB / 467.7 MB, free: 2.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001131/0.3578, allocations: 0.5535 MB / 468.3 MB, free: 1.617 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001205/0.3579, allocations: 37.7 kB / 468.3 MB, free: 1.574 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004029/0.3583, allocations: 364.7 kB / 468.7 MB, free: 1.215 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003255/0.3586, allocations: 230 kB / 468.9 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003967/0.359, allocations: 150.6 kB / 469 MB, free: 0.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000263/0.3593, allocations: 378.7 kB / 469.4 MB, free: 464 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009872/0.3603, allocations: 376.6 kB / 469.8 MB, free: 84 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.3616, allocations: 0.5404 MB / 470.3 MB, free: 15.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002093/0.3636, allocations: 0.868 MB / 471.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3636, allocations: 0 / 471.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003143/0.3668, allocations: 1.149 MB / 472.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.3668, allocations: 8 kB / 472.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.3668, allocations: 4 kB / 472.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001995/0.3688, allocations: 452.9 kB / 472.8 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.3699, allocations: 163.7 kB / 472.9 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0019/0.3718, allocations: 1.021 MB / 474 MB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009942/0.3728, allocations: 32.03 kB / 474 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.373, allocations: 31.98 kB / 474 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001179/0.3741, allocations: 0.5331 MB / 474.6 MB, free: 11.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001187/0.3753, allocations: 0.5334 MB / 475.1 MB, free: 10.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002277/0.3776, allocations: 0.857 MB / 475.9 MB, free: 9.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.681e-06/0.3776, allocations: 0 / 475.9 MB, free: 9.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.00315/0.3808, allocations: 1.099 MB / 477 MB, free: 8.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.3808, allocations: 8 kB / 477.1 MB, free: 8.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3808, allocations: 4 kB / 477.1 MB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.3818, allocations: 308.8 kB / 477.4 MB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009911/0.3828, allocations: 171.7 kB / 477.5 MB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001559/0.3844, allocations: 0.9035 MB / 478.4 MB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008476/0.3852, allocations: 32.03 kB / 478.5 MB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.3854, allocations: 35.98 kB / 478.5 MB, free: 7.012 MB / 382.1 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.0003968/0.3858, allocations: 228 kB / 478.7 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002439/0.386, allocations: 71.58 kB / 478.8 MB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003055/0.3891, allocations: 1.075 MB / 479.9 MB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/0.3891, allocations: 11.94 kB / 479.9 MB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3891, allocations: 0 / 479.9 MB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/0.3891, allocations: 3.984 kB / 479.9 MB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004932/0.394, allocations: 1.782 MB / 481.7 MB, free: 3.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.394, allocations: 0 / 481.7 MB, free: 3.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000915/0.395, allocations: 127.8 kB / 481.8 MB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00182/0.3968, allocations: 448.5 kB / 482.2 MB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.161e-05/0.3969, allocations: 15.94 kB / 482.2 MB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001486/0.3983, allocations: 1.032 MB / 483.3 MB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3983, allocations: 4.031 kB / 483.3 MB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002748/0.4011, allocations: 1.581 MB / 484.9 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005186/0.4016, allocations: 155.5 kB / 485 MB, free: 396 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/0.4017, allocations: 16 kB / 485 MB, free: 380 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005589/0.4023, allocations: 35.97 kB / 485.1 MB, free: 344 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.4024, allocations: 60.55 kB / 485.1 MB, free: 284 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.098e-05/0.4025, allocations: 27.98 kB / 485.1 MB, free: 256 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005374/0.4031, allocations: 382.8 kB / 485.5 MB, free: 15.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4031, allocations: 0 / 485.5 MB, free: 15.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001579/0.4046, allocations: 0.5809 MB / 486.1 MB, free: 15.3 MB / 398.1 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.001097/0.4057, allocations: 497.8 kB / 486.6 MB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003053/0.4088, allocations: 1.327 MB / 487.9 MB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.4088, allocations: 4.062 kB / 487.9 MB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009675/0.4098, allocations: 435.5 kB / 488.3 MB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001686/0.4114, allocations: 360.6 kB / 488.7 MB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003587/0.415, allocations: 1.788 MB / 490.5 MB, free: 10.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004408/0.4155, allocations: 404.4 kB / 490.9 MB, free: 10.47 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002865/0.4158, allocations: 79.41 kB / 491 MB, free: 10.39 MB / 398.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4158, allocations: 0 / 491 MB, free: 10.39 MB / 398.1 MB Notification: Performance of Templates: time 0.02816/0.4439, allocations: 18.88 MB / 0.4979 GB, free: 7.59 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 10.038519009016454]