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_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadModel(ModelicaTest): time 2.3/2.3, allocations: 269 MB / 284.1 MB, free: 3.625 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.583e-05/2.573e-05, allocations: 4 kB / 349 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1312, allocations: 61.89 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.3798/0.5111, allocations: 38.24 MB / 449.2 MB, free: 7.832 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02736/0.5385, allocations: 8.709 MB / 457.9 MB, free: 2.117 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0109/0.5495, allocations: 194.8 kB / 458.1 MB, free: 2.09 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008097/0.5576, allocations: 2.012 MB / 460.1 MB, free: 1.441 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02346/0.5812, allocations: 5.618 MB / 465.7 MB, free: 13.68 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003607/0.5848, allocations: 493 kB / 466.2 MB, free: 13.37 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005455/0.5903, allocations: 1.643 MB / 467.8 MB, free: 12.25 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006539/0.5969, allocations: 3.061 MB / 470.9 MB, free: 10.45 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002456/0.5994, allocations: 0.8926 MB / 471.8 MB, free: 10.04 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003454/0.6029, allocations: 1.416 MB / 473.2 MB, free: 9.223 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003273/0.6062, allocations: 0.7529 MB / 473.9 MB, free: 8.469 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001423/0.6077, allocations: 132 kB / 474.1 MB, free: 8.34 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002953/0.6107, allocations: 1.578 MB / 475.6 MB, free: 6.758 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001529/0.6123, allocations: 275.9 kB / 475.9 MB, free: 6.488 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009687/0.622, allocations: 5.98 MB / 481.9 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.622, allocations: 0 / 481.9 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.622, allocations: 0 / 481.9 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002584/0.6223, allocations: 4 kB / 481.9 MB, free: 500 kB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01302/0.6353, allocations: 4.271 MB / 486.2 MB, free: 12.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.6354, allocations: 8.031 kB / 486.2 MB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02386/0.6593, allocations: 3.854 MB / 490 MB, free: 8.273 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007758/0.6671, allocations: 2.443 MB / 492.5 MB, free: 5.781 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004216/0.6676, allocations: 258.1 kB / 492.7 MB, free: 5.527 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002234/0.6698, allocations: 323.7 kB / 493 MB, free: 5.211 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03326/0.7032, allocations: 12.31 MB / 0.4935 GB, free: 8.371 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001844/0.7034, allocations: 35.66 kB / 0.4935 GB, free: 8.336 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001355/0.7048, allocations: 155.8 kB / 0.4937 GB, free: 8.184 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008701/0.7135, allocations: 2.844 MB / 0.4965 GB, free: 5.336 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0349/0.7484, allocations: 11.19 MB / 0.5074 GB, free: 10.12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08693/0.8354, allocations: 40.81 MB / 0.5472 GB, free: 268 kB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01607/0.8516, allocations: 4.682 MB / 0.5518 GB, free: 11.36 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001949/0.8536, allocations: 1.323 MB / 0.5531 GB, free: 9.812 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.151e-05/0.8537, allocations: 56.52 kB / 0.5532 GB, free: 9.75 MB / 474.7 MB Notification: Performance of pre-optimization done (n=249): time 5.73e-06/0.8537, allocations: 0 / 0.5532 GB, free: 9.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=267): time 0.07826/0.9319, allocations: 19.17 MB / 0.5719 GB, free: 6.316 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/0.9321, allocations: 73.41 kB / 0.5719 GB, free: 6.234 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006656/0.9387, allocations: 2.931 MB / 0.5748 GB, free: 3.297 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005405/0.9393, allocations: 57.69 kB / 0.5749 GB, free: 3.234 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00324/0.9426, allocations: 3.088 MB / 0.5779 GB, free: 108 kB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001676/0.9443, allocations: 0.9752 MB / 0.5788 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006104/0.9449, allocations: 120 kB / 0.5789 GB, free: 15 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005488/0.9455, allocations: 0.5667 MB / 0.5795 GB, free: 14.42 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0065/0.952, allocations: 2.44 MB / 0.5819 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009854/0.9619, allocations: 5.672 MB / 0.5874 GB, free: 4.695 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/0.9725, allocations: 3.712 MB / 0.591 GB, free: 0.9805 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001431/0.9727, allocations: 32 kB / 0.5911 GB, free: 0.9492 MB / 0.4948 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.04157/1.014, allocations: 8.841 MB / 0.5997 GB, free: 8.086 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001591/1.015, allocations: 56 kB / 0.5998 GB, free: 8.031 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002759/1.015, allocations: 112 kB / 0.5999 GB, free: 7.922 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007126/1.022, allocations: 1.062 MB / 0.6009 GB, free: 6.855 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008802/1.031, allocations: 1.353 MB / 0.6022 GB, free: 5.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01265/1.043, allocations: 5.265 MB / 0.6074 GB, free: 108 kB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.3701/1.414, allocations: 323 kB / 0.6077 GB, free: 160.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001499/1.415, allocations: 339.9 kB / 0.608 GB, free: 160.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (725): * Single equations (assignments): 718 * 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.007047/1.422, allocations: 2.381 MB / 0.6103 GB, free: 160.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008184/1.423, allocations: 312.7 kB / 0.6106 GB, free: 160.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01755/1.441, allocations: 5.36 MB / 0.6159 GB, free: 158.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001311/1.441, allocations: 45.06 kB / 0.6159 GB, free: 158.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.783e-05/1.441, allocations: 3.656 kB / 0.6159 GB, free: 158.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.149e-05/1.441, allocations: 14.42 kB / 0.6159 GB, free: 158.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03829/1.479, allocations: 13.05 MB / 0.6287 GB, free: 154.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.018e-05/1.479, allocations: 11 kB / 0.6287 GB, free: 154.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003674/1.483, allocations: 426 kB / 0.6291 GB, free: 154.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005026/1.488, allocations: 0.8921 MB / 0.63 GB, free: 154 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005928/1.489, allocations: 53.89 kB / 0.63 GB, free: 154 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009679/1.499, allocations: 4.636 MB / 0.6345 GB, free: 151.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.398e-05/1.499, allocations: 24.89 kB / 0.6346 GB, free: 151.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01898/1.518, allocations: 9.041 MB / 0.6434 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009642/1.519, allocations: 372.1 kB / 0.6437 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001116/1.52, allocations: 62.36 kB / 0.6438 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002799/1.523, allocations: 151.6 kB / 0.644 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006116/1.523, allocations: 161.3 kB / 0.6441 GB, free: 147 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002601/1.523, allocations: 81.14 kB / 0.6442 GB, free: 147 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004262/1.528, allocations: 2.017 MB / 0.6462 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.92e-07/1.528, allocations: 0 / 0.6462 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006518/1.534, allocations: 1.11 MB / 0.6472 GB, free: 146.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * 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 (208): * Single equations (assignments): 201 * 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.001008/1.535, allocations: 207.8 kB / 0.6474 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01259/1.548, allocations: 5.954 MB / 0.6532 GB, free: 142.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.598e-05/1.548, allocations: 0 / 0.6532 GB, free: 142.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004914/1.553, allocations: 2.255 MB / 0.6554 GB, free: 140.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00301/1.556, allocations: 394.7 kB / 0.6558 GB, free: 140 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.027/1.583, allocations: 13.91 MB / 0.6694 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006409/1.59, allocations: 3.813 MB / 0.6731 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001891/1.591, allocations: 279.4 kB / 0.6734 GB, free: 122 MB / 0.5105 GB Notification: Performance of SimCode: time 1.663e-06/1.592, allocations: 4 kB / 0.6734 GB, free: 122 MB / 0.5105 GB Notification: Performance of Templates: time 0.1394/1.731, allocations: 81.33 MB / 0.7528 GB, free: 40.67 MB / 0.5105 GB