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.839/1.839, allocations: 171.1 MB / 186.3 MB, free: 1.336 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.98e-05/2.965e-05, allocations: 4 kB / 228.1 MB, free: 7.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08436/0.08441, allocations: 38.76 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.04823/0.1327, allocations: 30.42 MB / 297.3 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2517/0.3844, allocations: 7.257 MB / 304.6 MB, free: 3.027 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008164/0.3927, allocations: 163.1 kB / 304.7 MB, free: 3.027 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006864/0.3996, allocations: 1.563 MB / 306.3 MB, free: 3.027 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01933/0.419, allocations: 4.424 MB / 310.7 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00377/0.4228, allocations: 0.6129 MB / 311.3 MB, free: 2.52 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005755/0.4286, allocations: 1.764 MB / 313.1 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006792/0.4355, allocations: 2.957 MB / 316.1 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002839/0.4384, allocations: 0.8295 MB / 316.9 MB, free: 1.16 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003683/0.4421, allocations: 1.36 MB / 318.2 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003242/0.4454, allocations: 0.6794 MB / 318.9 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001527/0.447, allocations: 113.1 kB / 319 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002879/0.4499, allocations: 1.451 MB / 320.5 MB, free: 236 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001741/0.4517, allocations: 253.6 kB / 320.7 MB, free: 232 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00893/0.4607, allocations: 4.841 MB / 325.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.4608, allocations: 0 / 325.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.777e-06/0.4608, allocations: 0 / 325.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002923/0.4611, allocations: 0 / 325.6 MB, free: 13.64 MB / 266.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.01283/0.4739, allocations: 3.712 MB / 329.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.474, allocations: 8.688 kB / 329.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01613/0.4902, allocations: 2.258 MB / 331.5 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008707/0.4989, allocations: 2.683 MB / 334.2 MB, free: 7.457 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003325/0.4993, allocations: 229 kB / 334.5 MB, free: 7.328 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001841/0.5012, allocations: 287.6 kB / 334.7 MB, free: 7.145 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0288/0.53, allocations: 9.566 MB / 344.3 MB, free: 15.31 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002231/0.5303, allocations: 43.59 kB / 344.3 MB, free: 15.27 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00144/0.5317, allocations: 144.3 kB / 344.5 MB, free: 15.22 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005758/0.5375, allocations: 1.901 MB / 346.4 MB, free: 13.63 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02694/0.5645, allocations: 7.584 MB / 354 MB, free: 6.359 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07127/0.6359, allocations: 37.57 MB / 391.5 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01148/0.6474, allocations: 2.754 MB / 394.3 MB, free: 12.92 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01022/0.6577, allocations: 3.459 MB / 397.8 MB, free: 9.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.593e-05/0.6578, allocations: 51.2 kB / 397.8 MB, free: 9.281 MB / 330.7 MB Notification: Performance of pre-optimization done (n=127): time 7.674e-06/0.6579, allocations: 4 kB / 397.8 MB, free: 9.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.04025/0.6981, allocations: 9.179 MB / 407 MB, free: 15.92 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/0.6983, allocations: 141.5 kB / 407.1 MB, free: 15.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009855/0.7082, allocations: 3.715 MB / 410.8 MB, free: 12.05 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003023/0.7085, allocations: 45.7 kB / 410.9 MB, free: 12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003505/0.712, allocations: 3.005 MB / 413.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009904/0.7131, allocations: 0.5887 MB / 414.5 MB, free: 8.422 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000646/0.7138, allocations: 119.9 kB / 414.6 MB, free: 8.305 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005189/0.7143, allocations: 0.5467 MB / 415.1 MB, free: 7.746 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004954/0.7193, allocations: 1.538 MB / 416.7 MB, free: 6.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008892/0.7282, allocations: 5.245 MB / 421.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007812/0.7361, allocations: 2.783 MB / 424.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001402/0.7363, allocations: 36 kB / 424.7 MB, free: 12.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=752) (initialization): time 0.02005/0.7564, allocations: 6.416 MB / 431.2 MB, free: 5.836 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001321/0.7566, allocations: 64 kB / 431.2 MB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002427/0.7568, allocations: 132.9 kB / 431.3 MB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002927/0.7571, allocations: 196 kB / 431.5 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008434/0.7656, allocations: 1.353 MB / 432.9 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003484/0.766, allocations: 263 kB / 433.2 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00596/0.772, allocations: 287.5 kB / 433.4 MB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001335/0.7734, allocations: 359 kB / 433.8 MB, free: 3.211 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 609 * 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 (728): * Single equations (assignments): 725 * 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.005686/0.7791, allocations: 1.926 MB / 435.7 MB, free: 1.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009427/0.78, allocations: 335.6 kB / 436 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2423/1.022, allocations: 1.209 MB / 437.2 MB, free: 120.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.491e-05/1.022, allocations: 17.19 kB / 437.3 MB, free: 120.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/1.023, allocations: 5.359 kB / 437.3 MB, free: 120.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.958e-05/1.023, allocations: 11.69 kB / 437.3 MB, free: 120.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01721/1.04, allocations: 5.612 MB / 442.9 MB, free: 119.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.649e-05/1.04, allocations: 17.22 kB / 442.9 MB, free: 119.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00195/1.042, allocations: 264.5 kB / 443.2 MB, free: 119.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.441e-05/1.042, allocations: 26.22 kB / 443.2 MB, free: 119.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001665/1.042, allocations: 50.62 kB / 443.2 MB, free: 119.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.227e-05/1.042, allocations: 35.11 kB / 443.3 MB, free: 119.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.589e-05/1.042, allocations: 27.25 kB / 443.3 MB, free: 119.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007003/1.049, allocations: 5.06 MB / 448.4 MB, free: 115.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00201/1.051, allocations: 0.5174 MB / 448.9 MB, free: 115.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001162/1.052, allocations: 54.81 kB / 448.9 MB, free: 115.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002373/1.055, allocations: 59.33 kB / 449 MB, free: 115.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003272/1.055, allocations: 138.8 kB / 449.1 MB, free: 115.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001583/1.055, allocations: 67.81 kB / 449.2 MB, free: 115.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007237/1.063, allocations: 2.598 MB / 451.8 MB, free: 114.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.042e-06/1.063, allocations: 0 / 451.8 MB, free: 114.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006837/1.07, allocations: 0.869 MB / 452.7 MB, free: 114.6 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 77 * 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 (136): * Single equations (assignments): 133 * 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.0008099/1.07, allocations: 219.2 kB / 452.9 MB, free: 114.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00883/1.079, allocations: 3.542 MB / 456.4 MB, free: 113.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.442e-05/1.079, allocations: 3.969 kB / 456.4 MB, free: 113.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001706/1.081, allocations: 0.7055 MB / 457.1 MB, free: 113.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003787/1.085, allocations: 413.4 kB / 457.5 MB, free: 112.9 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02308/1.108, allocations: 10.39 MB / 467.9 MB, free: 107 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006703/1.115, allocations: 3.167 MB / 471.1 MB, free: 105.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/1.116, allocations: 285.5 kB / 471.4 MB, free: 105.7 MB / 362.7 MB Notification: Performance of SimCode: time 1.623e-06/1.116, allocations: 0 / 471.4 MB, free: 105.7 MB / 362.7 MB Notification: Performance of Templates: time 0.1001/1.216, allocations: 49.9 MB / 0.509 GB, free: 56.55 MB / 362.7 MB