Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 1.093/1.093, allocations: 111.1 MB / 126.3 MB, free: 6.41 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.447e-05, allocations: 4 kB / 154.5 MB, free: 2.84 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05568/0.05574, allocations: 25.19 MB / 179.7 MB, free: 9.617 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00304/0.05884, allocations: 1.754 MB / 181.4 MB, free: 7.855 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.06096, allocations: 0.7649 MB / 182.2 MB, free: 7.086 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002506/0.06127, allocations: 11.94 kB / 182.2 MB, free: 7.074 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.06148, allocations: 43.69 kB / 182.3 MB, free: 7.031 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002857/0.06178, allocations: 95.72 kB / 182.4 MB, free: 6.938 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007498/0.06255, allocations: 175.6 kB / 182.5 MB, free: 6.766 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005328/0.0631, allocations: 239.9 kB / 182.8 MB, free: 6.531 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001899/0.0633, allocations: 61.28 kB / 182.8 MB, free: 6.473 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003775/0.0637, allocations: 171.6 kB / 183 MB, free: 6.305 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004149/0.06413, allocations: 211.5 kB / 183.2 MB, free: 6.098 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003741/0.06452, allocations: 115.8 kB / 183.3 MB, free: 5.984 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.06464, allocations: 24 kB / 183.3 MB, free: 5.961 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.0648, allocations: 83.67 kB / 183.4 MB, free: 5.879 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.06492, allocations: 28 kB / 183.4 MB, free: 5.852 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006745/0.06561, allocations: 387.3 kB / 183.8 MB, free: 5.473 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.06563, allocations: 0 / 183.8 MB, free: 5.473 MB / 154.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.06564, allocations: 0 / 183.8 MB, free: 5.473 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.06566, allocations: 0 / 183.8 MB, free: 5.473 MB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001901/0.06757, allocations: 0.6474 MB / 184.5 MB, free: 4.777 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.06764, allocations: 8.031 kB / 184.5 MB, free: 4.77 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.06781, allocations: 39.53 kB / 184.5 MB, free: 4.73 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/0.06837, allocations: 279.5 kB / 184.8 MB, free: 4.414 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.588e-05/0.06844, allocations: 24.66 kB / 184.8 MB, free: 4.387 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.06856, allocations: 35.91 kB / 184.8 MB, free: 4.352 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.07, allocations: 479.3 kB / 185.3 MB, free: 3.871 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.326e-05/0.07007, allocations: 7.938 kB / 185.3 MB, free: 3.863 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.618e-05/0.07014, allocations: 16 kB / 185.3 MB, free: 3.848 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.463e-05/0.07021, allocations: 12 kB / 185.3 MB, free: 3.836 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.07179, allocations: 446.7 kB / 185.8 MB, free: 3.398 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003822/0.07564, allocations: 1.176 MB / 187 MB, free: 2.164 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001691/0.07738, allocations: 484.3 kB / 187.4 MB, free: 1.684 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-05/0.07751, allocations: 12.42 kB / 187.4 MB, free: 1.672 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.07756, allocations: 39 kB / 187.5 MB, free: 1.625 MB / 154.7 MB Notification: Performance of pre-optimization done (n=47): time 3.466e-06/0.07757, allocations: 0 / 187.5 MB, free: 1.625 MB / 154.7 MB Notification: Performance of matching and sorting (n=55): time 0.009135/0.08671, allocations: 2.527 MB / 190 MB, free: 14.97 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.997e-05/0.08684, allocations: 85.67 kB / 190.1 MB, free: 14.87 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004159/0.08727, allocations: 249.7 kB / 190.3 MB, free: 14.62 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 8.694e-05/0.08737, allocations: 37.7 kB / 190.4 MB, free: 14.58 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.08755, allocations: 219.3 kB / 190.6 MB, free: 14.36 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002319/0.08779, allocations: 181.4 kB / 190.8 MB, free: 14.18 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.931e-05/0.08785, allocations: 8 kB / 190.8 MB, free: 14.18 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.08806, allocations: 338.8 kB / 191.1 MB, free: 13.84 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008759/0.08895, allocations: 253 kB / 191.4 MB, free: 13.59 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009086/0.08988, allocations: 317.4 kB / 191.7 MB, free: 13.27 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007859/0.09069, allocations: 234.2 kB / 191.9 MB, free: 13.04 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.09071, allocations: 3.953 kB / 191.9 MB, free: 13.04 MB / 170.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002424/0.09314, allocations: 0.7611 MB / 192.7 MB, free: 12.27 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.09322, allocations: 4 kB / 192.7 MB, free: 12.26 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.09324, allocations: 8.016 kB / 192.7 MB, free: 12.25 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/0.09444, allocations: 320.6 kB / 193 MB, free: 11.94 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006578/0.09513, allocations: 79.88 kB / 193.1 MB, free: 11.86 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/0.09693, allocations: 0.9549 MB / 194 MB, free: 10.88 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008216/0.0978, allocations: 79.98 kB / 194.1 MB, free: 10.8 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.48e-05/0.0979, allocations: 20 kB / 194.1 MB, free: 10.78 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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 prepare postOptimizeDAE: time 0.0003444/0.09826, allocations: 165.8 kB / 194.3 MB, free: 10.61 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.0984, allocations: 35.53 kB / 194.3 MB, free: 10.57 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001782/0.09859, allocations: 67.59 kB / 194.4 MB, free: 10.5 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.09862, allocations: 8 kB / 194.4 MB, free: 10.5 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.918e-06/0.09863, allocations: 3.953 kB / 194.4 MB, free: 10.49 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.09865, allocations: 3.984 kB / 194.4 MB, free: 10.49 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004462/0.1031, allocations: 1.519 MB / 195.9 MB, free: 8.902 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.1032, allocations: 0 / 195.9 MB, free: 8.902 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006563/0.1039, allocations: 75.89 kB / 196 MB, free: 8.828 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001107/0.105, allocations: 302.7 kB / 196.3 MB, free: 8.531 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.149e-05/0.1051, allocations: 15.98 kB / 196.3 MB, free: 8.516 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001602/0.1067, allocations: 0.9192 MB / 197.2 MB, free: 7.57 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.1068, allocations: 0 / 197.2 MB, free: 7.57 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003598/0.1104, allocations: 1.154 MB / 198.4 MB, free: 6.387 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003354/0.1108, allocations: 160.5 kB / 198.5 MB, free: 6.211 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.1109, allocations: 16 kB / 198.5 MB, free: 6.195 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007036/0.1116, allocations: 76.06 kB / 198.6 MB, free: 6.121 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003065/0.1119, allocations: 92.25 kB / 198.7 MB, free: 6.031 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.092e-05/0.112, allocations: 23.97 kB / 198.7 MB, free: 6.008 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0003282/0.1124, allocations: 202 kB / 198.9 MB, free: 5.812 MB / 170.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.1124, allocations: 0 / 198.9 MB, free: 5.812 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006702/0.1131, allocations: 128 kB / 199 MB, free: 5.688 MB / 170.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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * 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 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003701/0.1135, allocations: 158.4 kB / 199.2 MB, free: 5.527 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002907/0.1164, allocations: 0.6223 MB / 199.8 MB, free: 4.91 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.1165, allocations: 0 / 199.8 MB, free: 4.91 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/0.1179, allocations: 337.2 kB / 200.2 MB, free: 4.574 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005622/0.1185, allocations: 36.61 kB / 200.2 MB, free: 4.539 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002878/0.1214, allocations: 1.051 MB / 201.2 MB, free: 3.449 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005259/0.122, allocations: 0.8086 MB / 202 MB, free: 2.613 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002508/0.1222, allocations: 35.41 kB / 202.1 MB, free: 2.574 MB / 170.7 MB Notification: Performance of SimCode: time 1.543e-06/0.1223, allocations: 0 / 202.1 MB, free: 2.574 MB / 170.7 MB Notification: Performance of Templates: time 0.1508/0.273, allocations: 5.835 MB / 207.9 MB, free: 23.04 MB / 170.7 MB