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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 2.387/2.387, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.243e-05/3.252e-05, allocations: 8 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1268, allocations: 50.42 MB / 345 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.05242/0.1793, allocations: 31.83 MB / 376.8 MB, free: 9.016 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02766/0.207, allocations: 7.643 MB / 384.5 MB, free: 1.352 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0203/0.2274, allocations: 171.6 kB / 384.6 MB, free: 1.184 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007396/0.2348, allocations: 1.606 MB / 386.2 MB, free: 15.57 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03252/0.2674, allocations: 4.647 MB / 390.9 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003269/0.2707, allocations: 0.5967 MB / 391.5 MB, free: 10.31 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005269/0.2761, allocations: 1.782 MB / 393.3 MB, free: 8.527 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006226/0.2823, allocations: 2.968 MB / 396.2 MB, free: 5.523 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001786/0.2842, allocations: 0.8338 MB / 397.1 MB, free: 4.688 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002565/0.2868, allocations: 1.368 MB / 398.4 MB, free: 3.316 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002167/0.289, allocations: 0.6828 MB / 399.1 MB, free: 2.633 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007647/0.2898, allocations: 112 kB / 399.2 MB, free: 2.523 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002369/0.2921, allocations: 1.461 MB / 400.7 MB, free: 1.059 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001175/0.2934, allocations: 260 kB / 400.9 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3137/0.6071, allocations: 4.862 MB / 405.8 MB, free: 7.902 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.6072, allocations: 0 / 405.8 MB, free: 7.902 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.687e-06/0.6072, allocations: 0 / 405.8 MB, free: 7.902 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003877/0.6076, allocations: 0.9062 kB / 405.8 MB, free: 7.902 MB / 330.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.01381/0.6214, allocations: 3.746 MB / 409.5 MB, free: 6.203 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.6215, allocations: 8.688 kB / 409.6 MB, free: 6.203 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01575/0.6372, allocations: 2.264 MB / 411.8 MB, free: 5.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008366/0.6457, allocations: 2.397 MB / 414.2 MB, free: 5.41 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003548/0.6461, allocations: 233.2 kB / 414.4 MB, free: 5.402 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002114/0.6482, allocations: 294 kB / 414.7 MB, free: 5.398 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02901/0.6772, allocations: 9.707 MB / 424.4 MB, free: 3.203 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002215/0.6775, allocations: 44.53 kB / 424.5 MB, free: 3.199 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001372/0.6789, allocations: 145.9 kB / 424.6 MB, free: 3.195 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00499/0.6839, allocations: 1.926 MB / 426.5 MB, free: 2.781 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.025/0.709, allocations: 7.695 MB / 434.2 MB, free: 1.539 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06977/0.7788, allocations: 37.85 MB / 472.1 MB, free: 1.062 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01174/0.7906, allocations: 2.892 MB / 475 MB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01028/0.8009, allocations: 3.803 MB / 478.8 MB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.069e-05/0.801, allocations: 50.14 kB / 478.8 MB, free: 11.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 5.32e-06/0.801, allocations: 4 kB / 478.8 MB, free: 11.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.03919/0.8402, allocations: 9.306 MB / 488.1 MB, free: 2.418 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.8404, allocations: 148.3 kB / 488.3 MB, free: 2.246 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01019/0.8506, allocations: 3.704 MB / 492 MB, free: 14.56 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003298/0.851, allocations: 49.7 kB / 492 MB, free: 14.51 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003611/0.8546, allocations: 3.02 MB / 495.1 MB, free: 11.49 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00105/0.8557, allocations: 0.603 MB / 495.7 MB, free: 10.89 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007132/0.8565, allocations: 116 kB / 495.8 MB, free: 10.78 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005203/0.857, allocations: 0.5585 MB / 496.3 MB, free: 10.21 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005128/0.8621, allocations: 1.542 MB / 497.9 MB, free: 8.664 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008977/0.8712, allocations: 5.293 MB / 0.4914 GB, free: 1.543 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007997/0.8792, allocations: 2.796 MB / 0.4941 GB, free: 14.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001549/0.8794, allocations: 36 kB / 0.4941 GB, free: 14.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.02003/0.8995, allocations: 6.462 MB / 0.5004 GB, free: 9.176 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.8997, allocations: 64 kB / 0.5005 GB, free: 9.113 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002314/0.8999, allocations: 139.2 kB / 0.5006 GB, free: 8.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002606/0.9002, allocations: 196 kB / 0.5008 GB, free: 8.789 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008625/0.9088, allocations: 1.371 MB / 0.5022 GB, free: 7.539 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003071/0.9092, allocations: 264.2 kB / 0.5024 GB, free: 7.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006162/0.9154, allocations: 295.5 kB / 0.5027 GB, free: 7.051 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001337/0.9167, allocations: 356 kB / 0.503 GB, free: 6.703 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 (738): * Single equations (assignments): 735 * 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.005907/0.9227, allocations: 1.94 MB / 0.5049 GB, free: 4.875 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009588/0.9236, allocations: 336.1 kB / 0.5053 GB, free: 4.543 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004019/0.9277, allocations: 1.238 MB / 0.5065 GB, free: 3.293 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.776e-05/0.9278, allocations: 20 kB / 0.5065 GB, free: 3.273 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/0.9278, allocations: 3.984 kB / 0.5065 GB, free: 3.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-05/0.9278, allocations: 3.984 kB / 0.5065 GB, free: 3.266 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01817/0.946, allocations: 5.772 MB / 0.5121 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.781e-05/0.9461, allocations: 16 kB / 0.5121 GB, free: 13.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002037/0.9482, allocations: 275 kB / 0.5124 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-05/0.9483, allocations: 28 kB / 0.5124 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001918/0.9485, allocations: 50.41 kB / 0.5125 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-05/0.9485, allocations: 40.33 kB / 0.5125 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.944e-05/0.9486, allocations: 33.7 kB / 0.5126 GB, free: 12.93 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00797/0.9565, allocations: 5.28 MB / 0.5177 GB, free: 7.098 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00154/0.9581, allocations: 428.5 kB / 0.5181 GB, free: 6.656 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001239/0.9594, allocations: 51.98 kB / 0.5182 GB, free: 6.605 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002559/0.962, allocations: 55.97 kB / 0.5182 GB, free: 6.551 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004273/0.9625, allocations: 147.9 kB / 0.5184 GB, free: 6.422 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001675/0.9627, allocations: 64 kB / 0.5184 GB, free: 6.359 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008014/0.9707, allocations: 2.599 MB / 0.521 GB, free: 3.781 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.062e-06/0.9707, allocations: 4 kB / 0.521 GB, free: 3.777 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007988/0.9787, allocations: 0.8897 MB / 0.5218 GB, free: 2.891 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * 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 (142): * Single equations (assignments): 139 * 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.0009696/0.9798, allocations: 220.9 kB / 0.522 GB, free: 2.688 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0101/0.9899, allocations: 3.581 MB / 0.5255 GB, free: 15.51 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.496e-05/0.99, allocations: 4 kB / 0.5255 GB, free: 15.51 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001961/0.9919, allocations: 0.72 MB / 0.5262 GB, free: 14.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00385/0.9958, allocations: 425.5 kB / 0.5267 GB, free: 14.44 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02818/1.024, allocations: 10.53 MB / 0.5369 GB, free: 3.68 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008291/1.032, allocations: 3.188 MB / 0.54 GB, free: 464 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001293/1.034, allocations: 283.4 kB / 0.5403 GB, free: 180 kB / 442.7 MB Notification: Performance of SimCode: time 1.563e-06/1.034, allocations: 0 / 0.5403 GB, free: 180 kB / 442.7 MB Notification: Performance of Templates: time 0.4587/1.493, allocations: 50.28 MB / 0.5894 GB, free: 137.2 MB / 458.7 MB