Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.999/1.999, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.192e-05/3.204e-05, allocations: 4 kB / 292.1 MB, free: 8.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09164/0.0917, allocations: 50.43 MB / 342.6 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3896/0.4813, allocations: 96.72 MB / 439.3 MB, free: 13.6 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/0.4816, allocations: 86.08 kB / 439.4 MB, free: 13.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3428/0.8244, allocations: 85.92 MB / 0.513 GB, free: 11.79 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.72e-06/0.8245, allocations: 0 / 0.513 GB, free: 11.79 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002427/0.8248, allocations: 84 kB / 0.5131 GB, free: 11.7 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01246/0.8372, allocations: 3.826 MB / 0.5168 GB, free: 7.812 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.8373, allocations: 8.031 kB / 0.5168 GB, free: 7.805 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01449/0.8518, allocations: 2.44 MB / 0.5192 GB, free: 5.355 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0157/0.8675, allocations: 4.773 MB / 0.5238 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004939/0.8681, allocations: 320.2 kB / 0.5241 GB, free: 204 kB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2923/1.16, allocations: 406.3 kB / 0.5245 GB, free: 102.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02418/1.185, allocations: 9.894 MB / 0.5342 GB, free: 99.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002066/1.185, allocations: 66.62 kB / 0.5343 GB, free: 99.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001023/1.186, allocations: 202.8 kB / 0.5345 GB, free: 99.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001921/1.188, allocations: 1.004 MB / 0.5354 GB, free: 99.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01889/1.207, allocations: 7.46 MB / 0.5427 GB, free: 99.37 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04925/1.256, allocations: 45.66 MB / 0.5873 GB, free: 67.51 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008052/1.264, allocations: 2.812 MB / 0.5901 GB, free: 66.26 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001611/1.266, allocations: 0.8516 MB / 0.5909 GB, free: 65.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007167/1.273, allocations: 3.799 MB / 0.5946 GB, free: 63.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/1.273, allocations: 46.59 kB / 0.5946 GB, free: 63.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=134): time 5.441e-06/1.273, allocations: 0 / 0.5946 GB, free: 63.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=152): time 0.02642/1.3, allocations: 8.33 MB / 0.6028 GB, free: 60 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/1.3, allocations: 147.8 kB / 0.6029 GB, free: 59.84 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00603/1.306, allocations: 3.43 MB / 0.6063 GB, free: 58.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002073/1.306, allocations: 49.28 kB / 0.6063 GB, free: 58.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001817/1.308, allocations: 3.025 MB / 0.6093 GB, free: 56.26 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005841/1.308, allocations: 0.6024 MB / 0.6099 GB, free: 55.83 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003506/1.309, allocations: 120.5 kB / 0.61 GB, free: 55.74 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003367/1.309, allocations: 0.5578 MB / 0.6105 GB, free: 55.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002819/1.312, allocations: 1.478 MB / 0.612 GB, free: 54.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004482/1.316, allocations: 5.188 MB / 0.617 GB, free: 49.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004895/1.321, allocations: 2.787 MB / 0.6197 GB, free: 48.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001026/1.322, allocations: 37.91 kB / 0.6198 GB, free: 48.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.0138/1.335, allocations: 5.961 MB / 0.6256 GB, free: 46.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.945e-05/1.336, allocations: 64.69 kB / 0.6257 GB, free: 46.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001429/1.336, allocations: 133.1 kB / 0.6258 GB, free: 46.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002055/1.336, allocations: 196.3 kB / 0.626 GB, free: 46.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006037/1.342, allocations: 1.398 MB / 0.6273 GB, free: 45.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002121/1.342, allocations: 261.9 kB / 0.6276 GB, free: 45.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006117/1.348, allocations: 373 kB / 0.6279 GB, free: 45.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001034/1.349, allocations: 365 kB / 0.6283 GB, free: 45.04 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * Number of states: 0 () * Number of discrete variables: 36 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (736): * Single equations (assignments): 733 * 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.0009857/1.35, allocations: 0.56 MB / 0.6288 GB, free: 44.47 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000662/1.351, allocations: 339.2 kB / 0.6292 GB, free: 44.14 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002298/1.353, allocations: 1.21 MB / 0.6303 GB, free: 43.09 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.143e-05/1.353, allocations: 16 kB / 0.6304 GB, free: 43.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/1.353, allocations: 0 / 0.6304 GB, free: 43.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.812e-05/1.354, allocations: 14.73 kB / 0.6304 GB, free: 43.07 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/1.365, allocations: 5.721 MB / 0.636 GB, free: 37.99 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.312e-05/1.365, allocations: 20.56 kB / 0.636 GB, free: 37.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00134/1.366, allocations: 287.6 kB / 0.6363 GB, free: 37.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-05/1.366, allocations: 29.64 kB / 0.6363 GB, free: 37.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/1.367, allocations: 47.83 kB / 0.6363 GB, free: 37.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.129e-05/1.367, allocations: 47.19 kB / 0.6364 GB, free: 37.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.807e-05/1.367, allocations: 27.88 kB / 0.6364 GB, free: 37.59 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004418/1.371, allocations: 5.332 MB / 0.6416 GB, free: 31.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/1.372, allocations: 414.9 kB / 0.642 GB, free: 31.49 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000561/1.373, allocations: 55.8 kB / 0.6421 GB, free: 31.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001946/1.375, allocations: 86.14 kB / 0.6421 GB, free: 31.37 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002103/1.375, allocations: 155.8 kB / 0.6423 GB, free: 31.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/1.375, allocations: 67.94 kB / 0.6424 GB, free: 31.19 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00485/1.38, allocations: 2.363 MB / 0.6447 GB, free: 29.12 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.246e-06/1.38, allocations: 4 kB / 0.6447 GB, free: 29.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006349/1.386, allocations: 0.8827 MB / 0.6455 GB, free: 28.25 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * 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 (144): * Single equations (assignments): 141 * 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.0005008/1.387, allocations: 203.7 kB / 0.6457 GB, free: 28.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006139/1.393, allocations: 3.323 MB / 0.649 GB, free: 25.03 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.596e-05/1.393, allocations: 4.219 kB / 0.649 GB, free: 25.02 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001199/1.394, allocations: 0.6925 MB / 0.6496 GB, free: 24.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002741/1.397, allocations: 426.4 kB / 0.6501 GB, free: 24.02 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01567/1.413, allocations: 7.409 MB / 0.6573 GB, free: 17.13 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005243/1.418, allocations: 3.188 MB / 0.6604 GB, free: 14.71 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009634/1.419, allocations: 279.3 kB / 0.6607 GB, free: 14.44 MB / 442.7 MB Notification: Performance of SimCode: time 2.038e-06/1.419, allocations: 0 / 0.6607 GB, free: 14.44 MB / 442.7 MB Notification: Performance of Templates: time 0.3487/1.768, allocations: 49.04 MB / 0.7086 GB, free: 97.52 MB / 458.7 MB