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.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadModel(ModelicaTest): time 2.133/2.133, allocations: 209.3 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.893e-05/2.903e-05, allocations: 4 kB / 276.2 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3766, allocations: 48.7 MB / 324.9 MB, free: 2.902 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.0238/0.4005, allocations: 13.83 MB / 338.7 MB, free: 9.91 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01343/0.4139, allocations: 5.703 MB / 344.4 MB, free: 6.062 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001397/0.4154, allocations: 31.78 kB / 344.4 MB, free: 6.047 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001431/0.4169, allocations: 317.7 kB / 344.7 MB, free: 5.879 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003723/0.4206, allocations: 0.7301 MB / 345.5 MB, free: 5.227 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006211/0.4269, allocations: 1.3 MB / 346.8 MB, free: 4.227 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002688/0.4296, allocations: 0.9286 MB / 347.7 MB, free: 3.555 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001237/0.4309, allocations: 463.1 kB / 348.1 MB, free: 3.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002022/0.4329, allocations: 0.5686 MB / 348.7 MB, free: 2.965 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001706/0.4347, allocations: 0.5108 MB / 349.2 MB, free: 2.699 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004085/0.4388, allocations: 1.148 MB / 350.4 MB, free: 2.125 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00086/0.4397, allocations: 91.31 kB / 350.5 MB, free: 2.125 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007194/0.4405, allocations: 259.1 kB / 350.7 MB, free: 1.969 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005684/0.4411, allocations: 85 kB / 350.8 MB, free: 1.969 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003983/0.4451, allocations: 1.367 MB / 352.2 MB, free: 1.145 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4451, allocations: 0 / 352.2 MB, free: 1.145 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.4452, allocations: 0 / 352.2 MB, free: 1.145 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.82e-05/0.4452, allocations: 1.344 kB / 352.2 MB, free: 1.145 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.004332/0.4495, allocations: 1.108 MB / 353.3 MB, free: 268 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.4496, allocations: 9.594 kB / 353.3 MB, free: 268 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000926/0.4506, allocations: 112.3 kB / 353.4 MB, free: 212 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00199/0.4526, allocations: 0.599 MB / 354 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/0.4528, allocations: 111.5 kB / 354.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000279/0.4531, allocations: 61.34 kB / 354.2 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003036/0.4562, allocations: 0.9893 MB / 355.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.504e-05/0.4563, allocations: 1.375 kB / 355.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/0.4565, allocations: 27.67 kB / 355.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001375/0.4566, allocations: 52.81 kB / 355.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003063/0.4597, allocations: 0.8967 MB / 356.1 MB, free: 14.5 MB / 298.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.01208/0.4718, allocations: 4.101 MB / 360.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.4737, allocations: 0.6214 MB / 360.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005697/0.4794, allocations: 2.326 MB / 363.2 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001126/0.4806, allocations: 429.8 kB / 363.6 MB, free: 8.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 4.228e-06/0.4806, allocations: 3.938 kB / 363.6 MB, free: 8.176 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.009535/0.4902, allocations: 2.546 MB / 366.1 MB, free: 5.492 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.4903, allocations: 162.2 kB / 366.3 MB, free: 5.297 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/0.4918, allocations: 0.6873 MB / 367 MB, free: 4.605 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001842/0.492, allocations: 33.7 kB / 367 MB, free: 4.566 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004536/0.4925, allocations: 457.6 kB / 367.5 MB, free: 4.113 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002844/0.4928, allocations: 161.8 kB / 367.6 MB, free: 3.953 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.742e-05/0.4929, allocations: 16 kB / 367.6 MB, free: 3.938 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.4931, allocations: 354.8 kB / 368 MB, free: 3.582 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/0.4941, allocations: 345.8 kB / 368.3 MB, free: 3.246 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/0.4953, allocations: 0.6203 MB / 368.9 MB, free: 2.492 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.4966, allocations: 451.6 kB / 369.4 MB, free: 2.047 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/0.4966, allocations: 4 kB / 369.4 MB, free: 2.043 MB / 298.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003866/0.5005, allocations: 1.201 MB / 370.6 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001616/0.5022, allocations: 3.508 MB / 374.1 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.739e-05/0.5022, allocations: 12 kB / 374.1 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001682/0.5039, allocations: 361.4 kB / 374.5 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.5053, allocations: 163.7 kB / 374.6 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/0.5076, allocations: 1.452 MB / 376.1 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.5091, allocations: 55.95 kB / 376.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/0.5092, allocations: 39.98 kB / 376.2 MB, free: 10.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.5093, allocations: 4 kB / 376.2 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003228/0.5125, allocations: 1.094 MB / 377.3 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.068e-05/0.5126, allocations: 8 kB / 377.3 MB, free: 9.785 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.5137, allocations: 261.9 kB / 377.5 MB, free: 9.523 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.515, allocations: 163.7 kB / 377.7 MB, free: 9.363 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003261/0.5183, allocations: 2.379 MB / 380.1 MB, free: 6.828 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009902/0.5193, allocations: 56 kB / 380.1 MB, free: 6.773 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.5195, allocations: 40 kB / 380.2 MB, free: 6.734 MB / 314.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: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete 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.0008232/0.5203, allocations: 322.3 kB / 380.5 MB, free: 6.406 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002693/0.5206, allocations: 79.06 kB / 380.6 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003437/0.524, allocations: 1.041 MB / 381.6 MB, free: 5.266 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/0.5241, allocations: 4 kB / 381.6 MB, free: 5.262 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.5241, allocations: 3.938 kB / 381.6 MB, free: 5.258 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.5241, allocations: 8 kB / 381.6 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005068/0.5292, allocations: 1.831 MB / 383.4 MB, free: 3.348 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.5293, allocations: 3.984 kB / 383.4 MB, free: 3.344 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008248/0.5301, allocations: 79.89 kB / 383.5 MB, free: 3.266 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/0.5316, allocations: 341.5 kB / 383.9 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001474/0.5318, allocations: 19.98 kB / 383.9 MB, free: 2.906 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002129/0.5339, allocations: 1.44 MB / 385.3 MB, free: 1.414 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.534, allocations: 0 / 385.3 MB, free: 1.414 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004102/0.5381, allocations: 1.476 MB / 386.8 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008/0.5389, allocations: 247.9 kB / 387 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002655/0.5392, allocations: 12 kB / 387 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.5402, allocations: 35.88 kB / 387.1 MB, free: 15.6 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002327/0.5405, allocations: 56.3 kB / 387.1 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.5406, allocations: 24.05 kB / 387.2 MB, free: 15.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001097/0.5417, allocations: 0.5224 MB / 387.7 MB, free: 15 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5417, allocations: 0 / 387.7 MB, free: 15 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002843/0.5446, allocations: 0.5896 MB / 388.3 MB, free: 14.41 MB / 330.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: 9 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 5 (timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * 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.001964/0.5466, allocations: 481.6 kB / 388.7 MB, free: 13.94 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005277/0.5519, allocations: 1.588 MB / 390.3 MB, free: 12.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.552, allocations: 0 / 390.3 MB, free: 12.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00186/0.5539, allocations: 461.8 kB / 390.8 MB, free: 11.86 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002507/0.5564, allocations: 271.5 kB / 391 MB, free: 11.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005537/0.562, allocations: 2.019 MB / 393.1 MB, free: 9.535 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008311/0.5629, allocations: 1.025 MB / 394.1 MB, free: 8.484 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004632/0.5634, allocations: 75.41 kB / 394.2 MB, free: 8.41 MB / 330.7 MB Notification: Performance of SimCode: time 1.673e-06/0.5634, allocations: 3.938 kB / 394.2 MB, free: 8.406 MB / 330.7 MB Notification: Performance of Templates: time 0.04841/0.6118, allocations: 21.32 MB / 415.5 MB, free: 3.102 MB / 346.7 MB