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.2_cpp_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadModel(ModelicaTest): time 2.572/2.572, allocations: 234.9 MB / 250.1 MB, free: 9.93 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.583e-05/3.589e-05, allocations: 7.984 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3837/0.3838, allocations: 54.86 MB / 362.9 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.0586/0.4424, allocations: 37.3 MB / 400.2 MB, free: 8.449 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02535/0.4679, allocations: 8.483 MB / 408.6 MB, free: 15.94 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0086/0.4765, allocations: 183.6 kB / 408.8 MB, free: 15.76 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007326/0.4839, allocations: 1.979 MB / 410.8 MB, free: 13.77 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.021/0.5049, allocations: 5.431 MB / 416.2 MB, free: 8.328 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003358/0.5083, allocations: 499.2 kB / 416.7 MB, free: 7.84 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005329/0.5137, allocations: 1.699 MB / 418.4 MB, free: 6.137 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006669/0.5204, allocations: 3.102 MB / 421.5 MB, free: 3.004 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002451/0.5229, allocations: 0.9272 MB / 422.4 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00324/0.5262, allocations: 1.445 MB / 423.9 MB, free: 0.625 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002882/0.5292, allocations: 0.8076 MB / 424.7 MB, free: 15.81 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001307/0.5305, allocations: 140 kB / 424.8 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002927/0.5335, allocations: 1.636 MB / 426.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001537/0.5351, allocations: 280 kB / 426.7 MB, free: 13.77 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.5453, allocations: 6.186 MB / 432.9 MB, free: 7.566 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.5454, allocations: 3.938 kB / 432.9 MB, free: 7.562 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.5454, allocations: 0 / 432.9 MB, free: 7.562 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002916/0.5457, allocations: 0 / 432.9 MB, free: 7.562 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1911 * Number of variables: 1911 Notification: Performance of Generate backend data structure: time 0.01454/0.5602, allocations: 4.448 MB / 437.4 MB, free: 3.047 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.997e-05/0.5603, allocations: 11.97 kB / 437.4 MB, free: 3.035 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02412/0.5844, allocations: 3.838 MB / 441.2 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00831/0.5928, allocations: 2.615 MB / 443.8 MB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003987/0.5933, allocations: 266.5 kB / 444.1 MB, free: 12.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002074/0.5953, allocations: 343.7 kB / 444.4 MB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03526/0.6306, allocations: 12.74 MB / 457.2 MB, free: 14.64 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002021/0.6309, allocations: 31.66 kB / 457.2 MB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001666/0.6326, allocations: 159.8 kB / 457.4 MB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008877/0.6415, allocations: 2.969 MB / 460.3 MB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03779/0.6793, allocations: 11.39 MB / 471.7 MB, free: 84 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4276/1.107, allocations: 42.29 MB / 0.502 GB, free: 95.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01449/1.122, allocations: 4.702 MB / 0.5066 GB, free: 94.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00159/1.123, allocations: 1.316 MB / 0.5079 GB, free: 92.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/1.123, allocations: 54.88 kB / 0.5079 GB, free: 92.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 6.813e-06/1.123, allocations: 0 / 0.5079 GB, free: 92.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=268): time 0.07462/1.198, allocations: 20.05 MB / 0.5275 GB, free: 84.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/1.198, allocations: 102.5 kB / 0.5276 GB, free: 84.56 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006167/1.204, allocations: 2.988 MB / 0.5305 GB, free: 81.58 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005619/1.205, allocations: 59.11 kB / 0.5306 GB, free: 81.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002339/1.207, allocations: 3.241 MB / 0.5337 GB, free: 78.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001395/1.209, allocations: 0.9805 MB / 0.5347 GB, free: 77.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000561/1.209, allocations: 122.7 kB / 0.5348 GB, free: 77.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004086/1.21, allocations: 0.5711 MB / 0.5353 GB, free: 76.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005926/1.216, allocations: 2.456 MB / 0.5377 GB, free: 74.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007964/1.224, allocations: 5.817 MB / 0.5434 GB, free: 66.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00826/1.232, allocations: 3.765 MB / 0.5471 GB, free: 63.14 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001101/1.232, allocations: 39.94 kB / 0.5471 GB, free: 63.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=806) (initialization): time 0.02451/1.257, allocations: 8.987 MB / 0.5559 GB, free: 54.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.062e-05/1.257, allocations: 59.81 kB / 0.556 GB, free: 54.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001502/1.257, allocations: 116 kB / 0.5561 GB, free: 53.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005262/1.262, allocations: 1.07 MB / 0.5571 GB, free: 52.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008473/1.271, allocations: 1.388 MB / 0.5585 GB, free: 51.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/1.282, allocations: 5.281 MB / 0.5636 GB, free: 46.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005821/1.287, allocations: 325.1 kB / 0.564 GB, free: 45.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001334/1.289, allocations: 353.5 kB / 0.5643 GB, free: 45.4 MB / 426.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.007516/1.296, allocations: 2.448 MB / 0.5667 GB, free: 42.94 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001011/1.297, allocations: 319.8 kB / 0.567 GB, free: 42.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05875/1.356, allocations: 5.363 MB / 0.5722 GB, free: 37.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001403/1.356, allocations: 49.08 kB / 0.5723 GB, free: 37.15 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.928e-05/1.356, allocations: 4 kB / 0.5723 GB, free: 37.15 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.525e-05/1.356, allocations: 11.95 kB / 0.5723 GB, free: 37.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05784/1.414, allocations: 13.33 MB / 0.5853 GB, free: 23.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.696e-05/1.414, allocations: 12 kB / 0.5853 GB, free: 23.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005485/1.42, allocations: 428.7 kB / 0.5857 GB, free: 23.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00737/1.427, allocations: 0.8908 MB / 0.5866 GB, free: 22.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006548/1.428, allocations: 49.17 kB / 0.5866 GB, free: 22.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01377/1.442, allocations: 4.644 MB / 0.5912 GB, free: 17.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.061e-05/1.442, allocations: 19.88 kB / 0.5912 GB, free: 17.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02072/1.463, allocations: 9.119 MB / 0.6001 GB, free: 7.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002322/1.465, allocations: 0.7274 MB / 0.6008 GB, free: 7.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008723/1.466, allocations: 53.16 kB / 0.6009 GB, free: 6.969 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002463/1.468, allocations: 152.8 kB / 0.601 GB, free: 6.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004812/1.469, allocations: 170.7 kB / 0.6012 GB, free: 6.656 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000258/1.469, allocations: 85.08 kB / 0.6012 GB, free: 6.574 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003947/1.473, allocations: 2.052 MB / 0.6033 GB, free: 4.527 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.82e-07/1.473, allocations: 0 / 0.6033 GB, free: 4.527 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006236/1.479, allocations: 1.131 MB / 0.6044 GB, free: 3.402 MB / 426.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.0008625/1.48, allocations: 212.5 kB / 0.6046 GB, free: 3.191 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01398/1.494, allocations: 6.025 MB / 0.6104 GB, free: 13.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.515e-05/1.494, allocations: 0 / 0.6104 GB, free: 13.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006164/1.501, allocations: 2.251 MB / 0.6126 GB, free: 10.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003447/1.504, allocations: 377.9 kB / 0.613 GB, free: 10.55 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03447/1.539, allocations: 14.38 MB / 0.627 GB, free: 12 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008651/1.547, allocations: 3.922 MB / 0.6309 GB, free: 8.043 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002123/1.549, allocations: 295.3 kB / 0.6312 GB, free: 7.754 MB / 458.7 MB Notification: Performance of SimCode: time 1.813e-06/1.55, allocations: 0 / 0.6312 GB, free: 7.754 MB / 458.7 MB Notification: Performance of Templates: time 0.5358/2.085, allocations: 83.43 MB / 0.7126 GB, free: 169.7 MB / 0.4948 GB