Running command: translateModel(PlanarMechanics.Examples.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") Notification: Performance of loadModel(PlanarMechanics): time 2.028/2.028, allocations: 234.8 MB / 247 MB, free: 1.938 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.424e-05/3.435e-05, allocations: 7.938 kB / 302.2 MB, free: 14.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09607/0.09613, allocations: 52.37 MB / 354.6 MB, free: 10.13 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3699/0.4661, allocations: 88.42 MB / 443 MB, free: 8.598 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.4663, allocations: 71.97 kB / 443.1 MB, free: 8.527 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2865/0.7528, allocations: 74.17 MB / 0.5051 GB, free: 13.82 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.165e-06/0.7528, allocations: 0 / 0.5051 GB, free: 13.82 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001689/0.753, allocations: 64 kB / 0.5052 GB, free: 13.76 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.01712/0.7702, allocations: 3.917 MB / 0.509 GB, free: 9.785 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.7702, allocations: 8.031 kB / 0.509 GB, free: 9.777 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01228/0.7825, allocations: 2.003 MB / 0.511 GB, free: 7.766 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005792/0.7883, allocations: 1.896 MB / 0.5128 GB, free: 5.824 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004491/0.7888, allocations: 266.9 kB / 0.5131 GB, free: 5.562 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001949/0.7908, allocations: 347.9 kB / 0.5134 GB, free: 5.223 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2795/1.07, allocations: 8.771 MB / 0.522 GB, free: 98.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000219/1.071, allocations: 29.98 kB / 0.522 GB, free: 98.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001434/1.072, allocations: 158.4 kB / 0.5221 GB, free: 98.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002441/1.074, allocations: 1.038 MB / 0.5232 GB, free: 98.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02202/1.097, allocations: 7.935 MB / 0.5309 GB, free: 98.28 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04933/1.146, allocations: 30.03 MB / 0.5602 GB, free: 82.72 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0128/1.159, allocations: 2.967 MB / 0.5631 GB, free: 81.47 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003272/1.162, allocations: 1.079 MB / 0.5642 GB, free: 81.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01175/1.174, allocations: 6.324 MB / 0.5704 GB, free: 76.62 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/1.174, allocations: 43.44 kB / 0.5704 GB, free: 76.58 MB / 442.7 MB Notification: Performance of pre-optimization done (n=179): time 6.185e-06/1.174, allocations: 0 / 0.5704 GB, free: 76.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=233): time 0.02394/1.198, allocations: 6.696 MB / 0.5769 GB, free: 74.62 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/1.198, allocations: 75.97 kB / 0.577 GB, free: 74.55 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00517/1.203, allocations: 2.688 MB / 0.5796 GB, free: 73.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002973/1.204, allocations: 58.77 kB / 0.5797 GB, free: 73.45 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001606/1.205, allocations: 2.423 MB / 0.5821 GB, free: 71.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009188/1.206, allocations: 0.8386 MB / 0.5829 GB, free: 70.96 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004423/1.207, allocations: 102.9 kB / 0.583 GB, free: 70.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003328/1.207, allocations: 0.5081 MB / 0.5835 GB, free: 70.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003337/1.21, allocations: 1.556 MB / 0.585 GB, free: 69.96 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004963/1.215, allocations: 4.129 MB / 0.589 GB, free: 65.98 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005005/1.22, allocations: 2.579 MB / 0.5915 GB, free: 65.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.348e-05/1.22, allocations: 30.38 kB / 0.5916 GB, free: 65.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01456/1.235, allocations: 6.065 MB / 0.5975 GB, free: 62.97 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.081e-05/1.235, allocations: 44.34 kB / 0.5975 GB, free: 62.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000102/1.235, allocations: 87.78 kB / 0.5976 GB, free: 62.97 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002493/1.238, allocations: 0.713 MB / 0.5983 GB, free: 62.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004577/1.242, allocations: 1.051 MB / 0.5993 GB, free: 62.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01633/1.259, allocations: 12.37 MB / 0.6114 GB, free: 52.47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004755/1.263, allocations: 259.4 kB / 0.6117 GB, free: 52.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001065/1.265, allocations: 291.1 kB / 0.612 GB, free: 51.98 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 (583): * Single equations (assignments): 574 * 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%) 9,(2,100.0%) 17,(2,100.0%) 10,(1,100.0%) 1} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.001428/1.266, allocations: 473.9 kB / 0.6124 GB, free: 51.52 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006408/1.267, allocations: 284.3 kB / 0.6127 GB, free: 51.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006548/1.273, allocations: 3.043 MB / 0.6156 GB, free: 48.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001507/1.273, allocations: 30.95 kB / 0.6157 GB, free: 48.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.501e-05/1.273, allocations: 8 kB / 0.6157 GB, free: 48.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.766e-05/1.274, allocations: 10.73 kB / 0.6157 GB, free: 48.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01792/1.291, allocations: 8.169 MB / 0.6237 GB, free: 41.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.248e-05/1.292, allocations: 4.469 kB / 0.6237 GB, free: 41.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001582/1.293, allocations: 294.8 kB / 0.624 GB, free: 41.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001846/1.295, allocations: 0.5312 MB / 0.6245 GB, free: 41.07 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002941/1.295, allocations: 43.75 kB / 0.6245 GB, free: 41.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01191/1.307, allocations: 10.68 MB / 0.6349 GB, free: 30.48 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.859e-06/1.307, allocations: 7.906 kB / 0.635 GB, free: 30.48 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008215/1.316, allocations: 4.876 MB / 0.6397 GB, free: 25.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009817/1.317, allocations: 371.4 kB / 0.6401 GB, free: 25.53 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005326/1.317, allocations: 36 kB / 0.6401 GB, free: 25.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001545/1.319, allocations: 95.38 kB / 0.6402 GB, free: 25.43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003292/1.319, allocations: 151.4 kB / 0.6403 GB, free: 25.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001798/1.319, allocations: 67.52 kB / 0.6404 GB, free: 25.27 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0035/1.323, allocations: 1.885 MB / 0.6422 GB, free: 23.58 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.475e-06/1.323, allocations: 0 / 0.6422 GB, free: 23.58 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006628/1.329, allocations: 0.9162 MB / 0.6431 GB, free: 22.67 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 160 * 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,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007173/1.33, allocations: 189.4 kB / 0.6433 GB, free: 22.49 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008087/1.338, allocations: 4.398 MB / 0.6476 GB, free: 18.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.702e-06/1.338, allocations: 4 kB / 0.6476 GB, free: 18.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003147/1.341, allocations: 1.873 MB / 0.6494 GB, free: 16.62 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002674/1.344, allocations: 411.2 kB / 0.6498 GB, free: 16.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/1.358, allocations: 6.45 MB / 0.6561 GB, free: 10.11 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004227/1.363, allocations: 3.003 MB / 0.6591 GB, free: 7.086 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004659/1.367, allocations: 1.389 MB / 0.6604 GB, free: 5.703 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008182/1.368, allocations: 203.4 kB / 0.6606 GB, free: 5.504 MB / 442.7 MB Notification: Performance of SimCode: time 1.836e-06/1.368, allocations: 3.938 kB / 0.6606 GB, free: 5.5 MB / 442.7 MB Notification: Performance of Templates: time 0.09795/1.466, allocations: 33.05 MB / 0.6929 GB, free: 5.141 MB / 474.7 MB