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.001339/0.001339, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001535/0.001535, allocations: 209.3 kB / 23.73 MB, free: 4.387 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.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001659/0.001659, allocations: 47.92 kB / 378.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2466, allocations: 53.37 MB / 431.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01836/0.265, allocations: 14.67 MB / 446.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.2752, allocations: 6.286 MB / 452.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000693/0.2759, allocations: 31.69 kB / 452.6 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009998/0.2769, allocations: 330 kB / 452.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002895/0.2798, allocations: 1.116 MB / 454 MB, free: 188 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004237/0.284, allocations: 1.802 MB / 455.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002904/0.2869, allocations: 2.214 MB / 458 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008864/0.2878, allocations: 0.5101 MB / 458.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001502/0.2893, allocations: 0.841 MB / 459.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001231/0.2905, allocations: 0.8291 MB / 460.2 MB, free: 9.973 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001653/0.2907, allocations: 84 kB / 460.3 MB, free: 9.891 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002037/0.2927, allocations: 1.014 MB / 461.3 MB, free: 8.875 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000361/0.2931, allocations: 327 kB / 461.6 MB, free: 8.555 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004507/0.2935, allocations: 382.4 kB / 462 MB, free: 8.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002424/0.296, allocations: 1.842 MB / 463.8 MB, free: 6.332 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.296, allocations: 0 / 463.8 MB, free: 6.332 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.296, allocations: 0 / 463.8 MB, free: 6.332 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.296, allocations: 0 / 463.8 MB, free: 6.332 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.002643/0.2986, allocations: 1.22 MB / 465 MB, free: 5.074 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.2987, allocations: 12.03 kB / 465.1 MB, free: 5.062 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003293/0.299, allocations: 104.4 kB / 465.2 MB, free: 4.961 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/0.3002, allocations: 0.5712 MB / 465.7 MB, free: 4.367 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/0.3003, allocations: 152.1 kB / 465.9 MB, free: 4.195 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.3004, allocations: 55.94 kB / 465.9 MB, free: 4.141 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.3021, allocations: 1.176 MB / 467.1 MB, free: 2.871 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.3021, allocations: 0 / 467.1 MB, free: 2.871 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.38e-05/0.3022, allocations: 27.98 kB / 467.1 MB, free: 2.844 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.764e-05/0.3023, allocations: 57.27 kB / 467.2 MB, free: 2.785 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001486/0.3038, allocations: 0.8404 MB / 468 MB, free: 1.941 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.00537/0.3092, allocations: 2.582 MB / 470.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.3103, allocations: 0.6307 MB / 471.2 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005859/0.3108, allocations: 342.1 kB / 471.6 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002544/0.3134, allocations: 1.201 MB / 472.8 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/0.3134, allocations: 43.06 kB / 472.8 MB, free: 13.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 1.933e-06/0.3134, allocations: 0 / 472.8 MB, free: 13.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.007012/0.3205, allocations: 2.697 MB / 475.5 MB, free: 10.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.188e-05/0.3205, allocations: 81.77 kB / 475.6 MB, free: 10.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006924/0.3212, allocations: 0.5496 MB / 476.1 MB, free: 9.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.699e-05/0.3213, allocations: 37.7 kB / 476.2 MB, free: 9.637 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000281/0.3216, allocations: 364.6 kB / 476.5 MB, free: 9.277 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002158/0.3218, allocations: 242 kB / 476.8 MB, free: 9.039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002531/0.322, allocations: 150.6 kB / 476.9 MB, free: 8.883 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.3222, allocations: 378.7 kB / 477.3 MB, free: 8.504 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006456/0.3229, allocations: 372.6 kB / 477.7 MB, free: 8.137 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007864/0.3236, allocations: 0.5467 MB / 478.2 MB, free: 7.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.325, allocations: 0.8641 MB / 479.1 MB, free: 6.598 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.325, allocations: 8 kB / 479.1 MB, free: 6.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00279/0.3278, allocations: 1.138 MB / 480.2 MB, free: 5.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.3278, allocations: 8 kB / 480.2 MB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.3279, allocations: 7.938 kB / 480.2 MB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001747/0.3296, allocations: 456.5 kB / 480.7 MB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.3307, allocations: 155.8 kB / 480.8 MB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.3325, allocations: 1.028 MB / 481.9 MB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000906/0.3334, allocations: 27.98 kB / 481.9 MB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.3335, allocations: 39.98 kB / 481.9 MB, free: 3.703 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00131/0.3349, allocations: 0.5292 MB / 482.4 MB, free: 3.172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001126/0.336, allocations: 0.5372 MB / 483 MB, free: 2.566 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001941/0.3379, allocations: 0.8455 MB / 483.8 MB, free: 1.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.479e-06/0.3379, allocations: 0 / 483.8 MB, free: 1.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002934/0.3409, allocations: 1.091 MB / 484.9 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.3409, allocations: 8.562 kB / 484.9 MB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.3409, allocations: 4 kB / 484.9 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.3419, allocations: 312.7 kB / 485.2 MB, free: 244 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009631/0.3429, allocations: 171.7 kB / 485.4 MB, free: 72 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/0.3444, allocations: 0.9073 MB / 486.3 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007944/0.3451, allocations: 36.02 kB / 486.3 MB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.3452, allocations: 31.98 kB / 486.4 MB, free: 15.07 MB / 398.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.0003579/0.3456, allocations: 228 kB / 486.6 MB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002424/0.3458, allocations: 71.58 kB / 486.7 MB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003108/0.349, allocations: 1.075 MB / 487.7 MB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.349, allocations: 11.94 kB / 487.8 MB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.349, allocations: 4 kB / 487.8 MB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.349, allocations: 3.984 kB / 487.8 MB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004645/0.3536, allocations: 1.785 MB / 489.6 MB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.3536, allocations: 0 / 489.6 MB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008422/0.3545, allocations: 115.9 kB / 489.7 MB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001648/0.3561, allocations: 442.9 kB / 490.1 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.843e-05/0.3562, allocations: 23.98 kB / 490.1 MB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001802/0.358, allocations: 1.028 MB / 491.1 MB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.358, allocations: 0 / 491.1 MB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00389/0.3619, allocations: 1.593 MB / 492.7 MB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005845/0.3625, allocations: 155.4 kB / 492.9 MB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001474/0.3626, allocations: 16 kB / 492.9 MB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006329/0.3633, allocations: 27.98 kB / 492.9 MB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.3635, allocations: 60.48 kB / 493 MB, free: 8.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-05/0.3635, allocations: 31.97 kB / 493 MB, free: 8.312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006113/0.3642, allocations: 374.8 kB / 493.4 MB, free: 7.949 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3642, allocations: 4 kB / 493.4 MB, free: 7.945 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001825/0.366, allocations: 0.5887 MB / 494 MB, free: 7.355 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.001069/0.3671, allocations: 485.9 kB / 494.5 MB, free: 6.871 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002985/0.37, allocations: 1.322 MB / 495.8 MB, free: 5.547 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.37, allocations: 0 / 495.8 MB, free: 5.547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000974/0.371, allocations: 443.5 kB / 496.2 MB, free: 5.117 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001626/0.3726, allocations: 351.6 kB / 496.6 MB, free: 4.777 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003341/0.376, allocations: 1.744 MB / 498.3 MB, free: 3.004 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004294/0.3764, allocations: 404.4 kB / 498.7 MB, free: 2.586 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009738/0.3774, allocations: 289.9 kB / 499 MB, free: 2.301 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002075/0.3776, allocations: 71.41 kB / 499.1 MB, free: 2.23 MB / 398.1 MB Notification: Performance of SimCode: time 1.363e-06/0.3776, allocations: 3.938 kB / 499.1 MB, free: 2.227 MB / 398.1 MB Notification: Performance of Templates: time 0.03841/0.416, allocations: 23.05 MB / 0.5099 GB, free: 11.5 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.4597550462931395]