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.95/1.95, allocations: 209.3 MB / 224.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.874e-05/2.887e-05, allocations: 4 kB / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3508, allocations: 48.7 MB / 324.8 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.05848/0.4093, allocations: 37.28 MB / 362.1 MB, free: 9.254 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02661/0.436, allocations: 8.45 MB / 370.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009752/0.4458, allocations: 191.6 kB / 370.8 MB, free: 1.543 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007842/0.4537, allocations: 1.972 MB / 372.7 MB, free: 15.56 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02226/0.476, allocations: 5.434 MB / 378.2 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003595/0.4796, allocations: 0.507 MB / 378.7 MB, free: 9.605 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005638/0.4853, allocations: 1.693 MB / 380.4 MB, free: 7.91 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006891/0.4923, allocations: 3.096 MB / 383.5 MB, free: 4.785 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002571/0.4949, allocations: 0.9273 MB / 384.4 MB, free: 3.855 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003445/0.4984, allocations: 1.438 MB / 385.8 MB, free: 2.414 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002906/0.5014, allocations: 0.8153 MB / 386.7 MB, free: 1.598 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001343/0.5028, allocations: 140 kB / 386.8 MB, free: 1.461 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00305/0.5058, allocations: 1.628 MB / 388.4 MB, free: 15.83 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001465/0.5074, allocations: 280 kB / 388.7 MB, free: 15.55 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/0.5176, allocations: 6.182 MB / 394.9 MB, free: 9.359 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.5177, allocations: 0 / 394.9 MB, free: 9.359 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.337e-06/0.5177, allocations: 0 / 394.9 MB, free: 9.359 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002949/0.518, allocations: 0 / 394.9 MB, free: 9.359 MB / 330.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.01456/0.5326, allocations: 4.452 MB / 399.3 MB, free: 4.84 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.5326, allocations: 12.03 kB / 399.3 MB, free: 4.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0243/0.5569, allocations: 3.846 MB / 403.2 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008443/0.5654, allocations: 2.615 MB / 405.8 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004345/0.5659, allocations: 262.5 kB / 406.1 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00202/0.568, allocations: 343.8 kB / 406.4 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03491/0.6029, allocations: 12.73 MB / 419.1 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000176/0.6032, allocations: 31.67 kB / 419.2 MB, free: 416 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001158/0.6043, allocations: 167.8 kB / 419.3 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009115/0.6135, allocations: 2.965 MB / 422.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03719/0.6508, allocations: 11.4 MB / 433.7 MB, free: 1.859 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09423/0.745, allocations: 42.28 MB / 476 MB, free: 6.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01596/0.7611, allocations: 4.71 MB / 480.7 MB, free: 1.488 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2779/1.039, allocations: 1.313 MB / 482 MB, free: 125.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.661e-05/1.039, allocations: 54.22 kB / 482 MB, free: 125.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=250): time 6.853e-06/1.039, allocations: 0.75 kB / 482 MB, free: 125.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=268): time 0.08477/1.124, allocations: 20.04 MB / 0.4903 GB, free: 119.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.446e-05/1.124, allocations: 107.3 kB / 0.4904 GB, free: 119.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007016/1.131, allocations: 2.981 MB / 0.4933 GB, free: 118.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005998/1.132, allocations: 59.23 kB / 0.4934 GB, free: 118.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002594/1.134, allocations: 3.246 MB / 0.4966 GB, free: 115.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001726/1.136, allocations: 0.9772 MB / 0.4975 GB, free: 115 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008362/1.137, allocations: 116.4 kB / 0.4976 GB, free: 114.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006132/1.138, allocations: 0.5699 MB / 0.4982 GB, free: 114.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006223/1.144, allocations: 2.466 MB / 0.5006 GB, free: 113.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00839/1.152, allocations: 5.808 MB / 0.5063 GB, free: 108.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008656/1.161, allocations: 3.766 MB / 0.5099 GB, free: 106.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001421/1.161, allocations: 32 kB / 0.51 GB, free: 106 MB / 410.7 MB Notification: Performance of matching and sorting (n=806) (initialization): time 0.02731/1.189, allocations: 9 MB / 0.5188 GB, free: 97.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001347/1.189, allocations: 56 kB / 0.5188 GB, free: 97.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002322/1.189, allocations: 116 kB / 0.5189 GB, free: 97.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007168/1.196, allocations: 1.071 MB / 0.52 GB, free: 96.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01198/1.208, allocations: 1.385 MB / 0.5213 GB, free: 94.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01523/1.224, allocations: 5.287 MB / 0.5265 GB, free: 89.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008914/1.233, allocations: 332.9 kB / 0.5268 GB, free: 89.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001567/1.234, allocations: 352 kB / 0.5271 GB, free: 88.81 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 536 * 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 (744): * Single equations (assignments): 737 * 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 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008342/1.243, allocations: 2.442 MB / 0.5295 GB, free: 86.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001267/1.244, allocations: 315.9 kB / 0.5298 GB, free: 86.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02152/1.265, allocations: 5.362 MB / 0.5351 GB, free: 80.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001195/1.266, allocations: 47.98 kB / 0.5351 GB, free: 80.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/1.266, allocations: 4 kB / 0.5351 GB, free: 80.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.638e-05/1.266, allocations: 11.95 kB / 0.5351 GB, free: 80.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03697/1.303, allocations: 13.34 MB / 0.5481 GB, free: 67.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-05/1.303, allocations: 15.94 kB / 0.5482 GB, free: 67.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003731/1.307, allocations: 427.3 kB / 0.5486 GB, free: 66.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005005/1.312, allocations: 0.8934 MB / 0.5494 GB, free: 65.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005788/1.312, allocations: 52.55 kB / 0.5495 GB, free: 65.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009455/1.322, allocations: 4.629 MB / 0.554 GB, free: 60.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.391e-05/1.322, allocations: 15.94 kB / 0.554 GB, free: 60.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01973/1.342, allocations: 9.11 MB / 0.5629 GB, free: 51.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002629/1.344, allocations: 0.7391 MB / 0.5636 GB, free: 50.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001238/1.346, allocations: 52.62 kB / 0.5637 GB, free: 50.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003132/1.349, allocations: 153 kB / 0.5638 GB, free: 50.26 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000818/1.35, allocations: 166.7 kB / 0.564 GB, free: 50.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003044/1.35, allocations: 79.98 kB / 0.5641 GB, free: 50.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004598/1.355, allocations: 2.06 MB / 0.5661 GB, free: 47.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.355, allocations: 0 / 0.5661 GB, free: 47.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007262/1.362, allocations: 1.131 MB / 0.5672 GB, free: 46.84 MB / 410.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.001082/1.363, allocations: 206.2 kB / 0.5674 GB, free: 46.63 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0185/1.381, allocations: 6.023 MB / 0.5733 GB, free: 40.63 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.642e-05/1.382, allocations: 4 kB / 0.5733 GB, free: 40.63 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005273/1.387, allocations: 2.253 MB / 0.5755 GB, free: 38.37 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003264/1.39, allocations: 389.3 kB / 0.5758 GB, free: 37.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02964/1.42, allocations: 14.37 MB / 0.5899 GB, free: 23.44 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007836/1.428, allocations: 3.934 MB / 0.5937 GB, free: 19.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001969/1.43, allocations: 291.4 kB / 0.594 GB, free: 19.18 MB / 410.7 MB Notification: Performance of SimCode: time 2.144e-06/1.43, allocations: 0 / 0.594 GB, free: 19.18 MB / 410.7 MB Notification: Performance of Templates: time 0.4511/1.881, allocations: 83.38 MB / 0.6754 GB, free: 97.39 MB / 426.7 MB