Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 109.9 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 241.8 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 45.67 kB / 300.6 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1042, allocations: 49.45 MB / 350.1 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01825/0.1225, allocations: 16.66 MB / 366.7 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2106/0.3331, allocations: 7.244 MB / 374 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009665/0.3341, allocations: 36.81 kB / 374 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009276/0.335, allocations: 290.9 kB / 374.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002455/0.3375, allocations: 1.014 MB / 375.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00427/0.3418, allocations: 1.502 MB / 376.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004224/0.3461, allocations: 3.181 MB / 380 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009953/0.3471, allocations: 0.5352 MB / 380.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001431/0.3485, allocations: 0.6884 MB / 381.2 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001172/0.3497, allocations: 0.8024 MB / 382 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.3499, allocations: 44.22 kB / 382 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002959/0.3528, allocations: 1.191 MB / 383.2 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003798/0.3532, allocations: 287.2 kB / 383.5 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005859/0.3538, allocations: 424.8 kB / 383.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001959/0.3558, allocations: 1.321 MB / 385.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3558, allocations: 0 / 385.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3558, allocations: 1.125 kB / 385.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.3558, allocations: 0 / 385.3 MB, free: 8.031 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.002714/0.3586, allocations: 1.259 MB / 386.5 MB, free: 7.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.3586, allocations: 8.781 kB / 386.5 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003483/0.359, allocations: 102.1 kB / 386.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008103/0.3598, allocations: 0.5991 MB / 387.2 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.983e-05/0.3599, allocations: 112.8 kB / 387.3 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.36, allocations: 53.06 kB / 387.4 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.3614, allocations: 0.8919 MB / 388.3 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.3614, allocations: 4 kB / 388.3 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.99e-05/0.3615, allocations: 24.11 kB / 388.3 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-05/0.3616, allocations: 56.08 kB / 388.4 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.3629, allocations: 0.8457 MB / 389.2 MB, free: 5.809 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.005246/0.3682, allocations: 3.446 MB / 392.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009738/0.3692, allocations: 0.6739 MB / 393.3 MB, free: 2.758 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005294/0.3697, allocations: 364.2 kB / 393.7 MB, free: 2.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002557/0.3723, allocations: 2.035 MB / 395.7 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.3723, allocations: 47.81 kB / 395.8 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.435e-06/0.3724, allocations: 0 / 395.8 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006976/0.3793, allocations: 2.829 MB / 398.6 MB, free: 15.08 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/0.3794, allocations: 88.47 kB / 398.7 MB, free: 14.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008136/0.3802, allocations: 0.6776 MB / 399.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.409e-05/0.3803, allocations: 36.36 kB / 399.4 MB, free: 14.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/0.3806, allocations: 345.1 kB / 399.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/0.3807, allocations: 218.3 kB / 399.9 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002531/0.381, allocations: 156.6 kB / 400.1 MB, free: 13.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.3812, allocations: 389.6 kB / 400.5 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005899/0.3818, allocations: 370.9 kB / 400.8 MB, free: 13.42 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007077/0.3825, allocations: 0.521 MB / 401.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.3837, allocations: 0.867 MB / 402.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3838, allocations: 0 / 402.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002028/0.3858, allocations: 1.155 MB / 403.4 MB, free: 11.33 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.3858, allocations: 8 kB / 403.4 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3858, allocations: 4 kB / 403.4 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001336/0.3872, allocations: 452.5 kB / 403.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006708/0.3879, allocations: 151.8 kB / 404 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.3891, allocations: 1.03 MB / 405 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007006/0.3898, allocations: 47.86 kB / 405.1 MB, free: 9.629 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.622e-05/0.3899, allocations: 36.02 kB / 405.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008632/0.3908, allocations: 0.5331 MB / 405.6 MB, free: 9.059 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007153/0.3915, allocations: 0.5082 MB / 406.1 MB, free: 8.492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001259/0.3928, allocations: 0.8539 MB / 407 MB, free: 7.574 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.221e-06/0.3928, allocations: 0 / 407 MB, free: 7.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001946/0.3948, allocations: 1.106 MB / 408.1 MB, free: 6.457 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.3948, allocations: 4 kB / 408.1 MB, free: 6.453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3948, allocations: 4 kB / 408.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007203/0.3955, allocations: 309 kB / 408.4 MB, free: 6.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000656/0.3962, allocations: 171.7 kB / 408.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.3973, allocations: 0.9035 MB / 409.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007323/0.398, allocations: 39.94 kB / 409.5 MB, free: 5.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.615e-05/0.3981, allocations: 35.98 kB / 409.5 MB, free: 4.973 MB / 318.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.000315/0.3984, allocations: 242.9 kB / 409.8 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001927/0.3986, allocations: 79.06 kB / 409.9 MB, free: 4.652 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002123/0.4007, allocations: 1.084 MB / 410.9 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.4008, allocations: 11.94 kB / 411 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.4008, allocations: 0 / 411 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.4008, allocations: 3.984 kB / 411 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003502/0.4043, allocations: 2.011 MB / 413 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.78e-06/0.4043, allocations: 4 kB / 413 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005872/0.4049, allocations: 115.9 kB / 413.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001278/0.4062, allocations: 448.5 kB / 413.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.057e-05/0.4063, allocations: 27.97 kB / 413.6 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.4075, allocations: 1.027 MB / 414.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4076, allocations: 4.625 kB / 414.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002492/0.4101, allocations: 1.599 MB / 416.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004725/0.4105, allocations: 244.1 kB / 416.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000188/0.4107, allocations: 12 kB / 416.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006862/0.4114, allocations: 47.84 kB / 416.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.4116, allocations: 64.5 kB / 416.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.14e-05/0.4117, allocations: 23.98 kB / 416.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006133/0.4123, allocations: 483 kB / 417 MB, free: 13.36 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4123, allocations: 0 / 417 MB, free: 13.36 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001833/0.4141, allocations: 0.5818 MB / 417.6 MB, free: 12.77 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.001407/0.4156, allocations: 481.7 kB / 418.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003044/0.4186, allocations: 1.393 MB / 419.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.4186, allocations: 0 / 419.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009836/0.4196, allocations: 469.8 kB / 419.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001739/0.4214, allocations: 364.1 kB / 420.3 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.4249, allocations: 2.038 MB / 422.3 MB, free: 8.078 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/0.4256, allocations: 0.9913 MB / 423.3 MB, free: 7.059 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000277/0.4258, allocations: 83.41 kB / 423.4 MB, free: 6.977 MB / 334.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4258, allocations: 3.938 kB / 423.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of Templates: time 0.02666/0.4525, allocations: 19.04 MB / 442.5 MB, free: 4.016 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches