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.001227/0.001228, allocations: 116.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.001394/0.001394, allocations: 206 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.058/2.058, allocations: 227.4 MB / 247.6 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002336/0.002336, allocations: 63.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3093, allocations: 50.54 MB / 409.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02989/0.3393, allocations: 28.85 MB / 438.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02133/0.3607, allocations: 15.03 MB / 453.8 MB, free: 5.535 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002121/0.3628, allocations: 43.75 kB / 453.8 MB, free: 5.492 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002028/0.3649, allocations: 0.5862 MB / 454.4 MB, free: 4.902 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00647/0.3714, allocations: 2.302 MB / 456.7 MB, free: 2.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009427/0.3809, allocations: 3.719 MB / 460.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006447/0.3873, allocations: 4.143 MB / 464.6 MB, free: 10.72 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002301/0.3897, allocations: 1.171 MB / 465.8 MB, free: 9.527 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003673/0.3934, allocations: 1.573 MB / 467.3 MB, free: 7.949 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003301/0.3967, allocations: 1.674 MB / 469 MB, free: 6.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005469/0.3973, allocations: 160 kB / 469.2 MB, free: 6.113 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005675/0.403, allocations: 2.441 MB / 471.6 MB, free: 3.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001248/0.4043, allocations: 0.6155 MB / 472.2 MB, free: 3.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001622/0.4059, allocations: 0.8711 MB / 473.1 MB, free: 2.176 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008343/0.4143, allocations: 3.748 MB / 476.8 MB, free: 14.42 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.4143, allocations: 0 / 476.8 MB, free: 14.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4143, allocations: 0 / 476.8 MB, free: 14.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.697e-05/0.4144, allocations: 0 / 476.8 MB, free: 14.42 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.005851/0.4202, allocations: 2.2 MB / 479 MB, free: 12.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.4203, allocations: 8.031 kB / 479.1 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005969/0.4209, allocations: 182.1 kB / 479.2 MB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001949/0.4229, allocations: 1.057 MB / 480.3 MB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/0.423, allocations: 179 kB / 480.5 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000181/0.4232, allocations: 99.91 kB / 480.6 MB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002873/0.4261, allocations: 1.757 MB / 482.3 MB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.094e-05/0.4262, allocations: 4 kB / 482.3 MB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001632/0.4263, allocations: 39.97 kB / 482.4 MB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001671/0.4265, allocations: 113.9 kB / 482.5 MB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003118/0.4296, allocations: 1.788 MB / 484.3 MB, free: 6.82 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.01336/0.443, allocations: 6.699 MB / 491 MB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.445, allocations: 1.226 MB / 492.2 MB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001169/0.4462, allocations: 0.7753 MB / 493 MB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00701/0.4532, allocations: 4.279 MB / 497.2 MB, free: 9.082 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.186e-05/0.4533, allocations: 47.5 kB / 497.3 MB, free: 9.027 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008115/0.4541, allocations: 170.7 kB / 497.5 MB, free: 8.859 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.667e-06/0.4542, allocations: 4 kB / 497.5 MB, free: 8.855 MB / 414.1 MB Notification: Performance of matching and sorting (n=112): time 0.01963/0.4738, allocations: 5.687 MB / 0.4913 GB, free: 3.109 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.253e-05/0.4739, allocations: 145.5 kB / 0.4915 GB, free: 2.938 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001851/0.4758, allocations: 1.25 MB / 0.4927 GB, free: 1.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002935/0.4761, allocations: 49.7 kB / 0.4928 GB, free: 1.625 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006174/0.4767, allocations: 0.6091 MB / 0.4934 GB, free: 1.008 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005906/0.4773, allocations: 390.3 kB / 0.4937 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005922/0.4779, allocations: 295.4 kB / 0.494 GB, free: 332 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.4781, allocations: 301.1 kB / 0.4943 GB, free: 28 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/0.4794, allocations: 0.7153 MB / 0.495 GB, free: 15.3 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.481, allocations: 1.064 MB / 0.496 GB, free: 14.1 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002763/0.4838, allocations: 1.755 MB / 0.4977 GB, free: 12.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.4838, allocations: 0 / 0.4977 GB, free: 12.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.00434/0.4881, allocations: 2.285 MB / 0.5 GB, free: 9.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.4882, allocations: 11.94 kB / 0.5 GB, free: 9.898 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.236e-05/0.4882, allocations: 12 kB / 0.5 GB, free: 9.887 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007097/0.4953, allocations: 1.281 MB / 0.5012 GB, free: 8.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001473/0.4969, allocations: 303.5 kB / 0.5015 GB, free: 8.305 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002717/0.4996, allocations: 1.598 MB / 0.5031 GB, free: 6.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001552/0.5012, allocations: 59.91 kB / 0.5032 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002085/0.5014, allocations: 75.95 kB / 0.5032 GB, free: 6.547 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001687/0.5031, allocations: 0.9801 MB / 0.5042 GB, free: 5.562 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001372/0.5045, allocations: 1.055 MB / 0.5052 GB, free: 4.359 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002495/0.507, allocations: 1.73 MB / 0.5069 GB, free: 2.488 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.768e-06/0.507, allocations: 4 kB / 0.5069 GB, free: 2.484 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003904/0.5109, allocations: 2.195 MB / 0.5091 GB, free: 284 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.511, allocations: 8 kB / 0.5091 GB, free: 276 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.511, allocations: 8 kB / 0.5091 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006261/0.5173, allocations: 1.101 MB / 0.5101 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/0.5187, allocations: 307.6 kB / 0.5104 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002074/0.5208, allocations: 1.457 MB / 0.5119 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/0.5223, allocations: 59.95 kB / 0.5119 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001881/0.5225, allocations: 75.91 kB / 0.512 GB, free: 13.24 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.0005112/0.5231, allocations: 271.8 kB / 0.5122 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00036/0.5234, allocations: 154.2 kB / 0.5124 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004131/0.5276, allocations: 2.093 MB / 0.5144 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-05/0.5276, allocations: 15.94 kB / 0.5145 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.5276, allocations: 3.984 kB / 0.5145 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/0.5277, allocations: 7.984 kB / 0.5145 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006348/0.534, allocations: 3.577 MB / 0.518 GB, free: 7.055 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.188e-06/0.5341, allocations: 3.984 kB / 0.518 GB, free: 7.051 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009601/0.535, allocations: 187.7 kB / 0.5181 GB, free: 6.867 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002349/0.5374, allocations: 0.8596 MB / 0.519 GB, free: 6.004 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/0.5375, allocations: 31.98 kB / 0.519 GB, free: 5.973 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002197/0.5398, allocations: 1.607 MB / 0.5206 GB, free: 4.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.5398, allocations: 3.938 kB / 0.5206 GB, free: 4.336 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004609/0.5444, allocations: 2.912 MB / 0.5234 GB, free: 1.402 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/0.5455, allocations: 391.1 kB / 0.5238 GB, free: 1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002794/0.5458, allocations: 28 kB / 0.5238 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.5468, allocations: 51.95 kB / 0.5239 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/0.547, allocations: 105.1 kB / 0.524 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/0.5472, allocations: 47.97 kB / 0.524 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00118/0.5483, allocations: 0.8441 MB / 0.5248 GB, free: 15.93 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5484, allocations: 4 kB / 0.5249 GB, free: 15.92 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003294/0.5517, allocations: 1.167 MB / 0.526 GB, free: 14.75 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.002281/0.554, allocations: 0.8457 MB / 0.5268 GB, free: 13.89 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006733/0.5607, allocations: 2.867 MB / 0.5296 GB, free: 11.03 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.5608, allocations: 0 / 0.5296 GB, free: 11.03 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002004/0.5628, allocations: 0.8712 MB / 0.5305 GB, free: 10.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003342/0.5661, allocations: 0.6571 MB / 0.5311 GB, free: 9.52 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005822/0.572, allocations: 3.146 MB / 0.5342 GB, free: 6.348 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007569/0.5728, allocations: 1.28 MB / 0.5354 GB, free: 5.039 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000628/0.5734, allocations: 147.4 kB / 0.5356 GB, free: 4.895 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5735, allocations: 0 / 0.5356 GB, free: 4.895 MB / 462.1 MB Notification: Performance of Templates: time 0.3359/0.9094, allocations: 36.39 MB / 0.5711 GB, free: 106.5 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