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.001404/0.001404, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 61.55 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1146, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.1853/0.2999, allocations: 28.85 MB / 387.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01729/0.3173, allocations: 15.03 MB / 402.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00238/0.3197, allocations: 46.81 kB / 402.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001835/0.3215, allocations: 0.5939 MB / 403.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005987/0.3276, allocations: 2.304 MB / 405.7 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009634/0.3372, allocations: 3.73 MB / 409.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007294/0.3445, allocations: 4.144 MB / 413.6 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001698/0.3463, allocations: 1.158 MB / 414.7 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002985/0.3492, allocations: 1.552 MB / 416.3 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002707/0.352, allocations: 1.666 MB / 418 MB, free: 52 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003814/0.3524, allocations: 160 kB / 418.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005776/0.3582, allocations: 2.449 MB / 420.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008246/0.359, allocations: 0.6155 MB / 421.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.3602, allocations: 0.8711 MB / 422.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00553/0.3658, allocations: 3.736 MB / 425.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3658, allocations: 4 kB / 425.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3658, allocations: 0 / 425.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.611e-05/0.3659, allocations: 0 / 425.8 MB, free: 8.195 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.004912/0.3708, allocations: 2.2 MB / 428 MB, free: 5.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3708, allocations: 12.03 kB / 428 MB, free: 5.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005288/0.3714, allocations: 175.2 kB / 428.2 MB, free: 5.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001854/0.3732, allocations: 1.057 MB / 429.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/0.3734, allocations: 183 kB / 429.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001831/0.3736, allocations: 99.91 kB / 429.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002678/0.3763, allocations: 1.761 MB / 431.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/0.3763, allocations: 0 / 431.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001331/0.3764, allocations: 43.97 kB / 431.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001483/0.3766, allocations: 105.9 kB / 431.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002713/0.3793, allocations: 1.788 MB / 433.2 MB, free: 0.6016 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.01095/0.3903, allocations: 6.704 MB / 439.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001879/0.3922, allocations: 1.243 MB / 441.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.3933, allocations: 0.769 MB / 441.9 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005694/0.399, allocations: 4.271 MB / 446.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.3991, allocations: 47.56 kB / 446.2 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006821/0.3998, allocations: 170.7 kB / 446.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.845e-06/0.3998, allocations: 0 / 446.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01757/0.4173, allocations: 5.691 MB / 452.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.818e-05/0.4174, allocations: 149.5 kB / 452.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001591/0.419, allocations: 1.25 MB / 453.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.4192, allocations: 45.7 kB / 453.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004128/0.4196, allocations: 0.6207 MB / 454.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003016/0.4199, allocations: 382.4 kB / 454.5 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004639/0.4204, allocations: 287.4 kB / 454.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.864e-05/0.4205, allocations: 309.1 kB / 455.1 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001118/0.4216, allocations: 0.7192 MB / 455.8 MB, free: 9.074 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001437/0.423, allocations: 1.06 MB / 456.9 MB, free: 7.871 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002485/0.4255, allocations: 1.755 MB / 458.6 MB, free: 5.984 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.4256, allocations: 0 / 458.6 MB, free: 5.984 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003692/0.4293, allocations: 2.28 MB / 460.9 MB, free: 3.691 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.4293, allocations: 12.66 kB / 460.9 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/0.4293, allocations: 15.98 kB / 461 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006974/0.4363, allocations: 1.282 MB / 462.2 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.4376, allocations: 295.5 kB / 462.5 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002668/0.4403, allocations: 1.612 MB / 464.1 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/0.4419, allocations: 59.91 kB / 464.2 MB, free: 400 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002435/0.4422, allocations: 67.97 kB / 464.3 MB, free: 332 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001714/0.4439, allocations: 0.9801 MB / 465.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001451/0.4454, allocations: 1.055 MB / 466.3 MB, free: 14.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002527/0.4479, allocations: 1.726 MB / 468 MB, free: 12.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.128e-05/0.4479, allocations: 7.938 kB / 468 MB, free: 12.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003979/0.4519, allocations: 2.195 MB / 470.2 MB, free: 10.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.4519, allocations: 8 kB / 470.2 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.452, allocations: 8 kB / 470.2 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006448/0.4584, allocations: 1.101 MB / 471.3 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001455/0.4599, allocations: 311.5 kB / 471.6 MB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00209/0.462, allocations: 1.445 MB / 473.1 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.4635, allocations: 63.95 kB / 473.2 MB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002609/0.4638, allocations: 71.97 kB / 473.2 MB, free: 7.027 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.0005886/0.4644, allocations: 275.8 kB / 473.5 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004979/0.4649, allocations: 142.3 kB / 473.6 MB, free: 6.609 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004407/0.4693, allocations: 2.101 MB / 475.7 MB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/0.4694, allocations: 12 kB / 475.7 MB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.4694, allocations: 3.938 kB / 475.7 MB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.407e-05/0.4694, allocations: 7.969 kB / 475.8 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006406/0.4758, allocations: 3.569 MB / 479.3 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.4758, allocations: 0 / 479.3 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000994/0.4768, allocations: 199.7 kB / 479.5 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002424/0.4793, allocations: 0.8596 MB / 480.4 MB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000127/0.4794, allocations: 31.98 kB / 480.4 MB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002278/0.4817, allocations: 1.607 MB / 482 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.4817, allocations: 0 / 482 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00473/0.4865, allocations: 2.916 MB / 484.9 MB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009756/0.4875, allocations: 387.2 kB / 485.3 MB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003805/0.4879, allocations: 20 kB / 485.3 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/0.4891, allocations: 59.95 kB / 485.4 MB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.4893, allocations: 101.1 kB / 485.5 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001497/0.4895, allocations: 51.97 kB / 485.5 MB, free: 10.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0014/0.4909, allocations: 0.8441 MB / 486.4 MB, free: 9.719 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4909, allocations: 0 / 486.4 MB, free: 9.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003546/0.4945, allocations: 1.164 MB / 487.5 MB, free: 8.555 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.002414/0.4969, allocations: 0.8579 MB / 488.4 MB, free: 7.684 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006728/0.5036, allocations: 2.863 MB / 491.3 MB, free: 4.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/0.5037, allocations: 3.938 kB / 491.3 MB, free: 4.816 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001939/0.5056, allocations: 0.8751 MB / 492.1 MB, free: 3.945 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003831/0.5095, allocations: 0.658 MB / 492.8 MB, free: 3.297 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006303/0.5158, allocations: 3.072 MB / 495.9 MB, free: 216 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/0.5169, allocations: 1.288 MB / 497.2 MB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002126/0.5191, allocations: 0.5939 MB / 497.8 MB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004428/0.5195, allocations: 127.4 kB / 497.9 MB, free: 14.18 MB / 414.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5195, allocations: 4 kB / 497.9 MB, free: 14.17 MB / 414.1 MB Notification: Performance of Templates: time 0.07081/0.5904, allocations: 43.77 MB / 0.529 GB, free: 2.566 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 -s gbode -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