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.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadModel(ModelicaTest): time 1.923/1.923, allocations: 209.2 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.944e-05/2.94e-05, allocations: 4 kB / 276.2 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.387/0.387, allocations: 48.7 MB / 324.9 MB, free: 2.91 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice): time 0.02234/0.4095, allocations: 14.07 MB / 338.9 MB, free: 9.75 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008276/0.4178, allocations: 3.576 MB / 342.5 MB, free: 7.297 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000907/0.4187, allocations: 28.31 kB / 342.5 MB, free: 7.281 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009474/0.4197, allocations: 221 kB / 342.7 MB, free: 7.152 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002331/0.4221, allocations: 0.5595 MB / 343.3 MB, free: 6.754 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003362/0.4255, allocations: 0.7009 MB / 344 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001904/0.4274, allocations: 0.6248 MB / 344.6 MB, free: 5.91 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006396/0.4281, allocations: 292.4 kB / 344.9 MB, free: 5.723 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001189/0.4293, allocations: 434.5 kB / 345.3 MB, free: 5.484 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006163/0.4299, allocations: 285.7 kB / 345.6 MB, free: 5.336 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001772/0.4317, allocations: 0.4903 MB / 346.1 MB, free: 5.117 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002436/0.432, allocations: 48.97 kB / 346.2 MB, free: 5.113 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002215/0.4322, allocations: 122.7 kB / 346.3 MB, free: 5.027 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003316/0.4325, allocations: 66.28 kB / 346.3 MB, free: 5.027 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001722/0.4343, allocations: 0.7337 MB / 347.1 MB, free: 4.562 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.4343, allocations: 0 / 347.1 MB, free: 4.562 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4343, allocations: 0 / 347.1 MB, free: 4.562 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.4343, allocations: 0 / 347.1 MB, free: 4.562 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001876/0.4362, allocations: 0.8215 MB / 347.9 MB, free: 3.855 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.4363, allocations: 9.156 kB / 347.9 MB, free: 3.855 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005714/0.4369, allocations: 78.77 kB / 348 MB, free: 3.82 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.4381, allocations: 478.6 kB / 348.4 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.897e-05/0.4382, allocations: 32.19 kB / 348.5 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.453e-05/0.4383, allocations: 47.17 kB / 348.5 MB, free: 3.375 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.4398, allocations: 0.6351 MB / 349.2 MB, free: 2.914 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.4398, allocations: 1.219 kB / 349.2 MB, free: 2.914 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.825e-05/0.4399, allocations: 27.56 kB / 349.2 MB, free: 2.895 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.88e-05/0.44, allocations: 11.31 kB / 349.2 MB, free: 2.895 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.4412, allocations: 0.5106 MB / 349.7 MB, free: 2.648 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005522/0.4467, allocations: 3.16 MB / 352.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005927/0.4474, allocations: 220.3 kB / 353.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002108/0.4495, allocations: 1.083 MB / 354.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004251/0.45, allocations: 187.6 kB / 354.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.535e-06/0.45, allocations: 0 / 354.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001197/0.4512, allocations: 483.4 kB / 354.8 MB, free: 14.13 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.4513, allocations: 162.7 kB / 355 MB, free: 13.94 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007728/0.4521, allocations: 433.5 kB / 355.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.289e-05/0.4522, allocations: 32.08 kB / 355.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003347/0.4525, allocations: 405.5 kB / 355.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.4526, allocations: 79.72 kB / 355.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.655e-05/0.4527, allocations: 9.344 kB / 355.9 MB, free: 13.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.4528, allocations: 329.1 kB / 356.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003265/0.4532, allocations: 118.4 kB / 356.4 MB, free: 12.81 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000543/0.4537, allocations: 407 kB / 356.8 MB, free: 12.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004763/0.4542, allocations: 209.9 kB / 357 MB, free: 12.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.216e-06/0.4542, allocations: 2.812 kB / 357 MB, free: 12.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001479/0.4557, allocations: 0.5766 MB / 357.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001498/0.4573, allocations: 3.689 MB / 361.2 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/0.4573, allocations: 9.938 kB / 361.2 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.649e-05/0.4574, allocations: 13.88 kB / 361.3 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002407/0.4598, allocations: 215 kB / 361.5 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006432/0.4604, allocations: 0.6234 MB / 362.1 MB, free: 7.289 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007871/0.4612, allocations: 81.23 kB / 362.2 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.019e-05/0.4613, allocations: 36.14 kB / 362.2 MB, free: 7.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.4614, allocations: 4.344 kB / 362.2 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00131/0.4627, allocations: 0.5396 MB / 362.7 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.4627, allocations: 9.938 kB / 362.8 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.437e-05/0.4628, allocations: 14.03 kB / 362.8 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007337/0.4635, allocations: 132.3 kB / 362.9 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.463e-05/0.4635, allocations: 21.08 kB / 362.9 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004842/0.464, allocations: 55.84 kB / 363 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.66e-05/0.4641, allocations: 35.2 kB / 363 MB, free: 6.867 MB / 298.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: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent) * 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.0004645/0.4646, allocations: 240.9 kB / 363.2 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.4648, allocations: 53.62 kB / 363.3 MB, free: 6.625 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0021/0.4669, allocations: 0.6774 MB / 364 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.4669, allocations: 4.156 kB / 364 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.4669, allocations: 4 kB / 364 MB, free: 6.203 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.4669, allocations: 0 / 364 MB, free: 6.203 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009079/0.4679, allocations: 482.3 kB / 364.4 MB, free: 5.812 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.4679, allocations: 0 / 364.4 MB, free: 5.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.469, allocations: 109.9 kB / 364.6 MB, free: 5.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.368e-06/0.469, allocations: 9.422 kB / 364.6 MB, free: 5.777 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.137e-05/0.469, allocations: 16.36 kB / 364.6 MB, free: 5.766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000425/0.4695, allocations: 0.5824 MB / 365.2 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4695, allocations: 1.656 kB / 365.2 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009728/0.4705, allocations: 423.5 kB / 365.6 MB, free: 4.926 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003696/0.4709, allocations: 203.2 kB / 365.8 MB, free: 4.734 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.471, allocations: 7.75 kB / 365.8 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003628/0.4714, allocations: 16.58 kB / 365.8 MB, free: 4.723 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.136e-05/0.4715, allocations: 23.84 kB / 365.8 MB, free: 4.711 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-05/0.4715, allocations: 17.09 kB / 365.8 MB, free: 4.703 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006127/0.4722, allocations: 352.4 kB / 366.2 MB, free: 4.496 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4722, allocations: 0 / 366.2 MB, free: 4.496 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00174/0.4739, allocations: 394.2 kB / 366.6 MB, free: 4.406 MB / 298.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: 5 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent) * Number of discrete states: 5 (p_table.last,p_table.nextEvent,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.0009431/0.4749, allocations: 307 kB / 366.9 MB, free: 4.223 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003685/0.4786, allocations: 0.8205 MB / 367.7 MB, free: 3.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.4786, allocations: 0 / 367.7 MB, free: 3.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.4802, allocations: 308.5 kB / 368 MB, free: 3.188 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00169/0.4819, allocations: 190.7 kB / 368.2 MB, free: 3.004 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002936/0.4848, allocations: 1.246 MB / 369.4 MB, free: 1.723 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005409/0.4854, allocations: 0.8957 MB / 370.3 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002713/0.4857, allocations: 63.42 kB / 370.4 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of SimCode: time 1.122e-06/0.4857, allocations: 0 / 370.4 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of Templates: time 0.02941/0.5151, allocations: 12.82 MB / 383.2 MB, free: 3.93 MB / 314.7 MB