Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001099/0.001099, allocations: 93.91 kB / 16.95 MB, free: 5.992 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.001536/0.001535, allocations: 175.1 kB / 17.84 MB, free: 5.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.631/1.631, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005024/0.0005024, allocations: 8 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1178, allocations: 47.59 MB / 328.4 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03244/0.1503, allocations: 27.88 MB / 356.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02357/0.174, allocations: 14.31 MB / 370.5 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00342/0.1774, allocations: 59.5 kB / 370.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003157/0.1806, allocations: 0.493 MB / 371.1 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01146/0.1921, allocations: 2.169 MB / 373.3 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01155/0.2037, allocations: 2.903 MB / 376.2 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2524/0.4561, allocations: 5.044 MB / 381.2 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002653/0.4588, allocations: 0.9831 MB / 382.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003908/0.4627, allocations: 1.409 MB / 383.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004618/0.4674, allocations: 1.596 MB / 385.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009498/0.4683, allocations: 90.75 kB / 385.3 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006983/0.4753, allocations: 2.084 MB / 387.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001669/0.477, allocations: 0.5303 MB / 387.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001267/0.4783, allocations: 313.6 kB / 388.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005918/0.4842, allocations: 2.604 MB / 390.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.4843, allocations: 0 / 390.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4843, allocations: 0 / 390.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001152/0.4844, allocations: 3 kB / 390.8 MB, free: 12.63 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.007389/0.4918, allocations: 1.91 MB / 392.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.4918, allocations: 10.09 kB / 392.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001168/0.493, allocations: 176.1 kB / 392.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003032/0.4961, allocations: 0.9699 MB / 393.9 MB, free: 11.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002793/0.4964, allocations: 174.3 kB / 394 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000606/0.497, allocations: 108.8 kB / 394.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004725/0.5017, allocations: 1.737 MB / 395.9 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.284e-05/0.5018, allocations: 3.297 kB / 395.9 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001551/0.5019, allocations: 50.55 kB / 395.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002237/0.5022, allocations: 113 kB / 396.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00275/0.5049, allocations: 1.777 MB / 397.8 MB, free: 10.91 MB / 318.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.009997/0.5149, allocations: 6.729 MB / 404.6 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/0.5166, allocations: 1.238 MB / 405.8 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.5176, allocations: 0.7595 MB / 406.6 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004824/0.5224, allocations: 4.291 MB / 410.8 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.5225, allocations: 46.25 kB / 410.9 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007057/0.5232, allocations: 214.7 kB / 411.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.026e-06/0.5232, allocations: 0 / 411.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of matching and sorting (n=112): time 0.01516/0.5384, allocations: 5.709 MB / 416.8 MB, free: 3.207 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.5385, allocations: 145.3 kB / 417 MB, free: 3.047 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001646/0.5402, allocations: 1.247 MB / 418.2 MB, free: 2.426 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.476e-05/0.5403, allocations: 46.27 kB / 418.2 MB, free: 2.391 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003996/0.5407, allocations: 0.6089 MB / 418.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002618/0.541, allocations: 393.3 kB / 419.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.994e-05/0.5411, allocations: 29.75 kB / 419.3 MB, free: 1.684 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.5412, allocations: 362.1 kB / 419.6 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009542/0.5421, allocations: 0.6965 MB / 420.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.5433, allocations: 1.05 MB / 421.4 MB, free: 0 / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/0.5446, allocations: 0.8089 MB / 422.2 MB, free: 15.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.5446, allocations: 0 / 422.2 MB, free: 15.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003566/0.5482, allocations: 2.244 MB / 424.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002979/0.5485, allocations: 377 kB / 424.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/0.5486, allocations: 12 kB / 424.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006413/0.555, allocations: 1.278 MB / 426.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.5563, allocations: 301.6 kB / 426.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00255/0.5588, allocations: 1.602 MB / 428 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001619/0.5605, allocations: 80.45 kB / 428.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/0.5606, allocations: 74.58 kB / 428.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.5607, allocations: 4 kB / 428.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003972/0.5646, allocations: 2.024 MB / 430.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.776e-05/0.5647, allocations: 8 kB / 430.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005666/0.5704, allocations: 1.112 MB / 431.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.5716, allocations: 309.3 kB / 431.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002004/0.5737, allocations: 1.461 MB / 433 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.5753, allocations: 86.92 kB / 433.1 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001494/0.5754, allocations: 70.81 kB / 433.2 MB, free: 6.891 MB / 334.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 (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 initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.001005/0.5764, allocations: 461.6 kB / 433.6 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002956/0.5767, allocations: 142.3 kB / 433.8 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00397/0.5807, allocations: 2.093 MB / 435.9 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.655e-05/0.5807, allocations: 12 kB / 435.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.5808, allocations: 0 / 435.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.5808, allocations: 3.984 kB / 435.9 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005543/0.5863, allocations: 3.582 MB / 439.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.5863, allocations: 0 / 439.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009051/0.5873, allocations: 194.5 kB / 439.7 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003468/0.5907, allocations: 0.9924 MB / 440.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.5909, allocations: 27.98 kB / 440.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0022/0.5931, allocations: 1.617 MB / 442.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5931, allocations: 0 / 442.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004596/0.5977, allocations: 2.9 MB / 445.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/0.5988, allocations: 415 kB / 445.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002311/0.5991, allocations: 20 kB / 445.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.6001, allocations: 87.78 kB / 445.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002242/0.6003, allocations: 101.1 kB / 445.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.6004, allocations: 52.08 kB / 445.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001284/0.6018, allocations: 0.8363 MB / 446.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6018, allocations: 2.734 kB / 446.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003774/0.6055, allocations: 1.16 MB / 447.9 MB, free: 8.48 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.00204/0.6076, allocations: 0.8285 MB / 448.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00586/0.6135, allocations: 2.779 MB / 451.5 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6135, allocations: 0.75 kB / 451.5 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001707/0.6152, allocations: 0.8746 MB / 452.3 MB, free: 4.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002895/0.6181, allocations: 0.6186 MB / 453 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005853/0.624, allocations: 3.567 MB / 456.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009229/0.6249, allocations: 1.292 MB / 457.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00204/0.627, allocations: 0.5847 MB / 458.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003364/0.6273, allocations: 123.4 kB / 458.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6273, allocations: 0 / 458.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of Templates: time 0.06967/0.697, allocations: 40.48 MB / 499 MB, free: 5.605 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches