Running command: translateModel(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") Notification: Performance of loadModel(PlanarMechanics): time 2.082/2.082, allocations: 234.8 MB / 247 MB, free: 2.059 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.587e-05/3.604e-05, allocations: 8.875 kB / 302.2 MB, free: 14.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09395/0.09401, allocations: 52.37 MB / 354.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3679/0.4619, allocations: 88.39 MB / 443 MB, free: 8.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.4622, allocations: 83.95 kB / 443.1 MB, free: 8.648 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2872/0.7494, allocations: 74.11 MB / 0.505 GB, free: 14 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.119e-06/0.7495, allocations: 0 / 0.505 GB, free: 14 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001587/0.7496, allocations: 64 kB / 0.5051 GB, free: 13.93 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01678/0.7664, allocations: 3.913 MB / 0.5089 GB, free: 9.961 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.7665, allocations: 8.031 kB / 0.5089 GB, free: 9.953 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01236/0.7789, allocations: 2.003 MB / 0.5109 GB, free: 7.941 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005685/0.7846, allocations: 1.896 MB / 0.5127 GB, free: 6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004312/0.7851, allocations: 262.9 kB / 0.513 GB, free: 5.742 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001873/0.7869, allocations: 351.9 kB / 0.5133 GB, free: 5.398 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2769/1.064, allocations: 8.77 MB / 0.5219 GB, free: 98.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001559/1.064, allocations: 34.42 kB / 0.5219 GB, free: 98.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008201/1.065, allocations: 160.9 kB / 0.5221 GB, free: 98.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002277/1.067, allocations: 1.034 MB / 0.5231 GB, free: 98.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02192/1.089, allocations: 7.934 MB / 0.5308 GB, free: 98.27 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04911/1.138, allocations: 30.03 MB / 0.5602 GB, free: 82.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009925/1.148, allocations: 2.971 MB / 0.5631 GB, free: 81.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002183/1.15, allocations: 1.076 MB / 0.5641 GB, free: 81.18 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009872/1.16, allocations: 6.32 MB / 0.5703 GB, free: 76.72 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/1.16, allocations: 50.09 kB / 0.5703 GB, free: 76.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=179): time 5.908e-06/1.16, allocations: 0 / 0.5703 GB, free: 76.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=239): time 0.03421/1.195, allocations: 10.57 MB / 0.5807 GB, free: 73.21 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009683/1.204, allocations: 6.439 MB / 0.5869 GB, free: 68.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005437/1.21, allocations: 2.691 MB / 0.5896 GB, free: 67.86 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003184/1.21, allocations: 68.42 kB / 0.5896 GB, free: 67.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001623/1.212, allocations: 2.417 MB / 0.592 GB, free: 65.94 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009314/1.213, allocations: 0.8645 MB / 0.5928 GB, free: 65.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003837/1.213, allocations: 103.1 kB / 0.5929 GB, free: 65.22 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002985/1.214, allocations: 0.5126 MB / 0.5934 GB, free: 64.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003378/1.217, allocations: 1.614 MB / 0.595 GB, free: 64.28 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005165/1.222, allocations: 4.182 MB / 0.5991 GB, free: 60.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004984/1.227, allocations: 2.661 MB / 0.6017 GB, free: 59.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-05/1.227, allocations: 26 kB / 0.6017 GB, free: 59.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.0146/1.242, allocations: 6.213 MB / 0.6078 GB, free: 56.58 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.372e-05/1.242, allocations: 44 kB / 0.6078 GB, free: 56.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-05/1.242, allocations: 88 kB / 0.6079 GB, free: 56.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002249/1.244, allocations: 0.7094 MB / 0.6086 GB, free: 55.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004398/1.249, allocations: 1.077 MB / 0.6097 GB, free: 54.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01618/1.265, allocations: 12.36 MB / 0.6217 GB, free: 42.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00463/1.27, allocations: 295 kB / 0.622 GB, free: 42.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007596/1.27, allocations: 302.5 kB / 0.6223 GB, free: 42.37 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 579 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(1,100.0%) 1,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0008368/1.271, allocations: 482.4 kB / 0.6228 GB, free: 41.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005274/1.272, allocations: 284.3 kB / 0.623 GB, free: 41.62 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006932/1.279, allocations: 3.339 MB / 0.6263 GB, free: 38.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00628/1.285, allocations: 2.873 MB / 0.6291 GB, free: 36.31 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.221e-05/1.285, allocations: 11.95 kB / 0.6291 GB, free: 36.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.561e-05/1.285, allocations: 9.516 kB / 0.6291 GB, free: 36.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02332/1.309, allocations: 10.47 MB / 0.6393 GB, free: 27.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.146e-05/1.309, allocations: 4.375 kB / 0.6394 GB, free: 27.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001597/1.31, allocations: 272.5 kB / 0.6396 GB, free: 27.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002527/1.313, allocations: 0.7428 MB / 0.6403 GB, free: 26.85 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003213/1.313, allocations: 44.09 kB / 0.6404 GB, free: 26.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01597/1.329, allocations: 12.26 MB / 0.6524 GB, free: 14.15 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007887/1.337, allocations: 5.708 MB / 0.6579 GB, free: 8.191 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009077/1.346, allocations: 5.128 MB / 0.6629 GB, free: 2.887 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/1.347, allocations: 377.4 kB / 0.6633 GB, free: 2.496 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006339/1.348, allocations: 41.17 kB / 0.6633 GB, free: 2.457 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001697/1.35, allocations: 113.1 kB / 0.6634 GB, free: 2.348 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004056/1.35, allocations: 161.7 kB / 0.6636 GB, free: 2.191 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001928/1.35, allocations: 63.98 kB / 0.6637 GB, free: 2.129 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003848/1.354, allocations: 1.89 MB / 0.6655 GB, free: 236 kB / 442.7 MB Notification: Performance of sort global known variables: time 1.149e-06/1.354, allocations: 0 / 0.6655 GB, free: 236 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.006306/1.361, allocations: 0.9986 MB / 0.6665 GB, free: 15.23 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 149 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(3,88.9%) 13} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006899/1.361, allocations: 191.3 kB / 0.6667 GB, free: 15.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01004/1.371, allocations: 4.517 MB / 0.6711 GB, free: 10.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.626e-06/1.371, allocations: 0.875 kB / 0.6711 GB, free: 10.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004375/1.376, allocations: 2.056 MB / 0.6731 GB, free: 8.395 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002869/1.379, allocations: 426.7 kB / 0.6735 GB, free: 7.996 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02333/1.402, allocations: 6.684 MB / 0.68 GB, free: 1.223 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01069/1.413, allocations: 3.04 MB / 0.683 GB, free: 14.16 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.009841/1.423, allocations: 1.409 MB / 0.6844 GB, free: 12.76 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001692/1.424, allocations: 215.4 kB / 0.6846 GB, free: 12.55 MB / 474.7 MB Notification: Performance of SimCode: time 3.363e-06/1.424, allocations: 0 / 0.6846 GB, free: 12.55 MB / 474.7 MB Notification: Performance of Templates: time 0.3906/1.815, allocations: 35.75 MB / 0.7195 GB, free: 113.3 MB / 474.7 MB