Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadModel(ModelicaTest): time 2.34/2.34, allocations: 234.9 MB / 250.1 MB, free: 10.98 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.387e-05, allocations: 4 kB / 308 MB, free: 0.957 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3649, allocations: 54.88 MB / 362.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice): time 0.02476/0.3897, allocations: 14.1 MB / 377 MB, free: 13.74 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008386/0.3981, allocations: 3.582 MB / 380.6 MB, free: 10.15 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008831/0.3991, allocations: 23.81 kB / 380.6 MB, free: 10.12 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.4002, allocations: 222.8 kB / 380.8 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002283/0.4025, allocations: 0.5568 MB / 381.4 MB, free: 9.348 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003099/0.4056, allocations: 0.6819 MB / 382 MB, free: 8.664 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001887/0.4076, allocations: 0.6417 MB / 382.7 MB, free: 8.02 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007513/0.4084, allocations: 299.4 kB / 383 MB, free: 7.727 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.4097, allocations: 422.8 kB / 383.4 MB, free: 7.312 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007072/0.4104, allocations: 291.1 kB / 383.7 MB, free: 7.027 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001757/0.4122, allocations: 0.4916 MB / 384.2 MB, free: 6.535 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003307/0.4126, allocations: 44 kB / 384.2 MB, free: 6.492 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002477/0.4128, allocations: 123.6 kB / 384.3 MB, free: 6.371 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003003/0.4131, allocations: 68 kB / 384.4 MB, free: 6.305 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001845/0.415, allocations: 0.7422 MB / 385.1 MB, free: 5.562 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.415, allocations: 0 / 385.1 MB, free: 5.562 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.4151, allocations: 4 kB / 385.1 MB, free: 5.559 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.084e-05/0.4151, allocations: 0 / 385.1 MB, free: 5.559 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001954/0.4171, allocations: 0.8243 MB / 386 MB, free: 4.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.4171, allocations: 8.031 kB / 386 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005192/0.4177, allocations: 79.23 kB / 386 MB, free: 4.594 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.4189, allocations: 496.5 kB / 386.5 MB, free: 4.066 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.308e-05/0.419, allocations: 32.94 kB / 386.6 MB, free: 4.035 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.4191, allocations: 48 kB / 386.6 MB, free: 3.988 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.4207, allocations: 0.6339 MB / 387.2 MB, free: 3.301 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.293e-05/0.4208, allocations: 0 / 387.2 MB, free: 3.301 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.346e-05/0.4209, allocations: 20 kB / 387.3 MB, free: 3.281 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/0.4209, allocations: 15.98 kB / 387.3 MB, free: 3.266 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.4223, allocations: 0.519 MB / 387.8 MB, free: 2.746 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006007/0.4283, allocations: 3.185 MB / 391 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006183/0.429, allocations: 212.2 kB / 391.2 MB, free: 15.15 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002331/0.4313, allocations: 1.099 MB / 392.3 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004834/0.4319, allocations: 192.9 kB / 392.5 MB, free: 13.74 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 4.739e-06/0.4319, allocations: 0 / 392.5 MB, free: 13.74 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.001303/0.4332, allocations: 476.2 kB / 392.9 MB, free: 13.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.4334, allocations: 166.2 kB / 393.1 MB, free: 13.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008188/0.4342, allocations: 437.9 kB / 393.5 MB, free: 12.61 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.959e-05/0.4343, allocations: 29.7 kB / 393.6 MB, free: 12.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003914/0.4347, allocations: 405 kB / 394 MB, free: 12.17 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.4348, allocations: 86.83 kB / 394 MB, free: 12.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.991e-05/0.4349, allocations: 12 kB / 394.1 MB, free: 12.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.4351, allocations: 338.8 kB / 394.4 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003594/0.4354, allocations: 121 kB / 394.5 MB, free: 11.62 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006081/0.4361, allocations: 413.4 kB / 394.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005269/0.4366, allocations: 218.6 kB / 395.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.4366, allocations: 4 kB / 395.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001534/0.4382, allocations: 0.5751 MB / 395.7 MB, free: 10.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001885/0.4401, allocations: 3.684 MB / 399.4 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.926e-05/0.4402, allocations: 12 kB / 399.4 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.412e-05/0.4403, allocations: 12 kB / 399.4 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002481/0.4427, allocations: 211.7 kB / 399.6 MB, free: 6.062 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007406/0.4435, allocations: 0.625 MB / 400.2 MB, free: 5.414 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008021/0.4444, allocations: 83.16 kB / 400.3 MB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.4445, allocations: 44.08 kB / 400.4 MB, free: 5.289 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.4445, allocations: 2.969 kB / 400.4 MB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001444/0.446, allocations: 0.5293 MB / 400.9 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/0.446, allocations: 11.98 kB / 400.9 MB, free: 4.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.549e-05/0.4461, allocations: 20.16 kB / 400.9 MB, free: 4.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008132/0.4469, allocations: 123.8 kB / 401 MB, free: 4.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.601e-05/0.4469, allocations: 19.92 kB / 401.1 MB, free: 4.582 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005033/0.4475, allocations: 59.58 kB / 401.1 MB, free: 4.523 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.688e-05/0.4476, allocations: 35.94 kB / 401.2 MB, free: 4.488 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005053/0.4481, allocations: 235.2 kB / 401.4 MB, free: 4.242 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.4483, allocations: 63.33 kB / 401.4 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002287/0.4506, allocations: 0.6588 MB / 402.1 MB, free: 3.512 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.526e-05/0.4506, allocations: 4 kB / 402.1 MB, free: 3.508 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.4506, allocations: 0 / 402.1 MB, free: 3.508 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.4506, allocations: 3.984 kB / 402.1 MB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.4517, allocations: 493 kB / 402.6 MB, free: 2.973 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.4517, allocations: 7.984 kB / 402.6 MB, free: 2.965 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.4528, allocations: 115.8 kB / 402.7 MB, free: 2.852 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.167e-05/0.4529, allocations: 4 kB / 402.7 MB, free: 2.848 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.696e-05/0.4529, allocations: 8 kB / 402.7 MB, free: 2.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005308/0.4535, allocations: 0.5938 MB / 403.3 MB, free: 2.223 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/0.4535, allocations: 7.922 kB / 403.3 MB, free: 2.215 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.4546, allocations: 434.7 kB / 403.8 MB, free: 1.766 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003977/0.455, allocations: 200.1 kB / 404 MB, free: 1.551 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.4552, allocations: 12 kB / 404 MB, free: 1.539 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000387/0.4556, allocations: 16.09 kB / 404 MB, free: 1.523 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.758e-05/0.4557, allocations: 27.91 kB / 404 MB, free: 1.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.244e-05/0.4558, allocations: 11.98 kB / 404 MB, free: 1.484 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006995/0.4565, allocations: 362.8 kB / 404.4 MB, free: 1.133 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4565, allocations: 0 / 404.4 MB, free: 1.133 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001795/0.4583, allocations: 391.4 kB / 404.8 MB, free: 0.75 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001138/0.4595, allocations: 303.5 kB / 405.1 MB, free: 460 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004049/0.4636, allocations: 0.8748 MB / 405.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.397e-06/0.4636, allocations: 4.375 kB / 405.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001624/0.4653, allocations: 343.6 kB / 406.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001754/0.4671, allocations: 184.6 kB / 406.4 MB, free: 15.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003162/0.4703, allocations: 1.268 MB / 407.7 MB, free: 13.72 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006744/0.471, allocations: 0.9001 MB / 408.6 MB, free: 12.79 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002933/0.4713, allocations: 63.41 kB / 408.7 MB, free: 12.73 MB / 346.7 MB Notification: Performance of SimCode: time 1.412e-06/0.4713, allocations: 4 kB / 408.7 MB, free: 12.73 MB / 346.7 MB Notification: Performance of Templates: time 0.03152/0.5029, allocations: 12.94 MB / 421.6 MB, free: 15.79 MB / 362.7 MB