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.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.824/1.824, allocations: 194.9 MB / 210.6 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.771e-05/2.788e-05, allocations: 7.906 kB / 258.8 MB, free: 8.059 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2885, allocations: 44.5 MB / 303.3 MB, free: 12.96 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003155/0.2917, allocations: 1.893 MB / 305.2 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.2937, allocations: 0.9025 MB / 306.1 MB, free: 10.7 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.2939, allocations: 9.031 kB / 306.1 MB, free: 10.7 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.294, allocations: 31.64 kB / 306.1 MB, free: 10.68 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004934/0.2945, allocations: 130.9 kB / 306.3 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.2949, allocations: 140.7 kB / 306.4 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003862/0.2953, allocations: 223.6 kB / 306.6 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.2955, allocations: 44.39 kB / 306.7 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002946/0.2958, allocations: 159.6 kB / 306.8 MB, free: 10.09 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003523/0.2962, allocations: 195.5 kB / 307 MB, free: 9.902 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002534/0.2965, allocations: 87.88 kB / 307.1 MB, free: 9.816 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.382e-05/0.2966, allocations: 24 kB / 307.1 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.2967, allocations: 91.7 kB / 307.2 MB, free: 9.703 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.2968, allocations: 28 kB / 307.2 MB, free: 9.676 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005381/0.2974, allocations: 353.5 kB / 307.6 MB, free: 9.332 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.2974, allocations: 0 / 307.6 MB, free: 9.332 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.2974, allocations: 0 / 307.6 MB, free: 9.332 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.2974, allocations: 0 / 307.6 MB, free: 9.332 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001526/0.299, allocations: 0.5811 MB / 308.2 MB, free: 8.703 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.299, allocations: 16.03 kB / 308.2 MB, free: 8.688 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000476/0.2995, allocations: 51.52 kB / 308.2 MB, free: 8.637 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005881/0.3001, allocations: 310.4 kB / 308.5 MB, free: 8.293 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.3003, allocations: 92.05 kB / 308.6 MB, free: 8.188 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.3004, allocations: 39.89 kB / 308.7 MB, free: 8.148 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.3016, allocations: 412.9 kB / 309.1 MB, free: 7.734 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.3017, allocations: 3.938 kB / 309.1 MB, free: 7.73 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.508e-05/0.3018, allocations: 12 kB / 309.1 MB, free: 7.719 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.3018, allocations: 8 kB / 309.1 MB, free: 7.711 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.3035, allocations: 486.2 kB / 309.6 MB, free: 7.23 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002551/0.3061, allocations: 0.9852 MB / 310.6 MB, free: 6.191 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.3074, allocations: 408.3 kB / 311 MB, free: 5.785 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.982e-05/0.3075, allocations: 8.438 kB / 311 MB, free: 5.777 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.3076, allocations: 39.12 kB / 311 MB, free: 5.73 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 2.444e-06/0.3076, allocations: 0 / 311 MB, free: 5.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.008627/0.3162, allocations: 2.219 MB / 313.2 MB, free: 3.398 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.3163, allocations: 89.67 kB / 313.3 MB, free: 3.289 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004374/0.3167, allocations: 231.4 kB / 313.5 MB, free: 3.055 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.235e-05/0.3168, allocations: 37.7 kB / 313.6 MB, free: 3.012 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.3169, allocations: 141.1 kB / 313.7 MB, free: 2.871 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/0.3171, allocations: 173.5 kB / 313.9 MB, free: 2.699 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.706e-05/0.3172, allocations: 12 kB / 313.9 MB, free: 2.688 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3173, allocations: 334.8 kB / 314.2 MB, free: 2.352 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007801/0.3181, allocations: 205 kB / 314.4 MB, free: 2.152 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008203/0.319, allocations: 248.6 kB / 314.7 MB, free: 1.902 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007451/0.3197, allocations: 198.2 kB / 314.9 MB, free: 1.711 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3197, allocations: 3.938 kB / 314.9 MB, free: 1.707 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002083/0.3218, allocations: 0.6212 MB / 315.5 MB, free: 1.074 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.3219, allocations: 4 kB / 315.5 MB, free: 1.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.3219, allocations: 0 / 315.5 MB, free: 1.07 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/0.3231, allocations: 262 kB / 315.7 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000568/0.3237, allocations: 71.89 kB / 315.8 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005852/0.3295, allocations: 2.748 MB / 318.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005451/0.3301, allocations: 36 kB / 318.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.578e-05/0.3302, allocations: 19.98 kB / 318.6 MB, free: 13.8 MB / 266.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.0002537/0.3304, allocations: 162.2 kB / 318.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.3306, allocations: 31.62 kB / 318.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000146/0.3307, allocations: 51.3 kB / 318.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.3307, allocations: 8 kB / 318.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3307, allocations: 3.938 kB / 318.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/0.3308, allocations: 11.94 kB / 318.9 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003452/0.3342, allocations: 1.287 MB / 320.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.3343, allocations: 0 / 320.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005968/0.3349, allocations: 63.95 kB / 320.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001066/0.3359, allocations: 236.7 kB / 320.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.324e-05/0.336, allocations: 15.98 kB / 320.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005504/0.3415, allocations: 2.657 MB / 323.1 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3416, allocations: 64 / 323.1 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00302/0.3446, allocations: 0.9901 MB / 324.1 MB, free: 8.062 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002431/0.3448, allocations: 148.7 kB / 324.3 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.345, allocations: 15.98 kB / 324.3 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005369/0.3455, allocations: 36.05 kB / 324.3 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002403/0.3458, allocations: 80.23 kB / 324.4 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.567e-05/0.3458, allocations: 16 kB / 324.4 MB, free: 7.754 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003585/0.3462, allocations: 195.5 kB / 324.6 MB, free: 7.562 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3462, allocations: 0 / 324.6 MB, free: 7.562 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008369/0.3471, allocations: 160 kB / 324.8 MB, free: 7.406 MB / 266.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.0002968/0.3474, allocations: 143.1 kB / 324.9 MB, free: 7.254 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.3496, allocations: 0.715 MB / 325.6 MB, free: 6.527 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3496, allocations: 0 / 325.6 MB, free: 6.527 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0014/0.351, allocations: 487.7 kB / 326.1 MB, free: 6.043 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004348/0.3515, allocations: 32.36 kB / 326.1 MB, free: 6.012 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.3538, allocations: 0.9255 MB / 327 MB, free: 5.055 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005219/0.3543, allocations: 0.8009 MB / 327.8 MB, free: 4.227 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003907/0.3547, allocations: 66.92 kB / 327.9 MB, free: 4.164 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/0.3549, allocations: 35.42 kB / 327.9 MB, free: 4.129 MB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.3549, allocations: 3.938 kB / 328 MB, free: 4.125 MB / 266.7 MB Notification: Performance of Templates: time 0.02523/0.3802, allocations: 6.921 MB / 334.9 MB, free: 13.2 MB / 282.7 MB