Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 2.065/2.065, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.956e-05/3.974e-05, allocations: 7.906 kB / 258.8 MB, free: 8.711 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3243, allocations: 44.5 MB / 303.3 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003259/0.3276, allocations: 1.84 MB / 305.1 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00217/0.3299, allocations: 0.8513 MB / 306 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002457/0.3302, allocations: 4.625 kB / 306 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.3303, allocations: 34.42 kB / 306 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005389/0.3309, allocations: 118.6 kB / 306.1 MB, free: 10.49 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004584/0.3314, allocations: 131.6 kB / 306.3 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004154/0.3318, allocations: 190.1 kB / 306.4 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.332, allocations: 33.86 kB / 306.5 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002569/0.3322, allocations: 144.2 kB / 306.6 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003555/0.3326, allocations: 177.3 kB / 306.8 MB, free: 10.06 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003087/0.3329, allocations: 80.67 kB / 306.9 MB, free: 10.03 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.769e-05/0.333, allocations: 20.91 kB / 306.9 MB, free: 10.03 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.3332, allocations: 76.84 kB / 307 MB, free: 9.973 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.803e-05/0.3333, allocations: 25.16 kB / 307 MB, free: 9.973 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000557/0.3339, allocations: 317.2 kB / 307.3 MB, free: 9.676 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/0.3339, allocations: 7.938 kB / 307.3 MB, free: 9.668 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3339, allocations: 0 / 307.3 MB, free: 9.668 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.3339, allocations: 0 / 307.3 MB, free: 9.668 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001458/0.3354, allocations: 0.5607 MB / 307.9 MB, free: 9.062 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.3355, allocations: 8.031 kB / 307.9 MB, free: 9.055 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005045/0.336, allocations: 55.59 kB / 307.9 MB, free: 9 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006275/0.3366, allocations: 294.6 kB / 308.2 MB, free: 8.672 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002015/0.3368, allocations: 87.95 kB / 308.3 MB, free: 8.574 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.509e-05/0.3369, allocations: 24 kB / 308.3 MB, free: 8.551 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.3381, allocations: 377.2 kB / 308.7 MB, free: 8.164 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/0.3381, allocations: 7.906 kB / 308.7 MB, free: 8.156 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.214e-05/0.3382, allocations: 12 kB / 308.7 MB, free: 8.145 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.3382, allocations: 8 kB / 308.7 MB, free: 8.137 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.3397, allocations: 425.9 kB / 309.1 MB, free: 7.719 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00334/0.343, allocations: 1.249 MB / 310.4 MB, free: 6.402 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.3442, allocations: 374.2 kB / 310.7 MB, free: 6.031 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.854e-05/0.3443, allocations: 4 kB / 310.8 MB, free: 6.027 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/0.3444, allocations: 38.56 kB / 310.8 MB, free: 5.98 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 3.296e-06/0.3444, allocations: 0 / 310.8 MB, free: 5.98 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.008301/0.3527, allocations: 1.933 MB / 312.7 MB, free: 3.934 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.79e-05/0.3528, allocations: 96.8 kB / 312.8 MB, free: 3.82 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004658/0.3533, allocations: 217.3 kB / 313 MB, free: 3.598 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.215e-05/0.3534, allocations: 37.7 kB / 313.1 MB, free: 3.555 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.3536, allocations: 195.1 kB / 313.3 MB, free: 3.359 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000192/0.3538, allocations: 154 kB / 313.4 MB, free: 3.207 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.871e-05/0.3538, allocations: 8 kB / 313.4 MB, free: 3.199 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.354, allocations: 326.8 kB / 313.7 MB, free: 2.871 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006614/0.3547, allocations: 172.8 kB / 313.9 MB, free: 2.703 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007209/0.3554, allocations: 229.9 kB / 314.1 MB, free: 2.457 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006441/0.3561, allocations: 164.8 kB / 314.3 MB, free: 2.301 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.3561, allocations: 0 / 314.3 MB, free: 2.301 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001947/0.358, allocations: 0.559 MB / 314.8 MB, free: 1.73 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/0.3581, allocations: 8 kB / 314.9 MB, free: 1.723 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.3581, allocations: 0 / 314.9 MB, free: 1.723 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001211/0.3593, allocations: 244.8 kB / 315.1 MB, free: 1.48 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004683/0.3598, allocations: 51.89 kB / 315.1 MB, free: 1.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006424/0.3663, allocations: 2.719 MB / 317.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005198/0.3669, allocations: 27.97 kB / 317.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-05/0.3669, allocations: 16 kB / 317.9 MB, free: 14.53 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.000278/0.3672, allocations: 157.8 kB / 318.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.3673, allocations: 27.78 kB / 318.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001434/0.3675, allocations: 39 kB / 318.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.3675, allocations: 11.94 kB / 318.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3675, allocations: 0 / 318.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.3676, allocations: 4 kB / 318.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003129/0.3707, allocations: 1.101 MB / 319.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.3708, allocations: 0 / 319.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004486/0.3712, allocations: 43.97 kB / 319.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/0.3724, allocations: 236.9 kB / 319.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-05/0.3724, allocations: 15.98 kB / 319.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006301/0.3788, allocations: 2.654 MB / 322.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3788, allocations: 0 / 322.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002705/0.3815, allocations: 0.8253 MB / 323 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002729/0.3818, allocations: 140.8 kB / 323.2 MB, free: 9.039 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.287e-05/0.3819, allocations: 4 kB / 323.2 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004635/0.3824, allocations: 31.97 kB / 323.2 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000266/0.3827, allocations: 67.88 kB / 323.3 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.296e-05/0.3828, allocations: 15.98 kB / 323.3 MB, free: 8.922 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003415/0.3831, allocations: 175.3 kB / 323.4 MB, free: 8.75 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3831, allocations: 0 / 323.4 MB, free: 8.75 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008439/0.384, allocations: 148 kB / 323.6 MB, free: 8.605 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0003249/0.3843, allocations: 136 kB / 323.7 MB, free: 8.465 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002196/0.3865, allocations: 0.6375 MB / 324.4 MB, free: 7.812 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.3866, allocations: 0 / 324.4 MB, free: 7.812 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.3878, allocations: 433.2 kB / 324.8 MB, free: 7.379 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004254/0.3883, allocations: 23.98 kB / 324.8 MB, free: 7.355 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.3905, allocations: 0.8483 MB / 325.6 MB, free: 6.477 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004957/0.3911, allocations: 0.7842 MB / 326.4 MB, free: 5.664 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002054/0.3913, allocations: 35.36 kB / 326.5 MB, free: 5.629 MB / 266.7 MB Notification: Performance of SimCode: time 1.102e-06/0.3913, allocations: 0 / 326.5 MB, free: 5.629 MB / 266.7 MB Notification: Performance of Templates: time 0.01578/0.4071, allocations: 5.056 MB / 331.5 MB, free: 0.5703 MB / 266.7 MB