Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001505/0.001505, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 59.72 kB / 306.9 MB, free: 0.6719 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1058, allocations: 50.54 MB / 357.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.2154/0.3212, allocations: 28.85 MB / 386.3 MB, free: 5.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01911/0.3404, allocations: 15.03 MB / 401.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001892/0.3424, allocations: 43.16 kB / 401.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.344, allocations: 0.5917 MB / 402 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00597/0.35, allocations: 2.303 MB / 404.3 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009915/0.36, allocations: 3.735 MB / 408 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005632/0.3656, allocations: 4.144 MB / 412.2 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001596/0.3672, allocations: 1.166 MB / 413.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00274/0.37, allocations: 1.547 MB / 414.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002309/0.3723, allocations: 1.664 MB / 416.5 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003362/0.3726, allocations: 164 kB / 416.7 MB, free: 452 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005905/0.3786, allocations: 2.437 MB / 419.1 MB, free: 14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007802/0.3794, allocations: 0.6155 MB / 419.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001385/0.3808, allocations: 0.8711 MB / 420.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006916/0.3877, allocations: 3.698 MB / 424.3 MB, free: 8.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3877, allocations: 4 kB / 424.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.556e-06/0.3877, allocations: 0 / 424.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.207e-05/0.3878, allocations: 0 / 424.3 MB, free: 8.793 MB / 334.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.00529/0.3931, allocations: 2.208 MB / 426.5 MB, free: 6.531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3931, allocations: 8.031 kB / 426.5 MB, free: 6.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005287/0.3936, allocations: 174.1 kB / 426.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/0.3951, allocations: 0.9989 MB / 427.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001531/0.3953, allocations: 183 kB / 427.9 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000174/0.3954, allocations: 99.91 kB / 428 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002665/0.3981, allocations: 1.753 MB / 429.7 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.3981, allocations: 0 / 429.7 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001421/0.3983, allocations: 43.97 kB / 429.8 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001481/0.3984, allocations: 113.9 kB / 429.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00283/0.4013, allocations: 1.784 MB / 431.7 MB, free: 1.258 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.01104/0.4123, allocations: 6.716 MB / 438.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001843/0.4142, allocations: 1.243 MB / 439.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001104/0.4153, allocations: 0.7681 MB / 440.4 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005576/0.4209, allocations: 4.271 MB / 444.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/0.421, allocations: 47.56 kB / 444.7 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006645/0.4216, allocations: 166.8 kB / 444.9 MB, free: 3.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.986e-06/0.4217, allocations: 7.938 kB / 444.9 MB, free: 3.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01816/0.4398, allocations: 5.687 MB / 450.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.374e-05/0.4399, allocations: 149.5 kB / 450.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001612/0.4415, allocations: 1.25 MB / 452 MB, free: 12.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.4417, allocations: 45.7 kB / 452 MB, free: 12.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004871/0.4422, allocations: 0.6207 MB / 452.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003238/0.4425, allocations: 386.4 kB / 453 MB, free: 11.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004779/0.443, allocations: 295.4 kB / 453.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.4431, allocations: 301.1 kB / 453.6 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.4442, allocations: 0.7153 MB / 454.3 MB, free: 9.719 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001431/0.4457, allocations: 1.068 MB / 455.4 MB, free: 8.512 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002655/0.4484, allocations: 1.751 MB / 457.1 MB, free: 6.629 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.4484, allocations: 4 kB / 457.1 MB, free: 6.625 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003938/0.4523, allocations: 2.281 MB / 459.4 MB, free: 4.332 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.4524, allocations: 11.94 kB / 459.4 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.4524, allocations: 12 kB / 459.4 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006955/0.4593, allocations: 1.29 MB / 460.7 MB, free: 3.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.4606, allocations: 300.2 kB / 461 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002493/0.4631, allocations: 1.599 MB / 462.6 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.4645, allocations: 55.97 kB / 462.7 MB, free: 1.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/0.4647, allocations: 75.95 kB / 462.8 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001684/0.4664, allocations: 0.9762 MB / 463.7 MB, free: 15.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001466/0.4678, allocations: 1.055 MB / 464.8 MB, free: 14.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002518/0.4704, allocations: 1.718 MB / 466.5 MB, free: 12.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.047e-06/0.4704, allocations: 7.938 kB / 466.5 MB, free: 12.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003945/0.4743, allocations: 2.198 MB / 468.7 MB, free: 10.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.4744, allocations: 8.719 kB / 468.7 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.981e-05/0.4744, allocations: 12.56 kB / 468.7 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006232/0.4806, allocations: 1.101 MB / 469.8 MB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.4818, allocations: 311.5 kB / 470.1 MB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001972/0.4838, allocations: 1.45 MB / 471.6 MB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.485, allocations: 60.53 kB / 471.6 MB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/0.4852, allocations: 67.97 kB / 471.7 MB, free: 7.672 MB / 382.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.0004681/0.4857, allocations: 275.8 kB / 472 MB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003531/0.486, allocations: 150.3 kB / 472.1 MB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004173/0.4902, allocations: 2.087 MB / 474.2 MB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/0.4902, allocations: 12 kB / 474.2 MB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.59e-05/0.4903, allocations: 7.875 kB / 474.2 MB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.4903, allocations: 3.984 kB / 474.2 MB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005652/0.4959, allocations: 3.587 MB / 477.8 MB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.496, allocations: 0 / 477.8 MB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009118/0.4969, allocations: 195.7 kB / 478 MB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002366/0.4993, allocations: 0.8596 MB / 478.9 MB, free: 432 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.4994, allocations: 35.98 kB / 478.9 MB, free: 396 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002255/0.5016, allocations: 1.615 MB / 480.5 MB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5017, allocations: 4 kB / 480.5 MB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004303/0.506, allocations: 2.903 MB / 483.4 MB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006844/0.5067, allocations: 387.2 kB / 483.8 MB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002574/0.5069, allocations: 28.19 kB / 483.8 MB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009774/0.5079, allocations: 59.94 kB / 483.9 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.5081, allocations: 101.1 kB / 484 MB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/0.5083, allocations: 47.97 kB / 484 MB, free: 11.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001104/0.5094, allocations: 0.848 MB / 484.9 MB, free: 10.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5094, allocations: 0 / 484.9 MB, free: 10.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002666/0.5121, allocations: 1.167 MB / 486.1 MB, free: 9.172 MB / 398.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.001932/0.514, allocations: 0.8534 MB / 486.9 MB, free: 8.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007376/0.5214, allocations: 3.284 MB / 490.2 MB, free: 5.023 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.5214, allocations: 4.812 kB / 490.2 MB, free: 5.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001803/0.5232, allocations: 0.8753 MB / 491.1 MB, free: 4.148 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002976/0.5262, allocations: 0.6738 MB / 491.7 MB, free: 3.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005459/0.5317, allocations: 3.105 MB / 494.9 MB, free: 388 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009259/0.5326, allocations: 1.292 MB / 496.1 MB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002002/0.5346, allocations: 0.5823 MB / 496.7 MB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003611/0.535, allocations: 131.4 kB / 496.9 MB, free: 14.34 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.535, allocations: 3.938 kB / 496.9 MB, free: 14.34 MB / 414.1 MB Notification: Performance of Templates: time 0.067/0.602, allocations: 43.81 MB / 0.528 GB, free: 2.727 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches