Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadModel(ModelicaTest): time 2.168/2.168, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004574/0.0004577, allocations: 8 kB / 314.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2756, allocations: 54.88 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.03226/0.3079, allocations: 14.22 MB / 383.4 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01854/0.3265, allocations: 6.089 MB / 389.5 MB, free: 6.348 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001311/0.3279, allocations: 27.75 kB / 389.5 MB, free: 6.32 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001635/0.3295, allocations: 334.5 kB / 389.9 MB, free: 5.992 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004371/0.334, allocations: 0.8335 MB / 390.7 MB, free: 5.156 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009489/0.3435, allocations: 1.512 MB / 392.2 MB, free: 3.641 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004222/0.3477, allocations: 1.34 MB / 393.5 MB, free: 2.301 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00175/0.3495, allocations: 0.5377 MB / 394.1 MB, free: 1.75 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002739/0.3523, allocations: 0.6777 MB / 394.8 MB, free: 1.07 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002013/0.3544, allocations: 0.5529 MB / 395.3 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003178/0.3548, allocations: 40 kB / 395.3 MB, free: 488 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004932/0.3597, allocations: 1.151 MB / 396.5 MB, free: 15.32 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000877/0.3607, allocations: 259.3 kB / 396.8 MB, free: 15.07 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006113/0.3613, allocations: 197.2 kB / 396.9 MB, free: 14.87 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004724/0.3661, allocations: 1.365 MB / 398.3 MB, free: 13.5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.571e-06/0.3661, allocations: 0 / 398.3 MB, free: 13.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.873e-06/0.3662, allocations: 0 / 398.3 MB, free: 13.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.142e-05/0.3662, allocations: 4 kB / 398.3 MB, free: 13.5 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.005434/0.3717, allocations: 1.213 MB / 399.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.3717, allocations: 8.031 kB / 399.5 MB, free: 12.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00104/0.3728, allocations: 114.8 kB / 399.6 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002469/0.3753, allocations: 0.6128 MB / 400.3 MB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002289/0.3756, allocations: 104.7 kB / 400.4 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002767/0.3759, allocations: 52 kB / 400.4 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004055/0.3799, allocations: 1.003 MB / 401.4 MB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.796e-05/0.38, allocations: 0 / 401.4 MB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002037/0.3802, allocations: 28 kB / 401.4 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001871/0.3805, allocations: 53.28 kB / 401.5 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003943/0.3844, allocations: 0.9029 MB / 402.4 MB, free: 9.258 MB / 330.7 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.01515/0.3996, allocations: 4.101 MB / 406.5 MB, free: 4.941 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00263/0.4023, allocations: 0.6331 MB / 407.1 MB, free: 4.301 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00551/0.4079, allocations: 2.322 MB / 409.5 MB, free: 1.727 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009654/0.4089, allocations: 423.2 kB / 409.9 MB, free: 1.297 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 4.639e-06/0.4089, allocations: 0 / 409.9 MB, free: 1.297 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.00722/0.4161, allocations: 2.54 MB / 412.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/0.4163, allocations: 166.5 kB / 412.6 MB, free: 14.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001421/0.4177, allocations: 0.7817 MB / 413.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.4179, allocations: 37.7 kB / 413.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004298/0.4183, allocations: 453.7 kB / 413.8 MB, free: 13.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002481/0.4186, allocations: 173.5 kB / 414 MB, free: 12.97 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.887e-05/0.4187, allocations: 16 kB / 414 MB, free: 12.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.4189, allocations: 342.8 kB / 414.4 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008508/0.4197, allocations: 357.8 kB / 414.7 MB, free: 12.26 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/0.4209, allocations: 0.632 MB / 415.3 MB, free: 11.49 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009936/0.4219, allocations: 451.5 kB / 415.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.775e-06/0.4219, allocations: 7.938 kB / 415.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.003029/0.425, allocations: 1.17 MB / 417 MB, free: 9.844 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000383/0.4254, allocations: 386.6 kB / 417.3 MB, free: 9.336 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.4254, allocations: 8 kB / 417.3 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.4267, allocations: 365.4 kB / 417.7 MB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008628/0.4276, allocations: 167.7 kB / 417.9 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002048/0.4297, allocations: 1.448 MB / 419.3 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009997/0.4307, allocations: 52.09 kB / 419.4 MB, free: 7.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/0.4309, allocations: 39.98 kB / 419.4 MB, free: 7.211 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.4309, allocations: 4 kB / 419.4 MB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002686/0.4336, allocations: 1.063 MB / 420.5 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.986e-05/0.4336, allocations: 8 kB / 420.5 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009106/0.4346, allocations: 269.9 kB / 420.7 MB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008529/0.4354, allocations: 163.7 kB / 420.9 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003102/0.4386, allocations: 2.378 MB / 423.3 MB, free: 3.156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007511/0.4394, allocations: 52.06 kB / 423.3 MB, free: 3.105 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.4395, allocations: 40 kB / 423.4 MB, free: 3.066 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0007491/0.4402, allocations: 398.4 kB / 423.8 MB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/0.4405, allocations: 86.97 kB / 423.8 MB, free: 2.574 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004859/0.4454, allocations: 1.025 MB / 424.9 MB, free: 1.527 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.143e-05/0.4454, allocations: 4 kB / 424.9 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.98e-06/0.4455, allocations: 0 / 424.9 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.731e-05/0.4455, allocations: 0 / 424.9 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008931/0.4545, allocations: 1.85 MB / 426.7 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.4546, allocations: 0 / 426.7 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.4557, allocations: 71.89 kB / 426.8 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002509/0.4583, allocations: 349.5 kB / 427.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001913/0.4585, allocations: 15.98 kB / 427.1 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003894/0.4624, allocations: 1.44 MB / 428.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.162e-06/0.4625, allocations: 0 / 428.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007273/0.4698, allocations: 1.464 MB / 430 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001353/0.4712, allocations: 240 kB / 430.3 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004092/0.4717, allocations: 16.19 kB / 430.3 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001668/0.4734, allocations: 39.97 kB / 430.3 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003814/0.4738, allocations: 52.36 kB / 430.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002034/0.474, allocations: 23.98 kB / 430.4 MB, free: 11.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002115/0.4762, allocations: 0.5224 MB / 430.9 MB, free: 11.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.564e-06/0.4762, allocations: 4 kB / 430.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005269/0.4815, allocations: 0.6013 MB / 431.5 MB, free: 10.68 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.level,tank.medium.T) * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002992/0.4846, allocations: 476.8 kB / 432 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008726/0.4933, allocations: 1.651 MB / 433.7 MB, free: 8.527 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.073e-05/0.4934, allocations: 0 / 433.7 MB, free: 8.527 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002992/0.4964, allocations: 485.7 kB / 434.1 MB, free: 8.039 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003584/0.5001, allocations: 281.9 kB / 434.4 MB, free: 7.762 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00919/0.5093, allocations: 2.05 MB / 436.5 MB, free: 5.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001799/0.5112, allocations: 1.025 MB / 437.5 MB, free: 4.621 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000751/0.512, allocations: 79.41 kB / 437.6 MB, free: 4.547 MB / 362.7 MB Notification: Performance of SimCode: time 2.771e-06/0.512, allocations: 0 / 437.6 MB, free: 4.547 MB / 362.7 MB Notification: Performance of Templates: time 0.04625/0.5583, allocations: 21.47 MB / 459 MB, free: 15.09 MB / 394.7 MB