Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.715/1.715, allocations: 171.1 MB / 186.3 MB, free: 1.34 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.93e-05/3.92e-05, allocations: 7.984 kB / 228.1 MB, free: 7.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09152/0.09159, allocations: 38.76 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003184/0.09483, allocations: 1.886 MB / 268.8 MB, free: 15.21 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.09697, allocations: 0.8827 MB / 269.7 MB, free: 14.33 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.09716, allocations: 4 kB / 269.7 MB, free: 14.33 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001485/0.09733, allocations: 39.69 kB / 269.7 MB, free: 14.29 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005539/0.0979, allocations: 131.6 kB / 269.8 MB, free: 14.16 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004277/0.09834, allocations: 131.8 kB / 270 MB, free: 14.03 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003959/0.09875, allocations: 219.5 kB / 270.2 MB, free: 13.82 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.09892, allocations: 44.39 kB / 270.2 MB, free: 13.77 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00033/0.09926, allocations: 163.6 kB / 270.4 MB, free: 13.61 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003726/0.09965, allocations: 203.5 kB / 270.6 MB, free: 13.41 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002777/0.09994, allocations: 79.88 kB / 270.7 MB, free: 13.34 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.684e-05/0.1, allocations: 24 kB / 270.7 MB, free: 13.31 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.1002, allocations: 87.72 kB / 270.8 MB, free: 13.23 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.1003, allocations: 28 kB / 270.8 MB, free: 13.2 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005687/0.1009, allocations: 355.4 kB / 271.1 MB, free: 12.85 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1009, allocations: 3.938 kB / 271.1 MB, free: 12.85 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1009, allocations: 0 / 271.1 MB, free: 12.85 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.101, allocations: 0 / 271.1 MB, free: 12.85 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001608/0.1026, allocations: 0.5966 MB / 271.7 MB, free: 12.2 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1026, allocations: 8.031 kB / 271.7 MB, free: 12.2 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004989/0.1031, allocations: 59.59 kB / 271.8 MB, free: 12.14 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006369/0.1038, allocations: 310.1 kB / 272.1 MB, free: 11.79 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.104, allocations: 92.02 kB / 272.2 MB, free: 11.69 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.1041, allocations: 35.98 kB / 272.2 MB, free: 11.66 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.1054, allocations: 416.9 kB / 272.6 MB, free: 11.24 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.1054, allocations: 3.906 kB / 272.6 MB, free: 11.23 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.866e-05/0.1055, allocations: 12 kB / 272.7 MB, free: 11.22 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.1055, allocations: 8 kB / 272.7 MB, free: 11.21 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.1073, allocations: 486.3 kB / 273.1 MB, free: 10.74 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002773/0.1101, allocations: 0.993 MB / 274.1 MB, free: 9.688 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/0.1115, allocations: 411.8 kB / 274.5 MB, free: 9.281 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.659e-05/0.1116, allocations: 12.38 kB / 274.5 MB, free: 9.27 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.1116, allocations: 39 kB / 274.6 MB, free: 9.223 MB / 234.7 MB Notification: Performance of pre-optimization done (n=49): time 3.487e-06/0.1117, allocations: 0 / 274.6 MB, free: 9.223 MB / 234.7 MB Notification: Performance of matching and sorting (n=55): time 0.009055/0.1207, allocations: 2.207 MB / 276.8 MB, free: 6.902 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.728e-05/0.1208, allocations: 85.67 kB / 276.9 MB, free: 6.801 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000478/0.1213, allocations: 239.2 kB / 277.1 MB, free: 6.559 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.464e-05/0.1214, allocations: 33.7 kB / 277.1 MB, free: 6.52 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.1215, allocations: 195.5 kB / 277.3 MB, free: 6.324 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002521/0.1218, allocations: 185.4 kB / 277.5 MB, free: 6.141 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.764e-05/0.1219, allocations: 12 kB / 277.5 MB, free: 6.129 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.122, allocations: 326.8 kB / 277.8 MB, free: 5.801 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007864/0.1228, allocations: 209 kB / 278 MB, free: 5.598 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008277/0.1237, allocations: 244.6 kB / 278.3 MB, free: 5.352 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007775/0.1245, allocations: 202.1 kB / 278.5 MB, free: 5.152 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.1245, allocations: 0 / 278.5 MB, free: 5.152 MB / 234.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002239/0.1267, allocations: 0.6019 MB / 279.1 MB, free: 4.543 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.1268, allocations: 8 kB / 279.1 MB, free: 4.535 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.1268, allocations: 0 / 279.1 MB, free: 4.535 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/0.128, allocations: 258 kB / 279.3 MB, free: 4.281 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005999/0.1286, allocations: 75.91 kB / 279.4 MB, free: 4.207 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0063/0.135, allocations: 2.743 MB / 282.2 MB, free: 1.328 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005893/0.1356, allocations: 35.97 kB / 282.2 MB, free: 1.293 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.896e-05/0.1357, allocations: 23.92 kB / 282.2 MB, free: 1.27 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002882/0.136, allocations: 165.8 kB / 282.4 MB, free: 1.098 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.1361, allocations: 31.62 kB / 282.4 MB, free: 1.066 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001473/0.1363, allocations: 51.23 kB / 282.5 MB, free: 1.02 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.1363, allocations: 4 kB / 282.5 MB, free: 1.016 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.1363, allocations: 0 / 282.5 MB, free: 1.016 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.1363, allocations: 7.984 kB / 282.5 MB, free: 1.008 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00368/0.14, allocations: 1.28 MB / 283.8 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.1401, allocations: 0 / 283.8 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006093/0.1407, allocations: 71.89 kB / 283.8 MB, free: 15.59 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001137/0.1418, allocations: 240.7 kB / 284.1 MB, free: 15.35 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.454e-05/0.1419, allocations: 27.94 kB / 284.1 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005883/0.1478, allocations: 2.654 MB / 286.7 MB, free: 12.54 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.1479, allocations: 0 / 286.7 MB, free: 12.54 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003291/0.1512, allocations: 0.9823 MB / 287.7 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003097/0.1515, allocations: 152.7 kB / 287.9 MB, free: 11.36 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.1517, allocations: 15.98 kB / 287.9 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005425/0.1522, allocations: 36.05 kB / 287.9 MB, free: 11.31 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002837/0.1525, allocations: 80.28 kB / 288 MB, free: 11.23 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.503e-05/0.1526, allocations: 15.83 kB / 288 MB, free: 11.22 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003775/0.153, allocations: 193.8 kB / 288.2 MB, free: 11.03 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.153, allocations: 0 / 288.2 MB, free: 11.03 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0008954/0.1539, allocations: 156 kB / 288.4 MB, free: 10.88 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.000341/0.1543, allocations: 151.1 kB / 288.5 MB, free: 10.72 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.1566, allocations: 0.7112 MB / 289.2 MB, free: 10 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1567, allocations: 0 / 289.2 MB, free: 10 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001435/0.1581, allocations: 483.7 kB / 289.7 MB, free: 9.516 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.1586, allocations: 28.42 kB / 289.7 MB, free: 9.488 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002454/0.1611, allocations: 0.97 MB / 290.7 MB, free: 8.48 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004996/0.1616, allocations: 0.8087 MB / 291.5 MB, free: 7.648 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002639/0.1619, allocations: 35.41 kB / 291.5 MB, free: 7.613 MB / 250.7 MB Notification: Performance of SimCode: time 1.193e-06/0.1619, allocations: 0 / 291.5 MB, free: 7.613 MB / 250.7 MB Notification: Performance of Templates: time 0.01368/0.1756, allocations: 5.771 MB / 297.3 MB, free: 1.84 MB / 250.7 MB