Running command: translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") Notification: Performance of loadModel(PlanarMechanics): time 2.018/2.018, allocations: 234.8 MB / 247 MB, free: 1.918 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.163e-05/4.171e-05, allocations: 0 / 302.2 MB, free: 14.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 52.38 MB / 354.6 MB, free: 10.1 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3787/0.4892, allocations: 93.79 MB / 448.4 MB, free: 3.168 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.4895, allocations: 95.94 kB / 448.5 MB, free: 3.074 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.645/1.135, allocations: 99.41 MB / 0.535 GB, free: 97.48 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.242e-06/1.135, allocations: 0 / 0.535 GB, free: 97.48 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002166/1.135, allocations: 87.02 kB / 0.5351 GB, free: 97.48 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1945 * Number of variables: 1945 Notification: Performance of Generate backend data structure: time 0.03032/1.165, allocations: 5.188 MB / 0.5402 GB, free: 95.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/1.165, allocations: 10 kB / 0.5402 GB, free: 95.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0205/1.186, allocations: 3.594 MB / 0.5437 GB, free: 95.18 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007495/1.193, allocations: 2.635 MB / 0.5463 GB, free: 94.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004165/1.194, allocations: 361.6 kB / 0.5466 GB, free: 94.62 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002436/1.196, allocations: 474.9 kB / 0.5471 GB, free: 94.62 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03267/1.229, allocations: 13.36 MB / 0.5601 GB, free: 91.36 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002507/1.229, allocations: 66 kB / 0.5602 GB, free: 91.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001833/1.231, allocations: 237.7 kB / 0.5604 GB, free: 91.32 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002889/1.234, allocations: 1.523 MB / 0.5619 GB, free: 91.27 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02867/1.263, allocations: 11.57 MB / 0.5732 GB, free: 88 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07513/1.338, allocations: 55.67 MB / 0.6276 GB, free: 42.66 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01464/1.352, allocations: 3.733 MB / 0.6312 GB, free: 39.15 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002506/1.355, allocations: 1.262 MB / 0.6325 GB, free: 38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01232/1.367, allocations: 7.61 MB / 0.6399 GB, free: 30.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/1.367, allocations: 51.5 kB / 0.6399 GB, free: 30.17 MB / 442.7 MB Notification: Performance of pre-optimization done (n=204): time 7.203e-06/1.367, allocations: 4 kB / 0.6399 GB, free: 30.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=222): time 0.03005/1.398, allocations: 10.12 MB / 0.6498 GB, free: 19.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/1.398, allocations: 145.8 kB / 0.65 GB, free: 19.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01011/1.408, allocations: 4.521 MB / 0.6544 GB, free: 15.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000308/1.408, allocations: 49.7 kB / 0.6544 GB, free: 15.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002909/1.411, allocations: 3.906 MB / 0.6582 GB, free: 11.28 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009971/1.412, allocations: 0.8768 MB / 0.6591 GB, free: 10.41 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007431/1.413, allocations: 156 kB / 0.6592 GB, free: 10.26 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005673/1.413, allocations: 0.6488 MB / 0.6599 GB, free: 9.602 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004919/1.418, allocations: 2.202 MB / 0.662 GB, free: 7.395 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008663/1.427, allocations: 7.173 MB / 0.669 GB, free: 13.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008985/1.436, allocations: 4.036 MB / 0.673 GB, free: 9.656 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001667/1.436, allocations: 48 kB / 0.673 GB, free: 9.609 MB / 458.7 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.02295/1.459, allocations: 8.598 MB / 0.6814 GB, free: 1.027 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001593/1.459, allocations: 80 kB / 0.6815 GB, free: 0.9492 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002611/1.46, allocations: 183.9 kB / 0.6817 GB, free: 0.7695 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003673/1.46, allocations: 264 kB / 0.6819 GB, free: 0.5117 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008505/1.469, allocations: 1.852 MB / 0.6837 GB, free: 14.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003988/1.469, allocations: 354.6 kB / 0.6841 GB, free: 14.31 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007702/1.477, allocations: 379.5 kB / 0.6844 GB, free: 13.94 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001603/1.478, allocations: 0.4929 MB / 0.6849 GB, free: 13.45 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 819 * Number of states: 0 () * Number of discrete variables: 24 (world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearB_Bearing.cylinderColor[3],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[1],gearB.sphereColor[3],gearB.sphereColor[2],gearB.sphereColor[1],gearA.sphereColor[3],gearA.sphereColor[2],gearA.sphereColor[1],gearA_Bearing.cylinderColor[3],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (999): * Single equations (assignments): 992 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001737/1.48, allocations: 0.7091 MB / 0.6856 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001514/1.482, allocations: 418.5 kB / 0.686 GB, free: 12.32 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006357/1.488, allocations: 2.083 MB / 0.688 GB, free: 10.22 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001895/1.488, allocations: 43.5 kB / 0.6881 GB, free: 10.18 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/1.488, allocations: 0 / 0.6881 GB, free: 10.18 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-05/1.488, allocations: 7.969 kB / 0.6881 GB, free: 10.17 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0232/1.512, allocations: 8.361 MB / 0.6962 GB, free: 1.582 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.64e-05/1.512, allocations: 16 kB / 0.6963 GB, free: 1.566 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001889/1.514, allocations: 324.2 kB / 0.6966 GB, free: 1.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002007/1.514, allocations: 48.84 kB / 0.6966 GB, free: 1.199 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002769/1.514, allocations: 55.98 kB / 0.6967 GB, free: 1.145 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2957/1.81, allocations: 1.29 MB / 0.6979 GB, free: 111.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.077e-05/1.81, allocations: 24.69 kB / 0.698 GB, free: 111.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008737/1.819, allocations: 6.793 MB / 0.7046 GB, free: 107.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001676/1.82, allocations: 0.5061 MB / 0.7051 GB, free: 107.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001303/1.822, allocations: 49.67 kB / 0.7051 GB, free: 107.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002753/1.824, allocations: 76.78 kB / 0.7052 GB, free: 107.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000471/1.825, allocations: 160.9 kB / 0.7054 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002344/1.825, allocations: 83.48 kB / 0.7054 GB, free: 107.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007892/1.833, allocations: 3.118 MB / 0.7085 GB, free: 107.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.507e-06/1.833, allocations: 0.8438 kB / 0.7085 GB, free: 107.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008572/1.842, allocations: 1.129 MB / 0.7096 GB, free: 107.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 70 * Number of states: 2 (constantSpeed.phi,gearB.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 165 * Array equations: 7 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006766/1.842, allocations: 223.3 kB / 0.7098 GB, free: 107.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0105/1.853, allocations: 4.868 MB / 0.7146 GB, free: 107.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.821e-05/1.853, allocations: 3.281 kB / 0.7146 GB, free: 107.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002646/1.856, allocations: 1.223 MB / 0.7158 GB, free: 107.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003728/1.859, allocations: 0.5163 MB / 0.7163 GB, free: 107 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02068/1.88, allocations: 8.703 MB / 0.7248 GB, free: 104.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007528/1.888, allocations: 3.885 MB / 0.7285 GB, free: 104 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008361/1.896, allocations: 2.447 MB / 0.7309 GB, free: 104 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/1.897, allocations: 320 kB / 0.7312 GB, free: 104 MB / 474.7 MB Notification: Performance of SimCode: time 1.838e-06/1.897, allocations: 0 / 0.7312 GB, free: 104 MB / 474.7 MB Notification: Performance of Templates: time 0.1076/2.005, allocations: 35.16 MB / 0.7656 GB, free: 100.6 MB / 474.7 MB