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.001572/0.001572, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001778/0.001778, allocations: 209.2 kB / 24.48 MB, free: 3.941 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.437/1.437, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.002346/0.002346, allocations: 51.92 kB / 379 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2331, allocations: 53.36 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01754/0.2507, allocations: 14.68 MB / 447 MB, free: 8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009325/0.26, allocations: 6.277 MB / 453.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003715/0.2604, allocations: 31.69 kB / 453.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007905/0.2612, allocations: 322 kB / 453.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002269/0.2634, allocations: 1.12 MB / 454.7 MB, free: 240 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003733/0.2672, allocations: 1.822 MB / 456.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002415/0.2696, allocations: 2.229 MB / 458.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006825/0.2703, allocations: 0.5102 MB / 459.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001161/0.2714, allocations: 0.8449 MB / 460.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001158/0.2726, allocations: 0.8642 MB / 461 MB, free: 9.949 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001425/0.2727, allocations: 80 kB / 461.1 MB, free: 9.871 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001819/0.2745, allocations: 1.057 MB / 462.1 MB, free: 8.812 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003468/0.2749, allocations: 327 kB / 462.5 MB, free: 8.492 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004315/0.2753, allocations: 382.4 kB / 462.8 MB, free: 8.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002264/0.2776, allocations: 1.838 MB / 464.7 MB, free: 6.273 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2776, allocations: 4 kB / 464.7 MB, free: 6.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2776, allocations: 0 / 464.7 MB, free: 6.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.2776, allocations: 0 / 464.7 MB, free: 6.27 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.002816/0.2804, allocations: 1.22 MB / 465.9 MB, free: 5.012 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.2805, allocations: 12.03 kB / 465.9 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003398/0.2808, allocations: 96.38 kB / 466 MB, free: 4.906 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/0.2819, allocations: 0.5673 MB / 466.6 MB, free: 4.316 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.2821, allocations: 164 kB / 466.7 MB, free: 4.133 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.2822, allocations: 59.94 kB / 466.8 MB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/0.284, allocations: 1.168 MB / 468 MB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.284, allocations: 4 kB / 468 MB, free: 2.809 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-05/0.2841, allocations: 27.92 kB / 468 MB, free: 2.781 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-05/0.2842, allocations: 49.28 kB / 468 MB, free: 2.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.2856, allocations: 0.8443 MB / 468.9 MB, free: 1.883 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.005485/0.2911, allocations: 2.59 MB / 471.5 MB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/0.2923, allocations: 0.6268 MB / 472.1 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000575/0.2928, allocations: 346.2 kB / 472.4 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002643/0.2955, allocations: 1.197 MB / 473.6 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.2955, allocations: 39.06 kB / 473.7 MB, free: 13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 1.873e-06/0.2955, allocations: 0 / 473.7 MB, free: 13 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.007384/0.3029, allocations: 2.694 MB / 476.4 MB, free: 10.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.303, allocations: 85.77 kB / 476.4 MB, free: 10.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006845/0.3037, allocations: 0.5496 MB / 477 MB, free: 9.617 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.359e-05/0.3037, allocations: 37.7 kB / 477 MB, free: 9.574 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000278/0.304, allocations: 360.7 kB / 477.4 MB, free: 9.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002187/0.3042, allocations: 245.9 kB / 477.6 MB, free: 8.977 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002765/0.3045, allocations: 146.6 kB / 477.8 MB, free: 8.824 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.3047, allocations: 378.7 kB / 478.1 MB, free: 8.445 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006524/0.3053, allocations: 380.6 kB / 478.5 MB, free: 8.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007935/0.3061, allocations: 0.5403 MB / 479.1 MB, free: 7.465 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.3075, allocations: 0.8641 MB / 479.9 MB, free: 6.539 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.3075, allocations: 4 kB / 479.9 MB, free: 6.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002119/0.3097, allocations: 1.15 MB / 481.1 MB, free: 5.375 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.3097, allocations: 8 kB / 481.1 MB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.3097, allocations: 4 kB / 481.1 MB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.3111, allocations: 447.9 kB / 481.5 MB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007109/0.3118, allocations: 159.8 kB / 481.7 MB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/0.3131, allocations: 1.032 MB / 482.7 MB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005461/0.3136, allocations: 28.03 kB / 482.7 MB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.222e-05/0.3137, allocations: 31.98 kB / 482.8 MB, free: 3.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008735/0.3146, allocations: 0.5331 MB / 483.3 MB, free: 3.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007851/0.3154, allocations: 0.5333 MB / 483.8 MB, free: 2.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001361/0.3167, allocations: 0.8533 MB / 484.7 MB, free: 1.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.735e-06/0.3167, allocations: 0 / 484.7 MB, free: 1.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002123/0.3189, allocations: 1.095 MB / 485.8 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.3189, allocations: 4 kB / 485.8 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3189, allocations: 8 kB / 485.8 MB, free: 496 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007585/0.3196, allocations: 312.6 kB / 486.1 MB, free: 180 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007152/0.3203, allocations: 163.8 kB / 486.3 MB, free: 16 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/0.3215, allocations: 0.9112 MB / 487.2 MB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006289/0.3221, allocations: 32.03 kB / 487.2 MB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.841e-05/0.3222, allocations: 35.98 kB / 487.2 MB, free: 15.01 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.0002525/0.3224, allocations: 224.1 kB / 487.5 MB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.3226, allocations: 71.58 kB / 487.5 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002112/0.3247, allocations: 1.075 MB / 488.6 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.3247, allocations: 11.94 kB / 488.6 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3247, allocations: 0 / 488.6 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.3247, allocations: 8.062 kB / 488.6 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003186/0.3279, allocations: 1.785 MB / 490.4 MB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3279, allocations: 0 / 490.4 MB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006372/0.3286, allocations: 123.9 kB / 490.5 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.3298, allocations: 436.4 kB / 491 MB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.238e-05/0.3298, allocations: 27.92 kB / 491 MB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.3311, allocations: 1.025 MB / 492 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3311, allocations: 0 / 492 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/0.3337, allocations: 1.589 MB / 493.6 MB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000381/0.3341, allocations: 159.4 kB / 493.7 MB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.3342, allocations: 12 kB / 493.8 MB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005469/0.3347, allocations: 31.97 kB / 493.8 MB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.3349, allocations: 60.55 kB / 493.9 MB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.228e-05/0.3349, allocations: 27.98 kB / 493.9 MB, free: 8.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004584/0.3354, allocations: 382.8 kB / 494.3 MB, free: 7.891 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3354, allocations: 0 / 494.3 MB, free: 7.891 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00142/0.3368, allocations: 0.5809 MB / 494.8 MB, free: 7.309 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.000984/0.3378, allocations: 489.9 kB / 495.3 MB, free: 6.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002949/0.3408, allocations: 1.321 MB / 496.6 MB, free: 5.496 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.3408, allocations: 5.75 kB / 496.6 MB, free: 5.492 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.3418, allocations: 435.5 kB / 497.1 MB, free: 5.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/0.3434, allocations: 367.9 kB / 497.4 MB, free: 4.715 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003342/0.3467, allocations: 1.743 MB / 499.2 MB, free: 2.945 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.3471, allocations: 400.4 kB / 499.6 MB, free: 2.531 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008712/0.348, allocations: 297.9 kB / 499.8 MB, free: 2.238 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.3482, allocations: 67.42 kB / 499.9 MB, free: 2.172 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3482, allocations: 0 / 499.9 MB, free: 2.172 MB / 398.1 MB Notification: Performance of Templates: time 0.03588/0.3841, allocations: 23.29 MB / 0.5109 GB, free: 11.19 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins1/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.166564522005501]