Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadModel(Modelica): time 1.64/1.64, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.281e-05/3.316e-05, allocations: 4 kB / 225 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2127, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1281/0.3408, allocations: 84.65 MB / 348.4 MB, free: 5.082 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/0.3411, allocations: 87.94 kB / 348.5 MB, free: 4.996 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5084/0.8495, allocations: 91.6 MB / 440.1 MB, free: 33.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.42e-06/0.8496, allocations: 0 / 440.1 MB, free: 33.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000209/0.8498, allocations: 87.94 kB / 440.2 MB, free: 33.35 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1644 * Number of variables: 1644 Notification: Performance of Generate backend data structure: time 0.01702/0.8668, allocations: 4.617 MB / 444.8 MB, free: 28.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.8669, allocations: 8.031 kB / 444.8 MB, free: 28.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01486/0.8818, allocations: 2.666 MB / 447.5 MB, free: 25.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01536/0.8972, allocations: 5.551 MB / 453 MB, free: 20.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004186/0.8977, allocations: 357.2 kB / 453.4 MB, free: 20.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001896/0.8996, allocations: 463.8 kB / 453.8 MB, free: 19.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02827/0.9279, allocations: 12.22 MB / 466.1 MB, free: 6.184 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001954/0.9281, allocations: 67.34 kB / 466.1 MB, free: 6.117 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001082/0.9292, allocations: 227.9 kB / 466.3 MB, free: 5.895 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002012/0.9312, allocations: 1.186 MB / 467.5 MB, free: 4.703 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02586/0.9571, allocations: 9.717 MB / 477.2 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2914/1.249, allocations: 52.31 MB / 0.5171 GB, free: 37.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01374/1.262, allocations: 4.024 MB / 0.5211 GB, free: 36.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003034/1.265, allocations: 1.602 MB / 0.5226 GB, free: 36.45 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01499/1.28, allocations: 7.398 MB / 0.5299 GB, free: 34.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/1.281, allocations: 51.03 kB / 0.5299 GB, free: 34.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=165): time 6.391e-06/1.281, allocations: 0 / 0.5299 GB, free: 34.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=188): time 0.05084/1.331, allocations: 13.83 MB / 0.5434 GB, free: 31.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001225/1.333, allocations: 1.592 MB / 0.545 GB, free: 29.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007901/1.341, allocations: 3.663 MB / 0.5485 GB, free: 29.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003765/1.341, allocations: 54.73 kB / 0.5486 GB, free: 29.29 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002378/1.343, allocations: 3.304 MB / 0.5518 GB, free: 26.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000984/1.344, allocations: 0.7452 MB / 0.5525 GB, free: 26.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000657/1.345, allocations: 129.7 kB / 0.5527 GB, free: 26.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004541/1.346, allocations: 0.5864 MB / 0.5532 GB, free: 25.81 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004698/1.35, allocations: 2.099 MB / 0.5553 GB, free: 25.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00683/1.357, allocations: 6.11 MB / 0.5613 GB, free: 19.01 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006942/1.364, allocations: 3.536 MB / 0.5647 GB, free: 18.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001231/1.364, allocations: 42.47 kB / 0.5648 GB, free: 18.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=863) (initialization): time 0.02041/1.385, allocations: 8.143 MB / 0.5727 GB, free: 14.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/1.385, allocations: 69.88 kB / 0.5728 GB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006152/1.391, allocations: 2.607 MB / 0.5753 GB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003535/1.395, allocations: 1.002 MB / 0.5763 GB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007142/1.402, allocations: 1.592 MB / 0.5779 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004169/1.406, allocations: 4.007 MB / 0.5818 GB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007844/1.414, allocations: 0.504 MB / 0.5823 GB, free: 6.203 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001407/1.415, allocations: 410.2 kB / 0.5826 GB, free: 5.812 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 42 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (828): * Single equations (assignments): 819 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001411/1.417, allocations: 0.6169 MB / 0.5833 GB, free: 5.195 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008137/1.418, allocations: 371.2 kB / 0.5836 GB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007517/1.425, allocations: 3.126 MB / 0.5867 GB, free: 2.332 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006084/1.431, allocations: 2.601 MB / 0.5892 GB, free: 256 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.847e-05/1.431, allocations: 4 kB / 0.5892 GB, free: 252 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.921e-05/1.431, allocations: 10.12 kB / 0.5892 GB, free: 252 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02728/1.459, allocations: 9.939 MB / 0.5989 GB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.805e-05/1.459, allocations: 15.94 kB / 0.5989 GB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002184/1.461, allocations: 344.6 kB / 0.5993 GB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003952/1.465, allocations: 0.9748 MB / 0.6002 GB, free: 7.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003973/1.465, allocations: 59.64 kB / 0.6003 GB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006947/1.472, allocations: 4.588 MB / 0.6047 GB, free: 2.887 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001443/1.474, allocations: 1.463 MB / 0.6062 GB, free: 1.336 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01313/1.487, allocations: 7.136 MB / 0.6131 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002236/1.489, allocations: 0.647 MB / 0.6138 GB, free: 9.793 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008749/1.49, allocations: 56.81 kB / 0.6138 GB, free: 9.742 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002992/1.493, allocations: 173.4 kB / 0.614 GB, free: 9.598 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005534/1.494, allocations: 168.3 kB / 0.6142 GB, free: 9.434 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000236/1.494, allocations: 69.86 kB / 0.6142 GB, free: 9.367 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006449/1.501, allocations: 2.517 MB / 0.6167 GB, free: 6.836 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.144e-06/1.501, allocations: 0 / 0.6167 GB, free: 6.836 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007839/1.508, allocations: 1.109 MB / 0.6178 GB, free: 5.734 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 56 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 157 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007071/1.509, allocations: 216.2 kB / 0.618 GB, free: 5.523 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01293/1.522, allocations: 5.296 MB / 0.6231 GB, free: 212 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-05/1.522, allocations: 4 kB / 0.6231 GB, free: 208 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005333/1.528, allocations: 2.087 MB / 0.6252 GB, free: 14.05 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003264/1.531, allocations: 441 kB / 0.6256 GB, free: 13.62 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02387/1.555, allocations: 9.147 MB / 0.6345 GB, free: 4.312 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008095/1.563, allocations: 3.49 MB / 0.6379 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001451/1.564, allocations: 319.4 kB / 0.6383 GB, free: 500 kB / 394.7 MB Notification: Performance of SimCode: time 1.939e-06/1.564, allocations: 0 / 0.6383 GB, free: 500 kB / 394.7 MB Notification: Performance of Templates: time 0.3945/1.959, allocations: 129.6 MB / 0.7648 GB, free: 23.45 MB / 394.7 MB