Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 107 kB / 16.62 MB, free: 6.957 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.001576/0.001576, allocations: 189.9 kB / 17.55 MB, free: 6.047 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.357/1.357, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 52.14 kB / 300.1 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09138/0.09241, allocations: 49.44 MB / 349.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1815/0.2739, allocations: 30.19 MB / 379.8 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01614/0.2901, allocations: 15.32 MB / 395.1 MB, free: 1.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002113/0.2922, allocations: 64.84 kB / 395.1 MB, free: 1.379 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.2937, allocations: 0.5333 MB / 395.7 MB, free: 1.078 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005107/0.2989, allocations: 2.131 MB / 397.8 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008786/0.3077, allocations: 3.43 MB / 401.2 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005634/0.3133, allocations: 4.149 MB / 405.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001861/0.3152, allocations: 1.155 MB / 406.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002673/0.3179, allocations: 1.563 MB / 408.1 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00204/0.32, allocations: 1.735 MB / 409.8 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002514/0.3202, allocations: 163.2 kB / 410 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004416/0.3247, allocations: 2.415 MB / 412.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006528/0.3253, allocations: 0.6272 MB / 413 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009867/0.3263, allocations: 0.8827 MB / 413.9 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00468/0.331, allocations: 3.69 MB / 417.6 MB, free: 1.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.331, allocations: 4 kB / 417.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.331, allocations: 0 / 417.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.842e-05/0.3311, allocations: 4 kB / 417.6 MB, free: 1.336 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.004618/0.3357, allocations: 2.215 MB / 419.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.3357, allocations: 11.89 kB / 419.8 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005057/0.3362, allocations: 174.1 kB / 420 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.3376, allocations: 0.995 MB / 421 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.3378, allocations: 171.1 kB / 421.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001932/0.338, allocations: 119.8 kB / 421.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002606/0.3406, allocations: 1.745 MB / 423 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.3406, allocations: 4 kB / 423 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.3408, allocations: 39.97 kB / 423.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000139/0.3409, allocations: 113.9 kB / 423.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002693/0.3436, allocations: 1.788 MB / 425 MB, free: 9.789 MB / 334.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.01056/0.3542, allocations: 6.705 MB / 431.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.3559, allocations: 1.254 MB / 432.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.357, allocations: 0.7677 MB / 433.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005598/0.3626, allocations: 4.263 MB / 438 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.318e-05/0.3627, allocations: 43.56 kB / 438 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007856/0.3635, allocations: 198.7 kB / 438.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.516e-06/0.3635, allocations: 4 kB / 438.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01943/0.3829, allocations: 5.683 MB / 443.9 MB, free: 6.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.521e-05/0.383, allocations: 145.5 kB / 444 MB, free: 5.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001833/0.3849, allocations: 1.25 MB / 445.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001577/0.385, allocations: 49.7 kB / 445.3 MB, free: 4.559 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004507/0.3855, allocations: 0.6129 MB / 445.9 MB, free: 3.938 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003741/0.3859, allocations: 390.5 kB / 446.3 MB, free: 3.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005155/0.3864, allocations: 291.3 kB / 446.6 MB, free: 3.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.374e-05/0.3865, allocations: 305.1 kB / 446.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.3877, allocations: 0.7231 MB / 447.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/0.3891, allocations: 1.064 MB / 448.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002554/0.3917, allocations: 1.739 MB / 450.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/0.3917, allocations: 4 kB / 450.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003898/0.3956, allocations: 2.289 MB / 452.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.3956, allocations: 15.97 kB / 452.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.3957, allocations: 8.875 kB / 452.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007131/0.4028, allocations: 1.288 MB / 454 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.4041, allocations: 299.5 kB / 454.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002431/0.4066, allocations: 1.595 MB / 455.9 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.4081, allocations: 91.73 kB / 456 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002205/0.4083, allocations: 67.97 kB / 456.1 MB, free: 9.457 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001624/0.41, allocations: 0.9801 MB / 457.1 MB, free: 8.473 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001402/0.4114, allocations: 1.059 MB / 458.1 MB, free: 7.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002659/0.4141, allocations: 1.718 MB / 459.8 MB, free: 5.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.447e-05/0.4141, allocations: 7.938 kB / 459.9 MB, free: 5.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003833/0.4179, allocations: 2.191 MB / 462 MB, free: 3.199 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.4179, allocations: 8 kB / 462 MB, free: 3.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.418, allocations: 20.09 kB / 462.1 MB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006195/0.4242, allocations: 1.103 MB / 463.2 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.4254, allocations: 307.5 kB / 463.5 MB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/0.4273, allocations: 1.45 MB / 464.9 MB, free: 296 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.4287, allocations: 87.8 kB / 465 MB, free: 208 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001831/0.4289, allocations: 67.97 kB / 465.1 MB, free: 140 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],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 (156): * Single equations (assignments): 155 * 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 {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0004493/0.4294, allocations: 279.7 kB / 465.3 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004/0.4298, allocations: 146.2 kB / 465.5 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004278/0.434, allocations: 2.082 MB / 467.6 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.4341, allocations: 12 kB / 467.6 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.4341, allocations: 3.938 kB / 467.6 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.4341, allocations: 3.984 kB / 467.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005863/0.44, allocations: 3.598 MB / 471.2 MB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.44, allocations: 4 kB / 471.2 MB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009396/0.4409, allocations: 191.8 kB / 471.4 MB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00244/0.4434, allocations: 0.8641 MB / 472.2 MB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/0.4435, allocations: 35.97 kB / 472.3 MB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00211/0.4456, allocations: 1.607 MB / 473.9 MB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.4457, allocations: 0 / 473.9 MB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004398/0.4501, allocations: 2.915 MB / 476.8 MB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007031/0.4508, allocations: 387.1 kB / 477.2 MB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003162/0.4511, allocations: 31.98 kB / 477.2 MB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/0.4523, allocations: 67.98 kB / 477.3 MB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.4525, allocations: 109.1 kB / 477.4 MB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001244/0.4526, allocations: 47.97 kB / 477.4 MB, free: 3.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001154/0.4538, allocations: 0.848 MB / 478.3 MB, free: 2.777 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4538, allocations: 0 / 478.3 MB, free: 2.777 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002833/0.4567, allocations: 1.16 MB / 479.4 MB, free: 1.617 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001831/0.4585, allocations: 0.8474 MB / 480.3 MB, free: 0.7617 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007224/0.4657, allocations: 3.289 MB / 483.6 MB, free: 13.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/0.4658, allocations: 8.062 kB / 483.6 MB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001764/0.4675, allocations: 0.8712 MB / 484.5 MB, free: 12.6 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002924/0.4705, allocations: 0.6454 MB / 485.1 MB, free: 11.97 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005764/0.4762, allocations: 3.587 MB / 488.7 MB, free: 8.363 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008577/0.4771, allocations: 1.292 MB / 490 MB, free: 7.043 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002043/0.4792, allocations: 0.5939 MB / 490.6 MB, free: 6.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003759/0.4795, allocations: 123.4 kB / 490.7 MB, free: 6.32 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4796, allocations: 3.938 kB / 490.7 MB, free: 6.316 MB / 398.1 MB Notification: Performance of Templates: time 0.0654/0.545, allocations: 43.59 MB / 0.5218 GB, free: 11.02 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches