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.001859/0.001859, allocations: 106.6 kB / 17.59 MB, free: 5.418 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.002176/0.002176, allocations: 191.3 kB / 18.52 MB, free: 4.496 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.366/1.366, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 41.16 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09685/0.09799, allocations: 49.44 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.2121/0.3102, allocations: 28.67 MB / 379.4 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01897/0.3292, allocations: 15.02 MB / 394.4 MB, free: 2.555 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002219/0.3314, allocations: 42.56 kB / 394.4 MB, free: 2.539 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002245/0.3337, allocations: 0.5897 MB / 395 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007316/0.3411, allocations: 2.293 MB / 397.3 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01176/0.3529, allocations: 3.739 MB / 401.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006977/0.3599, allocations: 4.137 MB / 405.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002411/0.3623, allocations: 1.165 MB / 406.4 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003884/0.3662, allocations: 1.532 MB / 407.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003569/0.3698, allocations: 1.662 MB / 409.6 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008067/0.3707, allocations: 165.2 kB / 409.7 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006723/0.3774, allocations: 2.414 MB / 412.1 MB, free: 7.645 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.3789, allocations: 0.6194 MB / 412.8 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002531/0.3815, allocations: 0.8711 MB / 413.6 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009736/0.3912, allocations: 3.686 MB / 417.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.336e-06/0.3913, allocations: 8 kB / 417.3 MB, free: 2.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3913, allocations: 3.938 kB / 417.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.708e-05/0.3914, allocations: 0 / 417.3 MB, free: 2.441 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.007096/0.3985, allocations: 2.204 MB / 419.5 MB, free: 188 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.3986, allocations: 11.89 kB / 419.5 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009516/0.3995, allocations: 174.1 kB / 419.7 MB, free: 0 / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002141/0.4017, allocations: 1.003 MB / 420.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/0.4019, allocations: 175.1 kB / 420.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003071/0.4022, allocations: 103.9 kB / 421 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003535/0.4058, allocations: 1.749 MB / 422.7 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.903e-05/0.4058, allocations: 3.984 kB / 422.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000187/0.406, allocations: 51.95 kB / 422.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001631/0.4062, allocations: 109.9 kB / 422.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003307/0.4095, allocations: 1.784 MB / 424.7 MB, free: 10.9 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.01387/0.4234, allocations: 6.731 MB / 431.4 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002148/0.4256, allocations: 1.242 MB / 432.7 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001267/0.4269, allocations: 0.7612 MB / 433.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006942/0.4338, allocations: 4.267 MB / 437.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.554e-05/0.4339, allocations: 51.56 kB / 437.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009201/0.4349, allocations: 166.8 kB / 437.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 5.48e-06/0.4349, allocations: 0 / 437.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.02007/0.455, allocations: 5.69 MB / 443.6 MB, free: 7.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.279e-05/0.4551, allocations: 149.5 kB / 443.7 MB, free: 6.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002014/0.4571, allocations: 1.254 MB / 445 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001914/0.4573, allocations: 45.7 kB / 445 MB, free: 5.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005346/0.4579, allocations: 0.6206 MB / 445.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004149/0.4583, allocations: 386.5 kB / 446 MB, free: 4.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005574/0.4589, allocations: 287.4 kB / 446.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.459, allocations: 301.1 kB / 446.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.4602, allocations: 0.7231 MB / 447.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001616/0.4619, allocations: 1.068 MB / 448.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002757/0.4646, allocations: 1.739 MB / 450.1 MB, free: 272 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.687e-06/0.4647, allocations: 4 kB / 450.1 MB, free: 268 kB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004511/0.4692, allocations: 2.289 MB / 452.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/0.4692, allocations: 11.94 kB / 452.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.602e-05/0.4693, allocations: 16.06 kB / 452.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007301/0.4766, allocations: 1.277 MB / 453.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.4781, allocations: 303.5 kB / 454 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/0.4809, allocations: 1.599 MB / 455.6 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.4824, allocations: 59.89 kB / 455.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002524/0.4826, allocations: 75.97 kB / 455.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001822/0.4845, allocations: 0.9762 MB / 456.7 MB, free: 9.609 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001527/0.486, allocations: 1.059 MB / 457.8 MB, free: 8.406 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002752/0.4888, allocations: 1.722 MB / 459.5 MB, free: 6.543 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.058e-05/0.4888, allocations: 7.938 kB / 459.5 MB, free: 6.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004102/0.4929, allocations: 2.199 MB / 461.7 MB, free: 4.324 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.493, allocations: 8 kB / 461.7 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.493, allocations: 12 kB / 461.7 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006718/0.4997, allocations: 1.105 MB / 462.8 MB, free: 3.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001513/0.5013, allocations: 303.5 kB / 463.1 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/0.5036, allocations: 1.452 MB / 464.6 MB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/0.5053, allocations: 63.91 kB / 464.7 MB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003347/0.5057, allocations: 71.97 kB / 464.7 MB, free: 1.289 MB / 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.0005976/0.5063, allocations: 271.8 kB / 465 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004958/0.5068, allocations: 146.2 kB / 465.1 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004649/0.5114, allocations: 2.081 MB / 467.2 MB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/0.5115, allocations: 12 kB / 467.2 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/0.5115, allocations: 7.938 kB / 467.2 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/0.5115, allocations: 7.984 kB / 467.2 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006452/0.518, allocations: 3.59 MB / 470.8 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.518, allocations: 0 / 470.8 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009495/0.519, allocations: 199.7 kB / 471 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002496/0.5215, allocations: 0.8641 MB / 471.9 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001501/0.5217, allocations: 27.98 kB / 471.9 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002415/0.5241, allocations: 1.615 MB / 473.5 MB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.5241, allocations: 3.984 kB / 473.5 MB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005358/0.5295, allocations: 2.915 MB / 476.5 MB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009993/0.5305, allocations: 387.2 kB / 476.8 MB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004481/0.531, allocations: 24 kB / 476.9 MB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/0.5323, allocations: 56.16 kB / 476.9 MB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/0.5325, allocations: 113 kB / 477 MB, free: 4.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/0.5327, allocations: 51.97 kB / 477.1 MB, free: 4.801 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001417/0.5341, allocations: 0.8402 MB / 477.9 MB, free: 3.957 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5341, allocations: 4 kB / 477.9 MB, free: 3.953 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003988/0.5381, allocations: 1.16 MB / 479.1 MB, free: 2.793 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.00254/0.5407, allocations: 0.8535 MB / 479.9 MB, free: 1.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008918/0.5496, allocations: 3.289 MB / 483.2 MB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.5497, allocations: 4 kB / 483.2 MB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002123/0.5518, allocations: 0.875 MB / 484.1 MB, free: 13.76 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003713/0.5556, allocations: 0.6592 MB / 484.8 MB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006485/0.5621, allocations: 3.155 MB / 487.9 MB, free: 9.945 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009841/0.5631, allocations: 1.284 MB / 489.2 MB, free: 8.633 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006711/0.5638, allocations: 151.4 kB / 489.3 MB, free: 8.484 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5638, allocations: 0 / 489.3 MB, free: 8.484 MB / 398.1 MB Notification: Performance of Templates: time 0.05585/0.6196, allocations: 35.74 MB / 0.5128 GB, free: 4.848 MB / 430.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","/var/lib/jenkins1/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