Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001195/0.001194, allocations: 115.8 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.001543/0.001543, allocations: 199.5 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.383/1.383, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 59.19 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1152, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2057/0.3209, allocations: 15.95 MB / 374.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009747/0.3307, allocations: 6.924 MB / 381.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008934/0.3316, allocations: 25.78 kB / 381.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009159/0.3326, allocations: 329.9 kB / 382.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00279/0.3354, allocations: 1.081 MB / 383.2 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005518/0.3409, allocations: 1.806 MB / 385 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00325/0.3442, allocations: 2.154 MB / 387.1 MB, free: 7.109 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001121/0.3453, allocations: 0.5942 MB / 387.7 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001468/0.3468, allocations: 0.8015 MB / 388.5 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001093/0.3479, allocations: 0.7964 MB / 389.3 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001564/0.3481, allocations: 83.03 kB / 389.4 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002917/0.351, allocations: 1.238 MB / 390.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003781/0.3514, allocations: 319.7 kB / 391 MB, free: 5.742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005438/0.3519, allocations: 457.7 kB / 391.4 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002704/0.3547, allocations: 1.854 MB / 393.3 MB, free: 4.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3547, allocations: 0 / 393.3 MB, free: 4.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3547, allocations: 0 / 393.3 MB, free: 4.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.796e-05/0.3547, allocations: 0 / 393.3 MB, free: 4.367 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002428/0.3571, allocations: 1.264 MB / 394.5 MB, free: 3.391 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.3572, allocations: 13.03 kB / 394.5 MB, free: 3.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003602/0.3576, allocations: 95.62 kB / 394.6 MB, free: 3.344 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009822/0.3586, allocations: 0.6322 MB / 395.3 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.563e-05/0.3586, allocations: 107.4 kB / 395.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.86e-05/0.3588, allocations: 54.45 kB / 395.4 MB, free: 2.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.3601, allocations: 0.9032 MB / 396.3 MB, free: 2.168 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.3601, allocations: 1.375 kB / 396.3 MB, free: 2.168 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-05/0.3602, allocations: 21.48 kB / 396.4 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.838e-05/0.3603, allocations: 53.03 kB / 396.4 MB, free: 2.137 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.3615, allocations: 0.8424 MB / 397.3 MB, free: 1.715 MB / 302.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.005322/0.3668, allocations: 3.454 MB / 400.7 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009987/0.3678, allocations: 0.6629 MB / 401.4 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005114/0.3684, allocations: 373.2 kB / 401.7 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002749/0.3711, allocations: 2.025 MB / 403.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.3712, allocations: 41.22 kB / 403.8 MB, free: 12.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.853e-06/0.3712, allocations: 0 / 403.8 MB, free: 12.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006873/0.3781, allocations: 2.839 MB / 406.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.865e-05/0.3782, allocations: 89.61 kB / 406.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009239/0.3791, allocations: 0.6799 MB / 407.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.527e-05/0.3792, allocations: 41.64 kB / 407.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000233/0.3794, allocations: 328.4 kB / 407.8 MB, free: 9.703 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/0.3796, allocations: 232.7 kB / 408 MB, free: 9.473 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002408/0.3799, allocations: 146.6 kB / 408.1 MB, free: 9.324 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.38, allocations: 390.7 kB / 408.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005855/0.3806, allocations: 377.8 kB / 408.9 MB, free: 8.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007147/0.3813, allocations: 0.5113 MB / 409.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.3826, allocations: 0.8638 MB / 410.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.3826, allocations: 8 kB / 410.3 MB, free: 7.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001986/0.3846, allocations: 1.161 MB / 411.4 MB, free: 5.887 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.3847, allocations: 8 kB / 411.4 MB, free: 5.879 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.3847, allocations: 4 kB / 411.4 MB, free: 5.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001299/0.386, allocations: 448.3 kB / 411.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006742/0.3867, allocations: 171.7 kB / 412 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.3879, allocations: 1.017 MB / 413.1 MB, free: 4.227 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006456/0.3886, allocations: 32.03 kB / 413.1 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.601e-05/0.3887, allocations: 39.98 kB / 413.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001019/0.3897, allocations: 0.5307 MB / 413.7 MB, free: 3.625 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009217/0.3906, allocations: 0.5043 MB / 414.2 MB, free: 3.059 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00184/0.3925, allocations: 0.8451 MB / 415 MB, free: 2.156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.819e-06/0.3925, allocations: 4 kB / 415 MB, free: 2.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002647/0.3952, allocations: 1.11 MB / 416.1 MB, free: 1.031 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.3952, allocations: 4 kB / 416.1 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.3952, allocations: 8 kB / 416.1 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/0.3963, allocations: 304.8 kB / 416.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008998/0.3972, allocations: 167.7 kB / 416.6 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.3986, allocations: 0.9111 MB / 417.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008441/0.3994, allocations: 32.03 kB / 417.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.3995, allocations: 35.98 kB / 417.6 MB, free: 15.55 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (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 (84): * Single equations (assignments): 83 * 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004469/0.4, allocations: 233 kB / 417.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002355/0.4002, allocations: 79.06 kB / 417.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002868/0.4031, allocations: 1.091 MB / 419 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.4031, allocations: 8 kB / 419 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.228e-06/0.4032, allocations: 0 / 419 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.4032, allocations: 7.922 kB / 419 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004507/0.4077, allocations: 2 MB / 421 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.4077, allocations: 0 / 421 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007913/0.4085, allocations: 123.8 kB / 421.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001519/0.4101, allocations: 440.5 kB / 421.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.959e-05/0.4102, allocations: 15.98 kB / 421.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00169/0.4119, allocations: 1.027 MB / 422.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.4119, allocations: 11.88 kB / 422.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003544/0.4154, allocations: 1.589 MB / 424.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006915/0.4161, allocations: 244 kB / 424.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.4163, allocations: 12 kB / 424.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007607/0.4171, allocations: 39.97 kB / 424.5 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/0.4173, allocations: 60.52 kB / 424.5 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.4175, allocations: 27.98 kB / 424.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009817/0.4184, allocations: 479 kB / 425 MB, free: 7.949 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4185, allocations: 0 / 425 MB, free: 7.949 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002138/0.4206, allocations: 0.5857 MB / 425.6 MB, free: 7.363 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001424/0.422, allocations: 0.4947 MB / 426.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004074/0.4261, allocations: 1.401 MB / 427.5 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.4261, allocations: 0 / 427.5 MB, free: 5.461 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.4274, allocations: 471.5 kB / 428 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00229/0.4297, allocations: 378.6 kB / 428.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004343/0.4341, allocations: 1.738 MB / 430.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008282/0.435, allocations: 0.995 MB / 431.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00143/0.4364, allocations: 310.5 kB / 431.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.4367, allocations: 71.42 kB / 431.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4367, allocations: 0 / 431.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of Templates: time 0.03777/0.4745, allocations: 23.01 MB / 454.5 MB, free: 10.6 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches