Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.906/1.906, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.904e-05/2.922e-05, allocations: 7.938 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.252, allocations: 44.5 MB / 294.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.3876, allocations: 87.36 MB / 381.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.3879, allocations: 91.83 kB / 381.6 MB, free: 10.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5245/0.9125, allocations: 81.88 MB / 463.4 MB, free: 84.38 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.141e-06/0.9125, allocations: 0 / 463.4 MB, free: 84.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001814/0.9127, allocations: 81.41 kB / 463.5 MB, free: 84.38 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: 1450 * Number of variables: 1450 Notification: Performance of Generate backend data structure: time 0.01007/0.9228, allocations: 3.785 MB / 467.3 MB, free: 80.6 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.9229, allocations: 12.03 kB / 467.3 MB, free: 80.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01342/0.9363, allocations: 2.428 MB / 469.7 MB, free: 78.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01357/0.9499, allocations: 5.038 MB / 474.8 MB, free: 73.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002253/0.9502, allocations: 132 kB / 474.9 MB, free: 72.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001445/0.9517, allocations: 239.9 kB / 475.1 MB, free: 72.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01195/0.9636, allocations: 5.736 MB / 480.9 MB, free: 66.99 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01767/0.9814, allocations: 8.887 MB / 489.8 MB, free: 57.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001996/0.9816, allocations: 59.5 kB / 489.8 MB, free: 56.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001137/0.9828, allocations: 32 kB / 489.9 MB, free: 56.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001608/0.9844, allocations: 0.9853 MB / 490.8 MB, free: 55.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04671/1.031, allocations: 44.6 MB / 0.5229 GB, free: 10 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002585/1.034, allocations: 1.837 MB / 0.5247 GB, free: 8.012 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001181/1.035, allocations: 0.7391 MB / 0.5254 GB, free: 7.262 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004503/1.035, allocations: 452.4 kB / 0.5258 GB, free: 6.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/1.036, allocations: 43.12 kB / 0.5259 GB, free: 6.699 MB / 362.7 MB Notification: Performance of pre-optimization done (n=130): time 5.904e-06/1.036, allocations: 0 / 0.5259 GB, free: 6.699 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.01783/1.053, allocations: 6.861 MB / 0.5326 GB, free: 15.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/1.054, allocations: 141.3 kB / 0.5327 GB, free: 15.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006939/1.06, allocations: 2.982 MB / 0.5356 GB, free: 12.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002327/1.061, allocations: 29.7 kB / 0.5357 GB, free: 12.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00332/1.064, allocations: 3.103 MB / 0.5387 GB, free: 9.383 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008399/1.065, allocations: 0.5555 MB / 0.5392 GB, free: 8.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004813/1.065, allocations: 4 kB / 0.5392 GB, free: 8.816 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005899/1.066, allocations: 0.5666 MB / 0.5398 GB, free: 8.238 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003292/1.069, allocations: 1.386 MB / 0.5411 GB, free: 6.848 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007319/1.077, allocations: 5.225 MB / 0.5462 GB, free: 15.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006137/1.083, allocations: 2.705 MB / 0.5489 GB, free: 12.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001407/1.083, allocations: 40 kB / 0.5489 GB, free: 12.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=774) (initialization): time 0.01541/1.099, allocations: 5.634 MB / 0.5544 GB, free: 7.281 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001277/1.099, allocations: 64 kB / 0.5545 GB, free: 7.219 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002112/1.099, allocations: 140 kB / 0.5546 GB, free: 7.082 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002824/1.099, allocations: 200.8 kB / 0.5548 GB, free: 6.887 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006182/1.105, allocations: 1.431 MB / 0.5562 GB, free: 5.453 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003052/1.106, allocations: 274.9 kB / 0.5565 GB, free: 5.184 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005941/1.112, allocations: 259.5 kB / 0.5567 GB, free: 4.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/1.113, allocations: 383.6 kB / 0.5571 GB, free: 4.559 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 633 * Number of states: 0 () * Number of discrete variables: 33 (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],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (750): * Single equations (assignments): 747 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001254/1.114, allocations: 448.6 kB / 0.5575 GB, free: 4.109 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007378/1.115, allocations: 308 kB / 0.5578 GB, free: 3.805 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002569/1.118, allocations: 1.015 MB / 0.5588 GB, free: 2.785 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.562e-05/1.118, allocations: 16 kB / 0.5588 GB, free: 2.77 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.735e-06/1.118, allocations: 0 / 0.5588 GB, free: 2.77 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.667e-05/1.118, allocations: 7.969 kB / 0.5588 GB, free: 2.762 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2432/1.361, allocations: 4.709 MB / 0.5634 GB, free: 98.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.371e-05/1.361, allocations: 15.38 kB / 0.5634 GB, free: 98.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/1.362, allocations: 262.5 kB / 0.5637 GB, free: 98.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.125e-05/1.362, allocations: 23.38 kB / 0.5637 GB, free: 98.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/1.362, allocations: 26.59 kB / 0.5637 GB, free: 98.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.293e-05/1.363, allocations: 32.48 kB / 0.5638 GB, free: 98.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.548e-05/1.363, allocations: 30.94 kB / 0.5638 GB, free: 98.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004578/1.367, allocations: 4.604 MB / 0.5683 GB, free: 95.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001255/1.368, allocations: 491 kB / 0.5688 GB, free: 95.81 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003875/1.369, allocations: 28.91 kB / 0.5688 GB, free: 95.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001634/1.371, allocations: 68.72 kB / 0.5688 GB, free: 95.81 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/1.371, allocations: 130.2 kB / 0.569 GB, free: 95.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001397/1.371, allocations: 64.78 kB / 0.569 GB, free: 95.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003938/1.375, allocations: 1.967 MB / 0.571 GB, free: 95.65 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.86e-07/1.375, allocations: 0 / 0.571 GB, free: 95.65 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006421/1.381, allocations: 0.7345 MB / 0.5717 GB, free: 95.65 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 70 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 132 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005254/1.382, allocations: 175.3 kB / 0.5718 GB, free: 95.56 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006028/1.388, allocations: 3.224 MB / 0.575 GB, free: 95.47 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-05/1.388, allocations: 0 / 0.575 GB, free: 95.47 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00123/1.389, allocations: 0.6588 MB / 0.5756 GB, free: 95.42 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/1.392, allocations: 348.8 kB / 0.576 GB, free: 95.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0152/1.407, allocations: 7.182 MB / 0.583 GB, free: 93.45 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005172/1.412, allocations: 3.142 MB / 0.586 GB, free: 92.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009207/1.413, allocations: 264.3 kB / 0.5863 GB, free: 92.66 MB / 394.7 MB Notification: Performance of SimCode: time 1.948e-06/1.413, allocations: 0 / 0.5863 GB, free: 92.66 MB / 394.7 MB Notification: Performance of Templates: time 0.09268/1.506, allocations: 47.32 MB / 0.6325 GB, free: 67.19 MB / 394.7 MB