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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.621/1.621, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.335e-05/3.355e-05, allocations: 4 kB / 225 MB, free: 2.785 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2133, allocations: 38.77 MB / 263.8 MB, free: 9.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1258/0.3391, allocations: 82.4 MB / 346.2 MB, free: 7.355 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.3394, allocations: 83.95 kB / 346.2 MB, free: 7.273 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4889/0.8283, allocations: 83.59 MB / 429.8 MB, free: 43.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.8284, allocations: 4.172 kB / 429.8 MB, free: 43.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001915/0.8286, allocations: 79.94 kB / 429.9 MB, free: 43.54 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.01024/0.8388, allocations: 3.79 MB / 433.7 MB, free: 39.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.8389, allocations: 8.031 kB / 433.7 MB, free: 39.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01478/0.8537, allocations: 2.436 MB / 436.1 MB, free: 37.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01362/0.8674, allocations: 5.031 MB / 441.2 MB, free: 32.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003458/0.8678, allocations: 308.4 kB / 441.5 MB, free: 31.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001582/0.8694, allocations: 415.8 kB / 441.9 MB, free: 31.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02105/0.8904, allocations: 9.75 MB / 451.6 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002083/0.8907, allocations: 71.38 kB / 451.7 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001254/0.892, allocations: 195.9 kB / 451.9 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001729/0.8937, allocations: 0.9901 MB / 452.9 MB, free: 19.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01684/0.9106, allocations: 7.355 MB / 460.2 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2673/1.178, allocations: 45.37 MB / 0.4938 GB, free: 72.04 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007785/1.186, allocations: 2.681 MB / 0.4964 GB, free: 71.38 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001627/1.187, allocations: 0.8205 MB / 0.4972 GB, free: 71.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007381/1.195, allocations: 3.455 MB / 0.5006 GB, free: 70.19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/1.195, allocations: 50.25 kB / 0.5006 GB, free: 70.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 5.847e-06/1.195, allocations: 0 / 0.5006 GB, free: 70.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=145): time 0.02698/1.222, allocations: 8.196 MB / 0.5086 GB, free: 67.45 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/1.222, allocations: 144.5 kB / 0.5087 GB, free: 67.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007123/1.229, allocations: 3.425 MB / 0.5121 GB, free: 66.96 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002232/1.229, allocations: 50.22 kB / 0.5121 GB, free: 66.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002158/1.232, allocations: 3.008 MB / 0.5151 GB, free: 65.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006394/1.232, allocations: 0.5838 MB / 0.5156 GB, free: 64.8 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004942/1.233, allocations: 115.1 kB / 0.5158 GB, free: 64.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003626/1.233, allocations: 0.5528 MB / 0.5163 GB, free: 64.48 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003208/1.236, allocations: 1.466 MB / 0.5177 GB, free: 64.46 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005175/1.242, allocations: 5.147 MB / 0.5228 GB, free: 59.63 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008164/1.25, allocations: 2.756 MB / 0.5254 GB, free: 59.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002756/1.25, allocations: 38.5 kB / 0.5255 GB, free: 59.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01514/1.265, allocations: 5.899 MB / 0.5312 GB, free: 58.99 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/1.266, allocations: 68.56 kB / 0.5313 GB, free: 58.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001685/1.266, allocations: 137.7 kB / 0.5314 GB, free: 58.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002326/1.266, allocations: 192.5 kB / 0.5316 GB, free: 58.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005992/1.272, allocations: 1.39 MB / 0.533 GB, free: 58.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002285/1.272, allocations: 257 kB / 0.5332 GB, free: 58.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008393/1.281, allocations: 371.2 kB / 0.5336 GB, free: 58.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001217/1.282, allocations: 359 kB / 0.5339 GB, free: 58.61 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.001467/1.283, allocations: 0.5594 MB / 0.5345 GB, free: 58.15 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007427/1.284, allocations: 332.7 kB / 0.5348 GB, free: 57.97 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002809/1.287, allocations: 1.174 MB / 0.5359 GB, free: 57.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.076e-05/1.287, allocations: 19.14 kB / 0.5359 GB, free: 57.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/1.287, allocations: 0 / 0.5359 GB, free: 57.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/1.287, allocations: 12.52 kB / 0.536 GB, free: 57.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01316/1.3, allocations: 5.573 MB / 0.5414 GB, free: 54.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.997e-05/1.3, allocations: 16.5 kB / 0.5414 GB, free: 54.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00145/1.302, allocations: 270.5 kB / 0.5417 GB, free: 54.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.559e-05/1.302, allocations: 27.72 kB / 0.5417 GB, free: 54.93 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/1.302, allocations: 54.3 kB / 0.5418 GB, free: 54.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-05/1.302, allocations: 33.53 kB / 0.5418 GB, free: 54.9 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.92e-05/1.302, allocations: 32.56 kB / 0.5418 GB, free: 54.89 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004711/1.307, allocations: 5.1 MB / 0.5468 GB, free: 50.72 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001651/1.309, allocations: 0.5157 MB / 0.5473 GB, free: 50.38 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007232/1.309, allocations: 47.73 kB / 0.5473 GB, free: 50.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002366/1.312, allocations: 87.41 kB / 0.5474 GB, free: 50.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002906/1.312, allocations: 142.1 kB / 0.5476 GB, free: 50.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/1.312, allocations: 65.98 kB / 0.5476 GB, free: 50.28 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005319/1.318, allocations: 2.365 MB / 0.5499 GB, free: 48.38 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.212e-06/1.318, allocations: 4 kB / 0.5499 GB, free: 48.38 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006509/1.324, allocations: 0.8652 MB / 0.5508 GB, free: 47.52 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.0005545/1.325, allocations: 202.8 kB / 0.551 GB, free: 47.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006273/1.331, allocations: 3.271 MB / 0.5542 GB, free: 44.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.786e-05/1.331, allocations: 4 kB / 0.5542 GB, free: 44.33 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/1.332, allocations: 0.6802 MB / 0.5548 GB, free: 43.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002863/1.335, allocations: 421.1 kB / 0.5552 GB, free: 43.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0166/1.352, allocations: 7.313 MB / 0.5624 GB, free: 36.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005594/1.357, allocations: 3.175 MB / 0.5655 GB, free: 34.15 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009332/1.358, allocations: 270.6 kB / 0.5657 GB, free: 33.89 MB / 346.7 MB Notification: Performance of SimCode: time 1.633e-06/1.358, allocations: 0 / 0.5657 GB, free: 33.89 MB / 346.7 MB Notification: Performance of Templates: time 0.07689/1.435, allocations: 48.56 MB / 0.6132 GB, free: 7.289 MB / 362.7 MB