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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 109.1 kB / 17.06 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 43.92 kB / 351.3 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.279, allocations: 49.43 MB / 400.7 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01564/0.2947, allocations: 15.85 MB / 416.6 MB, free: 9.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009351/0.3041, allocations: 6.909 MB / 423.5 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007824/0.3049, allocations: 19.88 kB / 423.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009267/0.3058, allocations: 326 kB / 423.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002482/0.3084, allocations: 1.065 MB / 424.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004/0.3124, allocations: 1.802 MB / 426.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002802/0.3152, allocations: 2.144 MB / 428.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000919/0.3161, allocations: 0.5997 MB / 429.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001201/0.3173, allocations: 0.7903 MB / 430.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001085/0.3184, allocations: 0.798 MB / 431 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001479/0.3186, allocations: 84 kB / 431.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003064/0.3217, allocations: 1.213 MB / 432.3 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003992/0.3221, allocations: 315.1 kB / 432.6 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006182/0.3227, allocations: 457.9 kB / 433 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00321/0.3259, allocations: 1.846 MB / 434.9 MB, free: 6.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.326, allocations: 8 kB / 434.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.326, allocations: 0 / 434.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.326, allocations: 0 / 434.9 MB, free: 6.602 MB / 350.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.002623/0.3286, allocations: 1.295 MB / 436.2 MB, free: 5.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.3287, allocations: 12.03 kB / 436.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003264/0.329, allocations: 100.4 kB / 436.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.33, allocations: 0.6329 MB / 436.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.3302, allocations: 104.7 kB / 437 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.795e-05/0.3303, allocations: 51.98 kB / 437.1 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.3318, allocations: 0.9001 MB / 438 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/0.3318, allocations: 0 / 438 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-05/0.3319, allocations: 27.98 kB / 438 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.679e-05/0.332, allocations: 53.27 kB / 438.1 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001471/0.3335, allocations: 0.8366 MB / 438.9 MB, free: 2.465 MB / 350.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.006419/0.3399, allocations: 3.466 MB / 442.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.3409, allocations: 0.6687 MB / 443 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005362/0.3415, allocations: 370.3 kB / 443.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002768/0.3442, allocations: 2.039 MB / 445.4 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/0.3443, allocations: 51.05 kB / 445.5 MB, free: 11.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.405e-06/0.3443, allocations: 0 / 445.5 MB, free: 11.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006873/0.3512, allocations: 2.849 MB / 448.3 MB, free: 8.559 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.3513, allocations: 81.67 kB / 448.4 MB, free: 8.461 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008941/0.3522, allocations: 0.6838 MB / 449.1 MB, free: 7.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.029e-05/0.3522, allocations: 37.7 kB / 449.1 MB, free: 7.727 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/0.3525, allocations: 345 kB / 449.5 MB, free: 7.383 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001977/0.3527, allocations: 238 kB / 449.7 MB, free: 7.148 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002502/0.353, allocations: 150.6 kB / 449.9 MB, free: 6.996 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.3531, allocations: 386.8 kB / 450.2 MB, free: 6.609 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006181/0.3538, allocations: 368.6 kB / 450.6 MB, free: 6.246 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007817/0.3546, allocations: 0.523 MB / 451.1 MB, free: 5.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/0.3558, allocations: 0.856 MB / 452 MB, free: 4.742 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3558, allocations: 4 kB / 452 MB, free: 4.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001949/0.3578, allocations: 1.165 MB / 453.1 MB, free: 3.562 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.3578, allocations: 4 kB / 453.1 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.3578, allocations: 4 kB / 453.2 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/0.3591, allocations: 460.5 kB / 453.6 MB, free: 3.102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006293/0.3597, allocations: 159.7 kB / 453.8 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.3609, allocations: 1.017 MB / 454.8 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005483/0.3615, allocations: 27.98 kB / 454.8 MB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.443e-05/0.3616, allocations: 35.98 kB / 454.8 MB, free: 1.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008251/0.3624, allocations: 0.5292 MB / 455.4 MB, free: 1.305 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006908/0.3631, allocations: 0.5121 MB / 455.9 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00125/0.3644, allocations: 0.8451 MB / 456.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.817e-06/0.3644, allocations: 11.88 kB / 456.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001887/0.3663, allocations: 1.107 MB / 457.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.3663, allocations: 4 kB / 457.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.3663, allocations: 8 kB / 457.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000696/0.367, allocations: 308.8 kB / 458.2 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006376/0.3677, allocations: 167.7 kB / 458.3 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009816/0.3687, allocations: 0.9151 MB / 459.2 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005602/0.3692, allocations: 36.02 kB / 459.3 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.911e-05/0.3693, allocations: 36 kB / 459.3 MB, free: 13.21 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.000293/0.3696, allocations: 228 kB / 459.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.3698, allocations: 79.53 kB / 459.6 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00198/0.3718, allocations: 1.099 MB / 460.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.3718, allocations: 8 kB / 460.7 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3718, allocations: 0 / 460.7 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.3718, allocations: 3.984 kB / 460.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003013/0.3748, allocations: 2 MB / 462.7 MB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3749, allocations: 3.984 kB / 462.7 MB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00056/0.3754, allocations: 115.9 kB / 462.8 MB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001141/0.3766, allocations: 444.5 kB / 463.3 MB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-05/0.3767, allocations: 16 kB / 463.3 MB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.3778, allocations: 1.04 MB / 464.3 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3778, allocations: 3.938 kB / 464.3 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/0.3802, allocations: 1.593 MB / 465.9 MB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003687/0.3806, allocations: 248.5 kB / 466.2 MB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.3807, allocations: 16 kB / 466.2 MB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005432/0.3813, allocations: 35.97 kB / 466.2 MB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.3814, allocations: 60.52 kB / 466.3 MB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-05/0.3815, allocations: 31.91 kB / 466.3 MB, free: 6.059 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005923/0.3821, allocations: 483 kB / 466.8 MB, free: 5.594 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3821, allocations: 0 / 466.8 MB, free: 5.594 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001491/0.3836, allocations: 0.5887 MB / 467.4 MB, free: 5.004 MB / 382.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.001022/0.3846, allocations: 499.1 kB / 467.9 MB, free: 4.508 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002912/0.3876, allocations: 1.405 MB / 469.3 MB, free: 3.105 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.3876, allocations: 0 / 469.3 MB, free: 3.105 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009287/0.3885, allocations: 475.5 kB / 469.7 MB, free: 2.637 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001688/0.3902, allocations: 379.2 kB / 470.1 MB, free: 2.273 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003157/0.3934, allocations: 1.751 MB / 471.8 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005882/0.394, allocations: 0.995 MB / 472.8 MB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009242/0.3949, allocations: 310.5 kB / 473.1 MB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.3951, allocations: 71.42 kB / 473.2 MB, free: 15.09 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3951, allocations: 0 / 473.2 MB, free: 15.09 MB / 398.1 MB Notification: Performance of Templates: time 0.03338/0.4285, allocations: 23.12 MB / 496.3 MB, free: 8.152 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (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) 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) Reference file matches