Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00171/0.00171, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002085/0.002085, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.55/1.55, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 48.03 kB / 373.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1016, allocations: 53.33 MB / 426.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2176/0.3192, allocations: 16.06 MB / 442.8 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01026/0.3295, allocations: 6.922 MB / 449.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009396/0.3304, allocations: 33.34 kB / 449.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001023/0.3314, allocations: 339.1 kB / 450.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003175/0.3346, allocations: 1.097 MB / 451.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005333/0.3399, allocations: 1.785 MB / 453 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003473/0.3434, allocations: 2.159 MB / 455.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009688/0.3444, allocations: 0.5287 MB / 455.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001545/0.3459, allocations: 0.8261 MB / 456.5 MB, free: 10.58 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001234/0.3472, allocations: 0.8496 MB / 457.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.3473, allocations: 78.09 kB / 457.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00289/0.3502, allocations: 1.253 MB / 458.7 MB, free: 9.867 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000399/0.3506, allocations: 324.8 kB / 459 MB, free: 9.641 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005423/0.3511, allocations: 458.3 kB / 459.5 MB, free: 9.348 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002987/0.3541, allocations: 1.876 MB / 461.3 MB, free: 8.148 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3541, allocations: 5.281 kB / 461.3 MB, free: 8.145 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3541, allocations: 0 / 461.3 MB, free: 8.145 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.3542, allocations: 0 / 461.3 MB, free: 8.145 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.00304/0.3572, allocations: 1.296 MB / 462.6 MB, free: 7.133 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.3572, allocations: 9.062 kB / 462.7 MB, free: 7.133 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003928/0.3576, allocations: 99.16 kB / 462.7 MB, free: 7.086 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.3588, allocations: 0.6292 MB / 463.4 MB, free: 6.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.3589, allocations: 111.5 kB / 463.5 MB, free: 6.484 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.359, allocations: 54.39 kB / 463.5 MB, free: 6.465 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.3607, allocations: 0.892 MB / 464.4 MB, free: 5.922 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.3607, allocations: 7.891 kB / 464.4 MB, free: 5.914 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.872e-05/0.3608, allocations: 21.73 kB / 464.5 MB, free: 5.898 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.556e-05/0.3609, allocations: 58.53 kB / 464.5 MB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001559/0.3625, allocations: 0.8453 MB / 465.4 MB, free: 5.453 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.005991/0.3684, allocations: 3.423 MB / 468.8 MB, free: 2.734 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.3696, allocations: 0.6267 MB / 469.4 MB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005896/0.3702, allocations: 347.2 kB / 469.8 MB, free: 2.227 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003124/0.3733, allocations: 2.024 MB / 471.8 MB, free: 436 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.3733, allocations: 43.44 kB / 471.8 MB, free: 388 kB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.024e-06/0.3733, allocations: 0 / 471.8 MB, free: 388 kB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007559/0.3809, allocations: 2.848 MB / 474.7 MB, free: 14.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.247e-05/0.381, allocations: 83.36 kB / 474.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008483/0.3818, allocations: 0.6769 MB / 475.4 MB, free: 14.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.091e-05/0.3819, allocations: 36.55 kB / 475.5 MB, free: 14.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002892/0.3822, allocations: 347.2 kB / 475.8 MB, free: 13.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/0.3824, allocations: 237.6 kB / 476 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002927/0.3827, allocations: 152.5 kB / 476.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002078/0.3829, allocations: 388.8 kB / 476.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006744/0.3836, allocations: 378.3 kB / 476.9 MB, free: 13.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007947/0.3844, allocations: 0.5203 MB / 477.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.3858, allocations: 0.8613 MB / 478.3 MB, free: 12.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3858, allocations: 5.469 kB / 478.3 MB, free: 12.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002272/0.388, allocations: 1.155 MB / 479.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.3881, allocations: 8.625 kB / 479.5 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.3881, allocations: 5.188 kB / 479.5 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.3895, allocations: 458.8 kB / 479.9 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007103/0.3902, allocations: 155.7 kB / 480.1 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.3916, allocations: 1.026 MB / 481.1 MB, free: 9.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006453/0.3922, allocations: 27.98 kB / 481.1 MB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.19e-05/0.3923, allocations: 31.98 kB / 481.2 MB, free: 9.477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009191/0.3932, allocations: 0.5331 MB / 481.7 MB, free: 8.941 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008021/0.394, allocations: 0.516 MB / 482.2 MB, free: 8.363 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001437/0.3954, allocations: 0.8411 MB / 483.1 MB, free: 7.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.778e-06/0.3954, allocations: 1.562 kB / 483.1 MB, free: 7.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002143/0.3976, allocations: 1.106 MB / 484.2 MB, free: 6.344 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.3976, allocations: 6.188 kB / 484.2 MB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3976, allocations: 8.562 kB / 484.2 MB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007672/0.3984, allocations: 307.9 kB / 484.5 MB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000704/0.3991, allocations: 175.7 kB / 484.7 MB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/0.4002, allocations: 0.9035 MB / 485.6 MB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006723/0.4009, allocations: 32.92 kB / 485.6 MB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.701e-05/0.4009, allocations: 35.98 kB / 485.6 MB, free: 4.863 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.0003685/0.4013, allocations: 224.1 kB / 485.8 MB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002022/0.4015, allocations: 83.48 kB / 485.9 MB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002303/0.4038, allocations: 1.098 MB / 487 MB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.4038, allocations: 8 kB / 487 MB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.4038, allocations: 0 / 487 MB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.4038, allocations: 3.984 kB / 487 MB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003434/0.4073, allocations: 1.989 MB / 489 MB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4073, allocations: 0 / 489 MB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006329/0.4079, allocations: 124.7 kB / 489.1 MB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001244/0.4092, allocations: 432.4 kB / 489.6 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.268e-05/0.4092, allocations: 19.98 kB / 489.6 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.4105, allocations: 1.029 MB / 490.6 MB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.4105, allocations: 3.938 kB / 490.6 MB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002694/0.4132, allocations: 1.597 MB / 492.2 MB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004464/0.4137, allocations: 244.5 kB / 492.5 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.4138, allocations: 19.94 kB / 492.5 MB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005404/0.4143, allocations: 23.98 kB / 492.5 MB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.4145, allocations: 68.44 kB / 492.6 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.64e-05/0.4146, allocations: 27.98 kB / 492.6 MB, free: 13.76 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006563/0.4152, allocations: 475 kB / 493.1 MB, free: 13.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4152, allocations: 4 kB / 493.1 MB, free: 13.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001722/0.417, allocations: 0.5926 MB / 493.7 MB, free: 12.71 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.001125/0.4181, allocations: 497.6 kB / 494.1 MB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003142/0.4212, allocations: 1.326 MB / 495.5 MB, free: 10.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.4212, allocations: 0 / 495.5 MB, free: 10.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.4223, allocations: 449 kB / 495.9 MB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/0.4241, allocations: 390.2 kB / 496.3 MB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003705/0.4278, allocations: 1.743 MB / 498 MB, free: 8.328 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000654/0.4285, allocations: 0.9988 MB / 499 MB, free: 7.297 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009114/0.4294, allocations: 306.5 kB / 499.3 MB, free: 6.992 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002115/0.4296, allocations: 71.42 kB / 499.4 MB, free: 6.922 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4296, allocations: 0 / 499.4 MB, free: 6.922 MB / 398.1 MB Notification: Performance of Templates: time 0.04167/0.4713, allocations: 23.26 MB / 0.5104 GB, free: 15.83 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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.612673182040453]