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.001323/0.001323, allocations: 114.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001187/0.001187, allocations: 210 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.89 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3089, allocations: 50.55 MB / 409.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03146/0.3404, allocations: 28.86 MB / 438.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02094/0.3614, allocations: 15.03 MB / 453.8 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001879/0.3633, allocations: 39.75 kB / 453.8 MB, free: 5.484 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002152/0.3655, allocations: 0.5824 MB / 454.4 MB, free: 4.898 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006835/0.3724, allocations: 2.305 MB / 456.7 MB, free: 2.582 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009439/0.3819, allocations: 3.723 MB / 460.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005938/0.3878, allocations: 4.142 MB / 464.6 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002123/0.39, allocations: 1.171 MB / 465.8 MB, free: 9.516 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003408/0.3934, allocations: 1.577 MB / 467.3 MB, free: 7.934 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002939/0.3964, allocations: 1.666 MB / 469 MB, free: 6.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005401/0.397, allocations: 160 kB / 469.2 MB, free: 6.105 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005096/0.4021, allocations: 2.445 MB / 471.6 MB, free: 3.656 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009033/0.403, allocations: 0.6116 MB / 472.2 MB, free: 3.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.4044, allocations: 0.8711 MB / 473.1 MB, free: 2.168 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007479/0.4119, allocations: 3.736 MB / 476.8 MB, free: 14.42 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.4119, allocations: 0 / 476.8 MB, free: 14.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4119, allocations: 4 kB / 476.8 MB, free: 14.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.008e-05/0.412, allocations: 3.984 kB / 476.8 MB, free: 14.41 MB / 398.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.005829/0.4178, allocations: 2.196 MB / 479 MB, free: 12.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.4179, allocations: 12.03 kB / 479 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005845/0.4185, allocations: 174.1 kB / 479.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001924/0.4204, allocations: 1.061 MB / 480.3 MB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001926/0.4206, allocations: 183 kB / 480.5 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001953/0.4208, allocations: 99.97 kB / 480.6 MB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002818/0.4236, allocations: 1.757 MB / 482.3 MB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.873e-05/0.4237, allocations: 0 / 482.3 MB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001614/0.4238, allocations: 47.97 kB / 482.4 MB, free: 8.723 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.424, allocations: 109.9 kB / 482.5 MB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002866/0.4269, allocations: 1.776 MB / 484.2 MB, free: 6.828 MB / 398.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.01181/0.4387, allocations: 6.707 MB / 491 MB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001859/0.4406, allocations: 1.242 MB / 492.2 MB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.4417, allocations: 0.7689 MB / 493 MB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006007/0.4477, allocations: 4.267 MB / 497.2 MB, free: 9.082 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.664e-05/0.4478, allocations: 59.44 kB / 497.3 MB, free: 9.016 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007781/0.4486, allocations: 166.8 kB / 497.5 MB, free: 8.852 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.327e-06/0.4486, allocations: 0 / 497.5 MB, free: 8.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=112): time 0.01918/0.4678, allocations: 5.69 MB / 0.4913 GB, free: 3.102 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.832e-05/0.4679, allocations: 145.5 kB / 0.4915 GB, free: 2.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001761/0.4697, allocations: 1.253 MB / 0.4927 GB, free: 1.668 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002889/0.47, allocations: 45.7 kB / 0.4928 GB, free: 1.617 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004642/0.4705, allocations: 0.6091 MB / 0.4933 GB, free: 1 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004206/0.4709, allocations: 394.3 kB / 0.4937 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004686/0.4714, allocations: 291.4 kB / 0.494 GB, free: 324 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.4715, allocations: 301.1 kB / 0.4943 GB, free: 20 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001219/0.4727, allocations: 0.727 MB / 0.495 GB, free: 15.29 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.4742, allocations: 1.064 MB / 0.496 GB, free: 14.08 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002493/0.4767, allocations: 1.739 MB / 0.4977 GB, free: 12.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.4767, allocations: 4 kB / 0.4977 GB, free: 12.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003892/0.4806, allocations: 2.292 MB / 0.5 GB, free: 9.898 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.4806, allocations: 15.94 kB / 0.5 GB, free: 9.883 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.4807, allocations: 8 kB / 0.5 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007371/0.488, allocations: 1.277 MB / 0.5012 GB, free: 8.594 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/0.4895, allocations: 303.5 kB / 0.5015 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002612/0.4922, allocations: 1.599 MB / 0.5031 GB, free: 6.668 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/0.4937, allocations: 51.97 kB / 0.5031 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001792/0.4939, allocations: 71.97 kB / 0.5032 GB, free: 6.547 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001613/0.4955, allocations: 0.9762 MB / 0.5042 GB, free: 5.566 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001354/0.4969, allocations: 1.071 MB / 0.5052 GB, free: 4.348 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002356/0.4993, allocations: 1.722 MB / 0.5069 GB, free: 2.484 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.406e-06/0.4993, allocations: 4 kB / 0.5069 GB, free: 2.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003724/0.503, allocations: 2.191 MB / 0.509 GB, free: 284 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.5031, allocations: 16.14 kB / 0.5091 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.5031, allocations: 12 kB / 0.5091 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006456/0.5095, allocations: 1.097 MB / 0.5101 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/0.511, allocations: 311.5 kB / 0.5104 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/0.5131, allocations: 1.451 MB / 0.5119 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/0.5147, allocations: 63.97 kB / 0.5119 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001813/0.5149, allocations: 75.89 kB / 0.512 GB, free: 13.23 MB / 446.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.0004839/0.5154, allocations: 271.8 kB / 0.5122 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003521/0.5157, allocations: 146.2 kB / 0.5124 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004086/0.5198, allocations: 2.09 MB / 0.5144 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/0.5199, allocations: 19.94 kB / 0.5144 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.5199, allocations: 0 / 0.5144 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-05/0.5199, allocations: 11.97 kB / 0.5145 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005887/0.5258, allocations: 3.577 MB / 0.518 GB, free: 7.047 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.5258, allocations: 0 / 0.518 GB, free: 7.047 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009561/0.5268, allocations: 191.8 kB / 0.5181 GB, free: 6.859 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002353/0.5292, allocations: 0.8634 MB / 0.519 GB, free: 5.992 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/0.5293, allocations: 31.98 kB / 0.519 GB, free: 5.961 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002145/0.5315, allocations: 1.607 MB / 0.5206 GB, free: 4.328 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5315, allocations: 3.938 kB / 0.5206 GB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004531/0.536, allocations: 2.912 MB / 0.5234 GB, free: 1.391 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009353/0.537, allocations: 395.1 kB / 0.5238 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002445/0.5373, allocations: 23.94 kB / 0.5238 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.5383, allocations: 63.95 kB / 0.5239 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002283/0.5385, allocations: 97.11 kB / 0.524 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.5386, allocations: 51.97 kB / 0.524 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001156/0.5398, allocations: 0.8441 MB / 0.5249 GB, free: 15.91 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5398, allocations: 0 / 0.5249 GB, free: 15.91 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002958/0.5428, allocations: 1.163 MB / 0.526 GB, free: 14.74 MB / 462.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.001959/0.5448, allocations: 0.8418 MB / 0.5268 GB, free: 13.88 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006332/0.5511, allocations: 2.863 MB / 0.5296 GB, free: 11.03 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.998e-06/0.5511, allocations: 8.188 kB / 0.5296 GB, free: 11.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.553, allocations: 0.8712 MB / 0.5305 GB, free: 10.15 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003186/0.5562, allocations: 0.6631 MB / 0.5311 GB, free: 9.508 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005678/0.5619, allocations: 3.136 MB / 0.5342 GB, free: 6.344 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007774/0.5628, allocations: 1.284 MB / 0.5354 GB, free: 5.031 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005246/0.5633, allocations: 147.4 kB / 0.5356 GB, free: 4.887 MB / 462.1 MB Notification: Performance of SimCode: time 9.11e-07/0.5633, allocations: 0 / 0.5356 GB, free: 4.887 MB / 462.1 MB Notification: Performance of Templates: time 0.2418/0.8051, allocations: 36.19 MB / 0.5709 GB, free: 106.7 MB / 462.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/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_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches