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.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.722/1.722, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.972e-05/2.997e-05, allocations: 4 kB / 225 MB, free: 2.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2676, allocations: 38.76 MB / 263.8 MB, free: 9.828 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1267/0.3944, allocations: 82.4 MB / 346.2 MB, free: 7.297 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.3947, allocations: 83.95 kB / 346.3 MB, free: 7.215 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5689/0.9636, allocations: 83.59 MB / 429.9 MB, free: 43.56 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.148e-06/0.9637, allocations: 0 / 429.9 MB, free: 43.56 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000311/0.964, allocations: 83.98 kB / 429.9 MB, free: 43.48 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: 1450 * Number of variables: 1450 Notification: Performance of Generate backend data structure: time 0.01699/0.981, allocations: 3.786 MB / 433.7 MB, free: 39.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.187e-05/0.9811, allocations: 12.03 kB / 433.7 MB, free: 39.62 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02317/1.004, allocations: 2.436 MB / 436.2 MB, free: 37.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01404/1.018, allocations: 5.028 MB / 441.2 MB, free: 32.08 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000372/1.019, allocations: 312.3 kB / 441.5 MB, free: 31.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00166/1.02, allocations: 411.8 kB / 441.9 MB, free: 31.37 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02094/1.041, allocations: 9.758 MB / 451.7 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001964/1.042, allocations: 63.41 kB / 451.7 MB, free: 20.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001237/1.043, allocations: 199.9 kB / 451.9 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001612/1.045, allocations: 0.9862 MB / 452.9 MB, free: 19.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01687/1.061, allocations: 7.355 MB / 460.3 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2644/1.326, allocations: 45.37 MB / 0.4938 GB, free: 72.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007144/1.333, allocations: 2.687 MB / 0.4964 GB, free: 72.21 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/1.335, allocations: 0.8228 MB / 0.4972 GB, free: 72.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007/1.342, allocations: 3.454 MB / 0.5006 GB, free: 71.03 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/1.342, allocations: 49.34 kB / 0.5006 GB, free: 70.99 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 5.32e-06/1.342, allocations: 0 / 0.5006 GB, free: 70.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=145): time 0.02584/1.368, allocations: 8.186 MB / 0.5086 GB, free: 68.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/1.368, allocations: 151.3 kB / 0.5088 GB, free: 68.13 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00642/1.374, allocations: 3.421 MB / 0.5121 GB, free: 67.8 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000205/1.374, allocations: 48.58 kB / 0.5122 GB, free: 67.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002166/1.377, allocations: 3.076 MB / 0.5152 GB, free: 66.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005784/1.377, allocations: 0.5886 MB / 0.5157 GB, free: 65.71 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004128/1.378, allocations: 109.3 kB / 0.5158 GB, free: 65.71 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003465/1.378, allocations: 0.5487 MB / 0.5164 GB, free: 65.4 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002846/1.381, allocations: 1.463 MB / 0.5178 GB, free: 65.38 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004915/1.386, allocations: 5.154 MB / 0.5228 GB, free: 60.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004888/1.391, allocations: 2.765 MB / 0.5255 GB, free: 60.53 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001333/1.391, allocations: 40.84 kB / 0.5256 GB, free: 60.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01426/1.405, allocations: 6.014 MB / 0.5315 GB, free: 59.74 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001157/1.405, allocations: 61.62 kB / 0.5315 GB, free: 59.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001546/1.405, allocations: 132.8 kB / 0.5316 GB, free: 59.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002426/1.406, allocations: 199.4 kB / 0.5318 GB, free: 59.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005934/1.412, allocations: 1.383 MB / 0.5332 GB, free: 59.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002383/1.412, allocations: 258.4 kB / 0.5334 GB, free: 59.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005947/1.418, allocations: 371.6 kB / 0.5338 GB, free: 59.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/1.419, allocations: 356.9 kB / 0.5341 GB, free: 59.37 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 607 * 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 (726): * Single equations (assignments): 723 * 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.001063/1.42, allocations: 0.5527 MB / 0.5347 GB, free: 58.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006918/1.421, allocations: 345.2 kB / 0.535 GB, free: 58.72 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00249/1.423, allocations: 1.169 MB / 0.5361 GB, free: 58.26 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.69e-05/1.423, allocations: 21.8 kB / 0.5362 GB, free: 58.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/1.423, allocations: 0 / 0.5362 GB, free: 58.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.802e-05/1.423, allocations: 11.25 kB / 0.5362 GB, free: 58.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/1.436, allocations: 5.571 MB / 0.5416 GB, free: 55.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.233e-05/1.436, allocations: 17.53 kB / 0.5416 GB, free: 55.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/1.437, allocations: 273.6 kB / 0.5419 GB, free: 55.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.564e-05/1.437, allocations: 31.03 kB / 0.5419 GB, free: 55.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001184/1.437, allocations: 43.34 kB / 0.542 GB, free: 55.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-05/1.437, allocations: 39.56 kB / 0.542 GB, free: 55.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.759e-05/1.437, allocations: 30.25 kB / 0.542 GB, free: 55.65 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004499/1.442, allocations: 5.104 MB / 0.547 GB, free: 51.47 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001503/1.443, allocations: 0.5105 MB / 0.5475 GB, free: 51.13 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007235/1.444, allocations: 54.92 kB / 0.5476 GB, free: 51.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002081/1.446, allocations: 90.61 kB / 0.5476 GB, free: 51.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002181/1.446, allocations: 147.8 kB / 0.5478 GB, free: 51.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/1.447, allocations: 62.94 kB / 0.5478 GB, free: 51.02 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005144/1.452, allocations: 2.364 MB / 0.5501 GB, free: 49.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.129e-06/1.452, allocations: 0 / 0.5501 GB, free: 49.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006298/1.458, allocations: 0.8638 MB / 0.551 GB, free: 48.21 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * 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 (138): * Single equations (assignments): 135 * 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.0005029/1.459, allocations: 206.4 kB / 0.5512 GB, free: 48.01 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006139/1.465, allocations: 3.274 MB / 0.5544 GB, free: 45.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.689e-05/1.465, allocations: 6.406 kB / 0.5544 GB, free: 45.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/1.466, allocations: 0.6709 MB / 0.555 GB, free: 44.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002848/1.469, allocations: 418.7 kB / 0.5554 GB, free: 44.05 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01572/1.485, allocations: 6.883 MB / 0.5622 GB, free: 37.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005489/1.49, allocations: 3.165 MB / 0.5653 GB, free: 35.2 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.006012/1.496, allocations: 1.759 MB / 0.567 GB, free: 34.1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008169/1.497, allocations: 223.2 kB / 0.5672 GB, free: 33.89 MB / 346.7 MB Notification: Performance of SimCode: time 1.784e-06/1.497, allocations: 0 / 0.5672 GB, free: 33.89 MB / 346.7 MB Notification: Performance of Templates: time 0.07432/1.572, allocations: 24.8 MB / 0.5914 GB, free: 14.37 MB / 346.7 MB