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.001041/0.001041, allocations: 106.2 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.4 MB, free: 9.051 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001272, allocations: 60.47 kB / 306.4 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1071, allocations: 50.53 MB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.2095/0.3166, allocations: 30.39 MB / 387.4 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0205/0.3372, allocations: 15.33 MB / 402.7 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002813/0.34, allocations: 64.25 kB / 402.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001803/0.3419, allocations: 0.5312 MB / 403.3 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007568/0.3495, allocations: 2.143 MB / 405.4 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01071/0.3602, allocations: 3.416 MB / 408.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005959/0.3662, allocations: 4.166 MB / 413 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002056/0.3683, allocations: 1.168 MB / 414.2 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00337/0.3716, allocations: 1.558 MB / 415.7 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003384/0.375, allocations: 1.744 MB / 417.5 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007015/0.3758, allocations: 164 kB / 417.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006235/0.382, allocations: 2.441 MB / 420.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001174/0.3832, allocations: 0.6155 MB / 420.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002072/0.3853, allocations: 0.8711 MB / 421.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008925/0.3942, allocations: 3.717 MB / 425.3 MB, free: 7.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3943, allocations: 4 kB / 425.3 MB, free: 7.527 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3943, allocations: 0 / 425.3 MB, free: 7.527 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.678e-05/0.3944, allocations: 0 / 425.3 MB, free: 7.527 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.007338/0.4017, allocations: 2.204 MB / 427.5 MB, free: 5.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/0.4018, allocations: 12.03 kB / 427.5 MB, free: 5.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000982/0.4028, allocations: 174.1 kB / 427.7 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002155/0.4049, allocations: 1.003 MB / 428.7 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002348/0.4052, allocations: 171.1 kB / 428.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003724/0.4056, allocations: 99.91 kB / 428.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004137/0.4097, allocations: 1.761 MB / 430.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.845e-05/0.4098, allocations: 0 / 430.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002021/0.41, allocations: 43.97 kB / 430.7 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001605/0.4101, allocations: 109.9 kB / 430.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003295/0.4134, allocations: 1.792 MB / 432.6 MB, free: 15.98 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.01304/0.4265, allocations: 6.696 MB / 439.3 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002049/0.4286, allocations: 1.245 MB / 440.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.4298, allocations: 0.7651 MB / 441.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006053/0.4359, allocations: 4.271 MB / 445.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.436, allocations: 43.56 kB / 445.7 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009254/0.4369, allocations: 194.7 kB / 445.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 4.408e-06/0.4369, allocations: 4 kB / 445.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01981/0.4567, allocations: 5.684 MB / 451.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.55e-05/0.4568, allocations: 145.5 kB / 451.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001875/0.4587, allocations: 1.25 MB / 452.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.4589, allocations: 45.7 kB / 453 MB, free: 10.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005033/0.4594, allocations: 0.6207 MB / 453.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003931/0.4598, allocations: 382.5 kB / 454 MB, free: 9.766 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005464/0.4604, allocations: 291.4 kB / 454.3 MB, free: 9.477 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.4605, allocations: 305.1 kB / 454.6 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.4618, allocations: 0.7191 MB / 455.3 MB, free: 8.453 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001569/0.4633, allocations: 1.072 MB / 456.3 MB, free: 7.238 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002745/0.4661, allocations: 1.739 MB / 458.1 MB, free: 5.367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.4661, allocations: 4 kB / 458.1 MB, free: 5.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004342/0.4705, allocations: 2.285 MB / 460.4 MB, free: 3.066 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.4705, allocations: 15.97 kB / 460.4 MB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.291e-05/0.4706, allocations: 12 kB / 460.4 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007451/0.478, allocations: 1.286 MB / 461.7 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.4795, allocations: 299.6 kB / 462 MB, free: 1.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00276/0.4823, allocations: 1.599 MB / 463.6 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/0.4839, allocations: 87.78 kB / 463.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002859/0.4842, allocations: 67.97 kB / 463.7 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001948/0.4862, allocations: 0.9807 MB / 464.7 MB, free: 14.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001532/0.4877, allocations: 1.063 MB / 465.8 MB, free: 13.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002649/0.4904, allocations: 1.714 MB / 467.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.154e-05/0.4904, allocations: 3.938 kB / 467.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004152/0.4946, allocations: 2.199 MB / 469.7 MB, free: 9.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.4946, allocations: 15.94 kB / 469.7 MB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.4947, allocations: 12.09 kB / 469.7 MB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006469/0.5011, allocations: 1.099 MB / 470.8 MB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/0.5025, allocations: 307.5 kB / 471.1 MB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00213/0.5046, allocations: 1.458 MB / 472.6 MB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/0.5061, allocations: 87.8 kB / 472.7 MB, free: 6.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002082/0.5064, allocations: 67.97 kB / 472.7 MB, free: 6.348 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.0004764/0.5069, allocations: 275.5 kB / 473 MB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004083/0.5073, allocations: 150.2 kB / 473.1 MB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004327/0.5116, allocations: 2.087 MB / 475.2 MB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/0.5116, allocations: 12 kB / 475.2 MB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.5116, allocations: 3.938 kB / 475.2 MB, free: 3.805 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.5117, allocations: 7.984 kB / 475.3 MB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006001/0.5177, allocations: 3.586 MB / 478.8 MB, free: 160 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.5177, allocations: 7.984 kB / 478.8 MB, free: 152 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009761/0.5187, allocations: 191.8 kB / 479 MB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002431/0.5211, allocations: 0.8557 MB / 479.9 MB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/0.5213, allocations: 35.98 kB / 479.9 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002241/0.5235, allocations: 1.611 MB / 481.5 MB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5235, allocations: 0 / 481.5 MB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00462/0.5282, allocations: 2.911 MB / 484.4 MB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007963/0.529, allocations: 387.1 kB / 484.8 MB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003996/0.5294, allocations: 28 kB / 484.9 MB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001204/0.5306, allocations: 71.84 kB / 484.9 MB, free: 10 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002441/0.5309, allocations: 101.1 kB / 485 MB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.531, allocations: 48.09 kB / 485.1 MB, free: 9.859 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001262/0.5323, allocations: 0.8519 MB / 485.9 MB, free: 9.004 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.633e-06/0.5323, allocations: 288 / 485.9 MB, free: 9.004 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003308/0.5356, allocations: 1.171 MB / 487.1 MB, free: 7.832 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.002444/0.538, allocations: 0.8464 MB / 487.9 MB, free: 6.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007963/0.546, allocations: 3.301 MB / 491.2 MB, free: 3.676 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/0.5461, allocations: 4.062 kB / 491.2 MB, free: 3.672 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002186/0.5483, allocations: 0.8751 MB / 492.1 MB, free: 2.801 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00392/0.5522, allocations: 0.6567 MB / 492.8 MB, free: 2.164 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007133/0.5594, allocations: 3.578 MB / 496.4 MB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00128/0.5607, allocations: 1.296 MB / 497.6 MB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002343/0.563, allocations: 0.5901 MB / 498.2 MB, free: 12.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004351/0.5635, allocations: 127.3 kB / 498.4 MB, free: 12.53 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5635, allocations: 4 kB / 498.4 MB, free: 12.52 MB / 414.1 MB Notification: Performance of Templates: time 0.06651/0.63, allocations: 43.56 MB / 0.5292 GB, free: 1.164 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