Running command: translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadModel(ModelicaTest): time 1.948/1.948, allocations: 209.3 MB / 221.9 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.625e-05/3.668e-05, allocations: 4 kB / 273.1 MB, free: 3.648 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08753/0.08759, allocations: 48.69 MB / 321.8 MB, free: 2.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4245/0.5121, allocations: 92.95 MB / 414.7 MB, free: 2.582 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.5124, allocations: 70.66 kB / 414.8 MB, free: 2.574 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4595/0.9719, allocations: 116.6 MB / 0.5189 GB, free: 4.828 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.021e-06/0.972, allocations: 0 / 0.5189 GB, free: 4.828 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002498/0.9722, allocations: 91.94 kB / 0.519 GB, free: 4.738 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1910 * Number of variables: 1910 Notification: Performance of Generate backend data structure: time 0.01455/0.9868, allocations: 4.441 MB / 0.5234 GB, free: 236 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.9868, allocations: 8.031 kB / 0.5234 GB, free: 228 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2554/1.242, allocations: 3.651 MB / 0.5269 GB, free: 88.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01483/1.257, allocations: 4.797 MB / 0.5316 GB, free: 87.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004733/1.258, allocations: 376.6 kB / 0.532 GB, free: 87.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002298/1.26, allocations: 0.4888 MB / 0.5324 GB, free: 87.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02852/1.288, allocations: 12.03 MB / 0.5442 GB, free: 86.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001935/1.289, allocations: 33.42 kB / 0.5442 GB, free: 86.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001383/1.29, allocations: 224.5 kB / 0.5444 GB, free: 86.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002249/1.292, allocations: 1.401 MB / 0.5458 GB, free: 86.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02447/1.317, allocations: 11 MB / 0.5566 GB, free: 86.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06468/1.382, allocations: 42.73 MB / 0.5983 GB, free: 63.01 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01106/1.393, allocations: 4.672 MB / 0.6028 GB, free: 60.79 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003984/1.397, allocations: 2.419 MB / 0.6052 GB, free: 59.85 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001157/1.398, allocations: 1.322 MB / 0.6065 GB, free: 58.67 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/1.398, allocations: 55.72 kB / 0.6066 GB, free: 58.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 6.485e-06/1.398, allocations: 0 / 0.6066 GB, free: 58.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=268): time 0.04873/1.447, allocations: 16.36 MB / 0.6225 GB, free: 47.62 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/1.447, allocations: 99.11 kB / 0.6226 GB, free: 47.51 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005501/1.452, allocations: 2.858 MB / 0.6254 GB, free: 44.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004292/1.453, allocations: 61.7 kB / 0.6255 GB, free: 44.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001919/1.455, allocations: 3.222 MB / 0.6286 GB, free: 42.02 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001095/1.456, allocations: 0.9817 MB / 0.6296 GB, free: 41.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000535/1.456, allocations: 123.7 kB / 0.6297 GB, free: 41.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004/1.457, allocations: 0.5672 MB / 0.6302 GB, free: 40.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004608/1.461, allocations: 2.408 MB / 0.6326 GB, free: 38.37 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006558/1.468, allocations: 5.731 MB / 0.6382 GB, free: 31.42 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006652/1.475, allocations: 3.763 MB / 0.6419 GB, free: 28.39 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.09e-05/1.475, allocations: 32 kB / 0.6419 GB, free: 28.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.01955/1.494, allocations: 8.555 MB / 0.6503 GB, free: 21.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.456e-05/1.495, allocations: 56 kB / 0.6503 GB, free: 21.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001307/1.495, allocations: 120 kB / 0.6504 GB, free: 20.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003829/1.499, allocations: 1.069 MB / 0.6515 GB, free: 20.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006204/1.505, allocations: 1.383 MB / 0.6528 GB, free: 18.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008205/1.513, allocations: 5.083 MB / 0.6578 GB, free: 14.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005399/1.519, allocations: 325.3 kB / 0.6581 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001213/1.52, allocations: 351.2 kB / 0.6584 GB, free: 13.89 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * Number of states: 0 () * Number of discrete variables: 39 (axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (743): * Single equations (assignments): 736 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001515/1.521, allocations: 0.5519 MB / 0.659 GB, free: 13.33 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006601/1.522, allocations: 315.9 kB / 0.6593 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01147/1.533, allocations: 5.316 MB / 0.6645 GB, free: 8.668 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.294e-05/1.534, allocations: 43.7 kB / 0.6645 GB, free: 8.629 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.476e-05/1.534, allocations: 4 kB / 0.6645 GB, free: 8.625 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.802e-05/1.534, allocations: 10.64 kB / 0.6645 GB, free: 8.625 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0308/1.564, allocations: 13.26 MB / 0.6775 GB, free: 11.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.992e-05/1.565, allocations: 8 kB / 0.6775 GB, free: 11.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002708/1.567, allocations: 428.9 kB / 0.6779 GB, free: 11.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003865/1.571, allocations: 0.8863 MB / 0.6787 GB, free: 10.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005037/1.572, allocations: 52 kB / 0.6788 GB, free: 10.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008919/1.581, allocations: 4.424 MB / 0.6831 GB, free: 5.859 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.98e-05/1.581, allocations: 19.94 kB / 0.6831 GB, free: 5.84 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2672/1.848, allocations: 9.023 MB / 0.6919 GB, free: 90.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002017/1.85, allocations: 0.7272 MB / 0.6927 GB, free: 90 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006275/1.851, allocations: 56.34 kB / 0.6927 GB, free: 90 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001889/1.853, allocations: 143.6 kB / 0.6928 GB, free: 90 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004745/1.853, allocations: 168.4 kB / 0.693 GB, free: 90 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002769/1.853, allocations: 78.97 kB / 0.6931 GB, free: 90 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004116/1.857, allocations: 1.947 MB / 0.695 GB, free: 89.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.857, allocations: 1.531 kB / 0.695 GB, free: 89.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007564/1.865, allocations: 1.12 MB / 0.6961 GB, free: 89.84 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (209): * Single equations (assignments): 202 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006634/1.866, allocations: 203.8 kB / 0.6963 GB, free: 89.76 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01165/1.877, allocations: 5.739 MB / 0.7019 GB, free: 89.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/1.877, allocations: 3.188 kB / 0.7019 GB, free: 89.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004366/1.882, allocations: 2.199 MB / 0.704 GB, free: 89.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/1.885, allocations: 400.1 kB / 0.7044 GB, free: 89.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02067/1.905, allocations: 10.28 MB / 0.7145 GB, free: 87.39 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006118/1.911, allocations: 3.935 MB / 0.7183 GB, free: 86.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/1.913, allocations: 294.6 kB / 0.7186 GB, free: 86.58 MB / 442.7 MB Notification: Performance of SimCode: time 1.913e-06/1.913, allocations: 0 / 0.7186 GB, free: 86.58 MB / 442.7 MB Notification: Performance of Templates: time 0.1126/2.026, allocations: 81.91 MB / 0.7986 GB, free: 46.75 MB / 442.7 MB