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.001192/0.001192, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 67.17 kB / 306.9 MB, free: 1.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1069, allocations: 50.53 MB / 357.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.2246/0.3315, allocations: 30.44 MB / 387.9 MB, free: 4.645 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02181/0.3533, allocations: 15.77 MB / 403.6 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00313/0.3565, allocations: 63.91 kB / 403.7 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002187/0.3587, allocations: 0.5113 MB / 404.2 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007228/0.366, allocations: 2.164 MB / 406.4 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01102/0.3771, allocations: 3.168 MB / 409.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008742/0.3858, allocations: 6.169 MB / 415.7 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0021/0.388, allocations: 1.029 MB / 416.7 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003307/0.3913, allocations: 1.343 MB / 418.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003294/0.3946, allocations: 1.662 MB / 419.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000426/0.3951, allocations: 88 kB / 419.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006081/0.4012, allocations: 2.39 MB / 422.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009514/0.4021, allocations: 0.5452 MB / 422.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001506/0.4037, allocations: 0.8085 MB / 423.6 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005211/0.4089, allocations: 2.69 MB / 426.3 MB, free: 7.277 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.4089, allocations: 0 / 426.3 MB, free: 7.277 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4089, allocations: 0 / 426.3 MB, free: 7.277 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.485e-05/0.4089, allocations: 0 / 426.3 MB, free: 7.277 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.007215/0.4162, allocations: 2.2 MB / 428.5 MB, free: 5.023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.4162, allocations: 8.031 kB / 428.5 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009166/0.4172, allocations: 178.1 kB / 428.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0025/0.4197, allocations: 1.007 MB / 429.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002404/0.4199, allocations: 179 kB / 429.8 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002829/0.4202, allocations: 103.9 kB / 429.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004757/0.425, allocations: 1.753 MB / 431.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.993e-05/0.4251, allocations: 0 / 431.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002444/0.4253, allocations: 47.97 kB / 431.7 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002497/0.4256, allocations: 113.9 kB / 431.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004814/0.4304, allocations: 1.776 MB / 433.6 MB, free: 15.74 MB / 350.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.01996/0.4504, allocations: 6.703 MB / 440.3 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004021/0.4545, allocations: 1.242 MB / 441.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0024/0.4569, allocations: 0.765 MB / 442.3 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01163/0.4686, allocations: 4.275 MB / 446.6 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.143e-05/0.4687, allocations: 47.56 kB / 446.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001671/0.4704, allocations: 206.6 kB / 446.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 7.424e-06/0.4704, allocations: 3.938 kB / 446.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.0386/0.509, allocations: 5.684 MB / 452.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.5092, allocations: 145.5 kB / 452.7 MB, free: 11.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003788/0.513, allocations: 1.253 MB / 453.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004648/0.5135, allocations: 49.7 kB / 454 MB, free: 10.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000883/0.5144, allocations: 0.6052 MB / 454.6 MB, free: 9.887 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009315/0.5154, allocations: 402.3 kB / 455 MB, free: 9.488 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001273/0.5167, allocations: 283.4 kB / 455.3 MB, free: 9.207 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.5169, allocations: 301.1 kB / 455.6 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002675/0.5196, allocations: 0.727 MB / 456.3 MB, free: 8.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002989/0.5226, allocations: 1.06 MB / 457.3 MB, free: 6.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005602/0.5282, allocations: 1.743 MB / 459.1 MB, free: 5.105 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-05/0.5283, allocations: 4 kB / 459.1 MB, free: 5.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.008125/0.5364, allocations: 2.292 MB / 461.4 MB, free: 2.797 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.729e-05/0.5365, allocations: 11.94 kB / 461.4 MB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.987e-05/0.5365, allocations: 8 kB / 461.4 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01394/0.5505, allocations: 1.282 MB / 462.7 MB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002553/0.5531, allocations: 299.5 kB / 463 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004893/0.558, allocations: 1.599 MB / 464.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003022/0.5611, allocations: 79.8 kB / 464.7 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005126/0.5616, allocations: 71.97 kB / 464.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003495/0.5652, allocations: 0.9762 MB / 465.7 MB, free: 14.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002922/0.5681, allocations: 1.063 MB / 466.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005359/0.5735, allocations: 1.726 MB / 468.5 MB, free: 11.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.85e-05/0.5735, allocations: 7.938 kB / 468.5 MB, free: 11.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.006886/0.5804, allocations: 2.191 MB / 470.7 MB, free: 9.148 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.5805, allocations: 8 kB / 470.7 MB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/0.5805, allocations: 15.98 kB / 470.7 MB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006816/0.5873, allocations: 1.096 MB / 471.8 MB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.5888, allocations: 312.4 kB / 472.1 MB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002265/0.5911, allocations: 1.45 MB / 473.6 MB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/0.5928, allocations: 91.78 kB / 473.7 MB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002801/0.5931, allocations: 71.97 kB / 473.7 MB, free: 6.09 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.000612/0.5937, allocations: 271.8 kB / 474 MB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004961/0.5942, allocations: 150.2 kB / 474.1 MB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004653/0.5989, allocations: 2.094 MB / 476.2 MB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/0.5989, allocations: 12 kB / 476.2 MB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.5989, allocations: 3.938 kB / 476.2 MB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/0.599, allocations: 7.969 kB / 476.3 MB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006553/0.6055, allocations: 3.579 MB / 479.8 MB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/0.6055, allocations: 4 kB / 479.8 MB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009764/0.6065, allocations: 191.8 kB / 480 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003987/0.6105, allocations: 0.9883 MB / 481 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001955/0.6108, allocations: 35.98 kB / 481 MB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002573/0.6133, allocations: 1.611 MB / 482.7 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.6134, allocations: 320 / 482.7 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004993/0.6184, allocations: 2.911 MB / 485.6 MB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009598/0.6194, allocations: 395 kB / 486 MB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004249/0.6198, allocations: 32.17 kB / 486 MB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/0.6211, allocations: 67.94 kB / 486.1 MB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002541/0.6214, allocations: 101 kB / 486.2 MB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001565/0.6216, allocations: 51.97 kB / 486.2 MB, free: 9.461 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001509/0.6231, allocations: 0.8441 MB / 487 MB, free: 8.613 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6231, allocations: 0 / 487 MB, free: 8.613 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003572/0.6267, allocations: 1.167 MB / 488.2 MB, free: 7.445 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.002441/0.6291, allocations: 0.8531 MB / 489.1 MB, free: 6.586 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007102/0.6363, allocations: 2.836 MB / 491.9 MB, free: 3.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/0.6363, allocations: 4.062 kB / 491.9 MB, free: 3.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002088/0.6384, allocations: 0.875 MB / 492.8 MB, free: 2.879 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003562/0.642, allocations: 0.6265 MB / 493.4 MB, free: 2.262 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006725/0.6487, allocations: 3.64 MB / 497 MB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001038/0.6498, allocations: 1.28 MB / 498.3 MB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006551/0.6505, allocations: 151.3 kB / 498.5 MB, free: 13.15 MB / 414.1 MB Notification: Performance of SimCode: time 3.016e-06/0.6505, allocations: 0 / 498.5 MB, free: 13.15 MB / 414.1 MB Notification: Performance of Templates: time 0.05711/0.7076, allocations: 36.01 MB / 0.522 GB, free: 9.215 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/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