Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadModel(ModelicaTest): time 1.857/1.857, allocations: 209.3 MB / 221.5 MB, free: 7.742 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.9e-05/3.918e-05, allocations: 4 kB / 273.1 MB, free: 3.188 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08652/0.08658, allocations: 48.7 MB / 321.8 MB, free: 2.391 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3664/0.453, allocations: 95.96 MB / 417.8 MB, free: 15.37 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.4533, allocations: 70.91 kB / 417.8 MB, free: 15.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7797/1.233, allocations: 118.2 MB / 0.5235 GB, free: 76.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.249e-06/1.233, allocations: 0 / 0.5235 GB, free: 76.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004545/1.234, allocations: 115 kB / 0.5236 GB, free: 76.84 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: 2023 * Number of variables: 2023 Notification: Performance of Generate backend data structure: time 0.01937/1.253, allocations: 5.936 MB / 0.5294 GB, free: 75.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/1.253, allocations: 11.56 kB / 0.5294 GB, free: 75.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03614/1.289, allocations: 6.995 MB / 0.5362 GB, free: 75.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02391/1.313, allocations: 7.793 MB / 0.5438 GB, free: 74.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008573/1.314, allocations: 439.2 kB / 0.5442 GB, free: 74.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003631/1.318, allocations: 0.5821 MB / 0.5448 GB, free: 74.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05/1.368, allocations: 13.75 MB / 0.5582 GB, free: 71.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000434/1.368, allocations: 81.72 kB / 0.5583 GB, free: 71.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001821/1.37, allocations: 276.6 kB / 0.5586 GB, free: 71.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003319/1.373, allocations: 1.315 MB / 0.5599 GB, free: 71.58 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04471/1.418, allocations: 11.3 MB / 0.5709 GB, free: 71.56 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08452/1.503, allocations: 62.02 MB / 0.6315 GB, free: 27.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01848/1.521, allocations: 5.68 MB / 0.637 GB, free: 25.57 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004836/1.526, allocations: 3.291 MB / 0.6402 GB, free: 23.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007079/1.527, allocations: 0.6906 MB / 0.6409 GB, free: 22.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/1.527, allocations: 60.56 kB / 0.641 GB, free: 22.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 7.713e-06/1.527, allocations: 0 / 0.641 GB, free: 22.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=320): time 0.09663/1.624, allocations: 29.16 MB / 0.6694 GB, free: 14.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000196/1.624, allocations: 265.3 kB / 0.6697 GB, free: 14.44 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01098/1.635, allocations: 4.622 MB / 0.6742 GB, free: 10.35 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007031/1.636, allocations: 75.66 kB / 0.6743 GB, free: 10.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004524/1.64, allocations: 4.04 MB / 0.6782 GB, free: 6.645 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001935/1.642, allocations: 1.187 MB / 0.6794 GB, free: 5.594 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008388/1.643, allocations: 155.6 kB / 0.6795 GB, free: 5.445 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006355/1.644, allocations: 0.6321 MB / 0.6801 GB, free: 4.902 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007675/1.651, allocations: 3.246 MB / 0.6833 GB, free: 1.973 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2756/1.927, allocations: 7.753 MB / 0.6909 GB, free: 81.53 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/1.937, allocations: 4.903 MB / 0.6957 GB, free: 81.47 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002731/1.938, allocations: 42.03 kB / 0.6957 GB, free: 81.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03126/1.969, allocations: 12.05 MB / 0.7075 GB, free: 81.18 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001425/1.969, allocations: 74.69 kB / 0.7076 GB, free: 81.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001798/1.969, allocations: 144.9 kB / 0.7077 GB, free: 81.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007032/1.976, allocations: 2.138 MB / 0.7098 GB, free: 81.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007541/1.984, allocations: 1.759 MB / 0.7115 GB, free: 81.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03373/2.018, allocations: 14.33 MB / 0.7255 GB, free: 78.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01736/2.035, allocations: 451.4 kB / 0.7259 GB, free: 78.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003117/2.038, allocations: 455 kB / 0.7264 GB, free: 78.25 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (928): * Single equations (assignments): 923 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003152/2.041, allocations: 0.6719 MB / 0.727 GB, free: 77.99 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002455/2.044, allocations: 0.4928 MB / 0.7275 GB, free: 77.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03169/2.076, allocations: 7.015 MB / 0.7343 GB, free: 77.25 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.574e-05/2.076, allocations: 36.03 kB / 0.7344 GB, free: 77.25 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.192e-05/2.076, allocations: 11.03 kB / 0.7344 GB, free: 77.25 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.142e-05/2.076, allocations: 14.11 kB / 0.7344 GB, free: 77.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05834/2.134, allocations: 15.98 MB / 0.75 GB, free: 71.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.16e-05/2.134, allocations: 5.812 kB / 0.75 GB, free: 71.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00391/2.138, allocations: 0.5099 MB / 0.7505 GB, free: 71.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006256/2.145, allocations: 1.874 MB / 0.7523 GB, free: 70.74 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003281/2.145, allocations: 67.95 kB / 0.7524 GB, free: 70.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02136/2.166, allocations: 12.82 MB / 0.7649 GB, free: 64.29 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.679e-06/2.166, allocations: 14.5 kB / 0.7649 GB, free: 64.28 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02137/2.188, allocations: 12.06 MB / 0.7767 GB, free: 58.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003488/2.191, allocations: 1.058 MB / 0.7778 GB, free: 57.91 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001304/2.193, allocations: 59.08 kB / 0.7778 GB, free: 57.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003583/2.196, allocations: 222.5 kB / 0.778 GB, free: 57.83 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007953/2.197, allocations: 213.1 kB / 0.7782 GB, free: 57.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003578/2.197, allocations: 92.58 kB / 0.7783 GB, free: 57.76 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006607/2.204, allocations: 3.263 MB / 0.7815 GB, free: 55.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.333e-06/2.204, allocations: 0 / 0.7815 GB, free: 55.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008822/2.213, allocations: 1.489 MB / 0.783 GB, free: 53.63 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 254 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008428/2.214, allocations: 217.5 kB / 0.7832 GB, free: 53.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01408/2.228, allocations: 7.913 MB / 0.7909 GB, free: 46.22 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.343e-06/2.228, allocations: 4.125 kB / 0.7909 GB, free: 46.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00806/2.236, allocations: 3.83 MB / 0.7946 GB, free: 42.89 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003791/2.24, allocations: 0.6189 MB / 0.7952 GB, free: 42.36 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02359/2.263, allocations: 12.2 MB / 0.8071 GB, free: 31.43 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005851/2.269, allocations: 4.52 MB / 0.8116 GB, free: 28.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.007527/2.277, allocations: 2.488 MB / 0.814 GB, free: 26.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/2.278, allocations: 353.2 kB / 0.8143 GB, free: 26.13 MB / 442.7 MB Notification: Performance of SimCode: time 1.562e-06/2.278, allocations: 0 / 0.8143 GB, free: 26.13 MB / 442.7 MB Notification: Performance of Templates: time 0.4068/2.685, allocations: 59.83 MB / 0.8728 GB, free: 81.39 MB / 458.7 MB