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.001475/0.001475, allocations: 100.9 kB / 17.59 MB, free: 5.426 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.00149/0.00149, allocations: 187.6 kB / 18.51 MB, free: 4.504 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.392/1.392, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 47.41 kB / 301.3 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1058, allocations: 49.45 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01801/0.1238, allocations: 15.84 MB / 366.6 MB, free: 4.516 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2117/0.3356, allocations: 6.895 MB / 373.5 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009444/0.3366, allocations: 21.94 kB / 373.5 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001064/0.3377, allocations: 336.5 kB / 373.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003417/0.3411, allocations: 1.065 MB / 374.9 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00582/0.347, allocations: 1.792 MB / 376.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003911/0.3509, allocations: 2.148 MB / 378.8 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001419/0.3523, allocations: 0.601 MB / 379.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002284/0.3546, allocations: 0.7836 MB / 380.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00178/0.3564, allocations: 0.8022 MB / 381 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002444/0.3567, allocations: 83.34 kB / 381.1 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0034/0.3601, allocations: 1.211 MB / 382.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004523/0.3606, allocations: 315.8 kB / 382.6 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007761/0.3614, allocations: 457.4 kB / 383 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003824/0.3652, allocations: 1.832 MB / 384.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3652, allocations: 1.031 kB / 384.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3652, allocations: 0 / 384.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.054e-05/0.3653, allocations: 0 / 384.9 MB, free: 8.109 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.003061/0.3683, allocations: 1.257 MB / 386.1 MB, free: 7.391 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.3684, allocations: 13.38 kB / 386.1 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003461/0.3687, allocations: 96.83 kB / 386.2 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008325/0.3696, allocations: 0.5933 MB / 386.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.713e-05/0.3697, allocations: 105.6 kB / 386.9 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.3698, allocations: 58.19 kB / 387 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.3712, allocations: 0.9008 MB / 387.9 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.66e-05/0.3712, allocations: 1.844 kB / 387.9 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-05/0.3713, allocations: 26.58 kB / 387.9 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.052e-05/0.3714, allocations: 48.22 kB / 388 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.3728, allocations: 0.8455 MB / 388.8 MB, free: 6.012 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.005311/0.3781, allocations: 3.469 MB / 392.3 MB, free: 3.305 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009638/0.3791, allocations: 0.6573 MB / 392.9 MB, free: 2.961 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005409/0.3796, allocations: 376.1 kB / 393.3 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002596/0.3822, allocations: 2.034 MB / 395.3 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.3823, allocations: 39.25 kB / 395.4 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.615e-06/0.3823, allocations: 0 / 395.4 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006855/0.3891, allocations: 2.842 MB / 398.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.3892, allocations: 82.95 kB / 398.3 MB, free: 15.19 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008092/0.39, allocations: 0.6822 MB / 399 MB, free: 14.8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.877e-05/0.3901, allocations: 40.14 kB / 399 MB, free: 14.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00023/0.3904, allocations: 329.8 kB / 399.3 MB, free: 14.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/0.3905, allocations: 226.6 kB / 399.6 MB, free: 14.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000252/0.3908, allocations: 151.6 kB / 399.7 MB, free: 14.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.391, allocations: 390.2 kB / 400.1 MB, free: 13.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005991/0.3916, allocations: 375.2 kB / 400.5 MB, free: 13.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006925/0.3923, allocations: 0.5125 MB / 401 MB, free: 13.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/0.3935, allocations: 0.8616 MB / 401.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.3935, allocations: 0 / 401.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001963/0.3955, allocations: 1.166 MB / 403 MB, free: 11.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.3955, allocations: 8.094 kB / 403 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.3956, allocations: 8.562 kB / 403 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001273/0.3968, allocations: 452.4 kB / 403.5 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006482/0.3975, allocations: 167.7 kB / 403.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.3987, allocations: 1.017 MB / 404.6 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006801/0.3994, allocations: 28.03 kB / 404.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.623e-05/0.3994, allocations: 35.98 kB / 404.7 MB, free: 10 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008329/0.4003, allocations: 0.5331 MB / 405.2 MB, free: 9.469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006782/0.401, allocations: 0.5058 MB / 405.7 MB, free: 8.906 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001219/0.4022, allocations: 0.8507 MB / 406.6 MB, free: 7.996 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.827e-06/0.4022, allocations: 1.641 kB / 406.6 MB, free: 7.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001902/0.4041, allocations: 1.11 MB / 407.7 MB, free: 6.875 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.4042, allocations: 7.938 kB / 407.7 MB, free: 6.867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.4042, allocations: 4 kB / 407.7 MB, free: 6.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006917/0.4049, allocations: 310 kB / 408 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006332/0.4055, allocations: 167.7 kB / 408.2 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009927/0.4065, allocations: 0.9073 MB / 409.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007142/0.4072, allocations: 36.03 kB / 409.1 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.959e-05/0.4073, allocations: 31.98 kB / 409.2 MB, free: 5.395 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.0003215/0.4077, allocations: 228.1 kB / 409.4 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/0.4078, allocations: 71.16 kB / 409.5 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002071/0.4099, allocations: 1.102 MB / 410.6 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.41, allocations: 11.94 kB / 410.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.41, allocations: 4 kB / 410.6 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.41, allocations: 3.984 kB / 410.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00318/0.4132, allocations: 2.011 MB / 412.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.4132, allocations: 0.875 kB / 412.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005756/0.4138, allocations: 123.8 kB / 412.7 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001137/0.4149, allocations: 445.3 kB / 413.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.879e-05/0.415, allocations: 19.98 kB / 413.2 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.4161, allocations: 1.025 MB / 414.2 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4161, allocations: 0 / 414.2 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/0.4186, allocations: 1.599 MB / 415.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000471/0.4191, allocations: 252 kB / 416 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.4192, allocations: 8 kB / 416 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005767/0.4198, allocations: 39.97 kB / 416.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.4199, allocations: 60.52 kB / 416.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.217e-05/0.42, allocations: 23.98 kB / 416.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000597/0.4206, allocations: 483 kB / 416.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4206, allocations: 0 / 416.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001807/0.4224, allocations: 0.5779 MB / 417.2 MB, free: 13.21 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.001171/0.4236, allocations: 494.3 kB / 417.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003356/0.427, allocations: 1.556 MB / 419.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.427, allocations: 4.25 kB / 419.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009549/0.428, allocations: 467.5 kB / 419.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/0.4299, allocations: 381.1 kB / 420.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003378/0.4333, allocations: 1.788 MB / 421.9 MB, free: 8.566 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005377/0.4338, allocations: 0.9872 MB / 422.9 MB, free: 7.551 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000265/0.4341, allocations: 87.34 kB / 422.9 MB, free: 7.465 MB / 334.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4341, allocations: 0 / 422.9 MB, free: 7.465 MB / 334.1 MB Notification: Performance of Templates: time 0.02655/0.4607, allocations: 19.05 MB / 442 MB, free: 4.492 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