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.001248/0.001248, allocations: 112.2 kB / 19.04 MB, free: 3.254 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.001264/0.001264, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 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.399/1.399, allocations: 225.6 MB / 250.8 MB, free: 13.36 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.001501/0.001501, allocations: 51.91 kB / 368.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.254, allocations: 52.15 MB / 420.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02054/0.2745, allocations: 16.09 MB / 436.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01115/0.2857, allocations: 6.948 MB / 443.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008295/0.2865, allocations: 23.88 kB / 443.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.2876, allocations: 337.9 kB / 444.2 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002992/0.2906, allocations: 1.089 MB / 445.3 MB, free: 6.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004726/0.2953, allocations: 1.801 MB / 447.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00317/0.2985, allocations: 2.156 MB / 449.3 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001242/0.2998, allocations: 0.5021 MB / 449.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001801/0.3016, allocations: 0.8176 MB / 450.6 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001675/0.3032, allocations: 0.8526 MB / 451.5 MB, free: 416 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002872/0.3035, allocations: 80 kB / 451.5 MB, free: 336 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002878/0.3064, allocations: 1.225 MB / 452.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005614/0.307, allocations: 323 kB / 453.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009002/0.3079, allocations: 473.8 kB / 453.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003568/0.3114, allocations: 1.838 MB / 455.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3114, allocations: 4 kB / 455.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3114, allocations: 0 / 455.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.74e-05/0.3115, allocations: 0 / 455.4 MB, free: 12.47 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.003487/0.315, allocations: 1.299 MB / 456.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.315, allocations: 8.031 kB / 456.7 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00042/0.3154, allocations: 100.4 kB / 456.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.3166, allocations: 0.6407 MB / 457.4 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.3168, allocations: 100.7 kB / 457.5 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/0.3169, allocations: 55.98 kB / 457.6 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.3186, allocations: 0.8962 MB / 458.5 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.293e-05/0.3186, allocations: 0 / 458.5 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.029e-05/0.3187, allocations: 31.97 kB / 458.5 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/0.3188, allocations: 53.27 kB / 458.6 MB, free: 9.164 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.3204, allocations: 0.8405 MB / 459.4 MB, free: 8.324 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.006331/0.3267, allocations: 3.459 MB / 462.9 MB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.3278, allocations: 0.6297 MB / 463.5 MB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005733/0.3284, allocations: 338.3 kB / 463.8 MB, free: 3.703 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003214/0.3316, allocations: 2.043 MB / 465.9 MB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.252e-05/0.3317, allocations: 43.06 kB / 465.9 MB, free: 1.414 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.344e-06/0.3317, allocations: 0 / 465.9 MB, free: 1.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007632/0.3393, allocations: 2.841 MB / 468.8 MB, free: 14.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.556e-05/0.3394, allocations: 93.66 kB / 468.8 MB, free: 14.4 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.3404, allocations: 0.6799 MB / 469.5 MB, free: 13.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.273e-05/0.3405, allocations: 41.64 kB / 469.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003049/0.3408, allocations: 341 kB / 469.9 MB, free: 13.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002366/0.341, allocations: 238 kB / 470.1 MB, free: 13.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002974/0.3413, allocations: 154.6 kB / 470.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002127/0.3415, allocations: 382.8 kB / 470.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006737/0.3422, allocations: 380.6 kB / 471 MB, free: 12.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008285/0.343, allocations: 0.5152 MB / 471.5 MB, free: 11.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.3445, allocations: 0.8599 MB / 472.4 MB, free: 10.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.3445, allocations: 4 kB / 472.4 MB, free: 10.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002213/0.3467, allocations: 1.157 MB / 473.6 MB, free: 9.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.3467, allocations: 8 kB / 473.6 MB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.3467, allocations: 4 kB / 473.6 MB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001375/0.3481, allocations: 464.8 kB / 474 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006748/0.3488, allocations: 151.8 kB / 474.2 MB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.3501, allocations: 1.024 MB / 475.2 MB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006139/0.3507, allocations: 32.02 kB / 475.2 MB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.687e-05/0.3508, allocations: 31.98 kB / 475.3 MB, free: 7.781 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008944/0.3517, allocations: 0.5292 MB / 475.8 MB, free: 7.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007754/0.3525, allocations: 0.516 MB / 476.3 MB, free: 6.668 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00137/0.3538, allocations: 0.8451 MB / 477.2 MB, free: 5.762 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.651e-06/0.3538, allocations: 3.938 kB / 477.2 MB, free: 5.758 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002082/0.3559, allocations: 1.102 MB / 478.3 MB, free: 4.645 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.3559, allocations: 8 kB / 478.3 MB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3559, allocations: 4 kB / 478.3 MB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007495/0.3567, allocations: 313.1 kB / 478.6 MB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006825/0.3574, allocations: 163.8 kB / 478.7 MB, free: 4.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001132/0.3585, allocations: 0.9151 MB / 479.7 MB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005676/0.3591, allocations: 36.02 kB / 479.7 MB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-05/0.3592, allocations: 32 kB / 479.7 MB, free: 3.156 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.0002584/0.3594, allocations: 236 kB / 479.9 MB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.3596, allocations: 79.53 kB / 480 MB, free: 2.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002149/0.3617, allocations: 1.095 MB / 481.1 MB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/0.3617, allocations: 8 kB / 481.1 MB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3618, allocations: 0 / 481.1 MB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3618, allocations: 3.984 kB / 481.1 MB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00339/0.3652, allocations: 1.988 MB / 483.1 MB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.3652, allocations: 4 kB / 483.1 MB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006174/0.3658, allocations: 119.8 kB / 483.2 MB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001262/0.367, allocations: 452.5 kB / 483.7 MB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.386e-05/0.3671, allocations: 16 kB / 483.7 MB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/0.3684, allocations: 1.021 MB / 484.7 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.3684, allocations: 7.938 kB / 484.7 MB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00266/0.3711, allocations: 1.593 MB / 486.3 MB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000413/0.3715, allocations: 252.5 kB / 486.6 MB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001387/0.3716, allocations: 12 kB / 486.6 MB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005848/0.3722, allocations: 35.97 kB / 486.6 MB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.3724, allocations: 52.52 kB / 486.7 MB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.725e-05/0.3724, allocations: 35.91 kB / 486.7 MB, free: 12.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006597/0.3731, allocations: 487 kB / 487.2 MB, free: 11.55 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3731, allocations: 0 / 487.2 MB, free: 11.55 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00155/0.3747, allocations: 0.5809 MB / 487.8 MB, free: 10.97 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.001149/0.3758, allocations: 489.8 kB / 488.2 MB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003047/0.3789, allocations: 1.329 MB / 489.6 MB, free: 9.152 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.3789, allocations: 5.812 kB / 489.6 MB, free: 9.148 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001/0.3799, allocations: 443.4 kB / 490 MB, free: 8.715 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/0.3815, allocations: 386.5 kB / 490.4 MB, free: 8.344 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003402/0.3849, allocations: 1.771 MB / 492.2 MB, free: 6.551 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006843/0.3855, allocations: 0.995 MB / 493.1 MB, free: 5.523 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008912/0.3864, allocations: 302.6 kB / 493.4 MB, free: 5.223 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.3866, allocations: 79.3 kB / 493.5 MB, free: 5.145 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3866, allocations: 4 kB / 493.5 MB, free: 5.141 MB / 398.1 MB Notification: Performance of Templates: time 0.03704/0.4237, allocations: 23.58 MB / 0.505 GB, free: 13.74 MB / 430.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/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: 5.29424892552197]