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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 2.17/2.17, allocations: 194.9 MB / 211.2 MB, free: 7.859 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.003e-05/2.991e-05, allocations: 4 kB / 258.8 MB, free: 8.215 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3047, allocations: 44.5 MB / 303.3 MB, free: 12.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.04906/0.3538, allocations: 30.42 MB / 333.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02221/0.3761, allocations: 7.297 MB / 341 MB, free: 7.816 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007307/0.3834, allocations: 163.6 kB / 341.2 MB, free: 7.656 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005937/0.3894, allocations: 1.571 MB / 342.7 MB, free: 6.078 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01718/0.4067, allocations: 4.41 MB / 347.2 MB, free: 1.656 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003333/0.4101, allocations: 0.6084 MB / 347.8 MB, free: 1.047 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00526/0.4154, allocations: 1.759 MB / 349.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006777/0.4222, allocations: 2.964 MB / 352.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002261/0.4245, allocations: 0.826 MB / 353.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003043/0.4276, allocations: 1.356 MB / 354.7 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002501/0.4302, allocations: 0.6749 MB / 355.3 MB, free: 9.418 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001022/0.4312, allocations: 119.9 kB / 355.5 MB, free: 9.301 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00261/0.4339, allocations: 1.442 MB / 356.9 MB, free: 7.855 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001698/0.4356, allocations: 252 kB / 357.1 MB, free: 7.609 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008393/0.4441, allocations: 4.834 MB / 362 MB, free: 2.766 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.4441, allocations: 3.938 kB / 362 MB, free: 2.762 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.4442, allocations: 4 kB / 362 MB, free: 2.758 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000212/0.4444, allocations: 0 / 362 MB, free: 2.758 MB / 298.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.01107/0.4555, allocations: 3.718 MB / 365.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.4555, allocations: 12.03 kB / 365.7 MB, free: 14.97 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01512/0.4707, allocations: 2.256 MB / 368 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007859/0.4786, allocations: 2.672 MB / 370.6 MB, free: 9.969 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003695/0.479, allocations: 221.5 kB / 370.9 MB, free: 9.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001498/0.4805, allocations: 295.7 kB / 371.1 MB, free: 9.461 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02692/0.5075, allocations: 9.566 MB / 380.7 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002103/0.5077, allocations: 55.52 kB / 380.8 MB, free: 15.08 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001117/0.5089, allocations: 143.8 kB / 380.9 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005381/0.5143, allocations: 1.899 MB / 382.8 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02578/0.5401, allocations: 7.578 MB / 390.4 MB, free: 5.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3649/0.9051, allocations: 37.57 MB / 428 MB, free: 98.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0177/0.9229, allocations: 2.742 MB / 430.7 MB, free: 98.28 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01123/0.9342, allocations: 3.459 MB / 434.2 MB, free: 97.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.786e-05/0.9343, allocations: 43.06 kB / 434.2 MB, free: 97.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=127): time 6.802e-06/0.9343, allocations: 4.766 kB / 434.2 MB, free: 97.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=145): time 0.05179/0.9861, allocations: 9.178 MB / 443.4 MB, free: 92.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.561e-05/0.9863, allocations: 142.9 kB / 443.5 MB, free: 92.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01148/0.9978, allocations: 3.711 MB / 447.2 MB, free: 91.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003041/0.9981, allocations: 46.31 kB / 447.3 MB, free: 91.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003458/1.002, allocations: 3.009 MB / 450.3 MB, free: 89.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001112/1.003, allocations: 0.5812 MB / 450.9 MB, free: 88.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007047/1.004, allocations: 120.2 kB / 451 MB, free: 88.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000582/1.004, allocations: 0.5507 MB / 451.5 MB, free: 88.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006122/1.01, allocations: 1.53 MB / 453.1 MB, free: 87.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009516/1.02, allocations: 5.258 MB / 458.3 MB, free: 81.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009066/1.029, allocations: 2.786 MB / 461.1 MB, free: 78.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001491/1.029, allocations: 40 kB / 461.1 MB, free: 78.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=752) (initialization): time 0.02314/1.052, allocations: 6.412 MB / 467.6 MB, free: 72.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001352/1.053, allocations: 60 kB / 467.6 MB, free: 72.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002382/1.053, allocations: 132 kB / 467.7 MB, free: 72.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002984/1.053, allocations: 196.8 kB / 467.9 MB, free: 71.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01183/1.065, allocations: 1.357 MB / 469.3 MB, free: 70.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003047/1.065, allocations: 263 kB / 469.6 MB, free: 70.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007335/1.073, allocations: 291 kB / 469.8 MB, free: 69.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000856/1.074, allocations: 361.9 kB / 470.2 MB, free: 69.57 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.004002/1.078, allocations: 1.926 MB / 472.1 MB, free: 67.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007136/1.078, allocations: 331.7 kB / 472.4 MB, free: 67.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002972/1.081, allocations: 1.218 MB / 473.7 MB, free: 66.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.322e-05/1.081, allocations: 16 kB / 473.7 MB, free: 66.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/1.081, allocations: 7.938 kB / 473.7 MB, free: 66.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/1.082, allocations: 15.92 kB / 473.7 MB, free: 66.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01302/1.095, allocations: 5.606 MB / 479.3 MB, free: 60.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.682e-05/1.095, allocations: 16 kB / 479.3 MB, free: 60.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001795/1.096, allocations: 268.4 kB / 479.6 MB, free: 59.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.934e-05/1.096, allocations: 24 kB / 479.6 MB, free: 59.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/1.097, allocations: 48 kB / 479.7 MB, free: 59.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.647e-05/1.097, allocations: 35.86 kB / 479.7 MB, free: 59.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.969e-05/1.097, allocations: 31.83 kB / 479.7 MB, free: 59.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007408/1.104, allocations: 5.064 MB / 484.8 MB, free: 54.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001968/1.106, allocations: 0.52 MB / 485.3 MB, free: 53.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001031/1.107, allocations: 54.2 kB / 485.4 MB, free: 53.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00299/1.11, allocations: 55.97 kB / 485.4 MB, free: 53.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003352/1.111, allocations: 143.5 kB / 485.5 MB, free: 53.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001735/1.111, allocations: 63.94 kB / 485.6 MB, free: 53.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00806/1.119, allocations: 2.602 MB / 488.2 MB, free: 50.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.113e-06/1.119, allocations: 0 / 488.2 MB, free: 50.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008973/1.128, allocations: 0.8691 MB / 489.1 MB, free: 49.83 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.0008286/1.129, allocations: 206.7 kB / 489.3 MB, free: 49.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01072/1.14, allocations: 3.545 MB / 492.8 MB, free: 46.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.253e-05/1.14, allocations: 4 kB / 492.8 MB, free: 46.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002032/1.142, allocations: 0.6948 MB / 493.5 MB, free: 45.42 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004209/1.146, allocations: 424.2 kB / 493.9 MB, free: 45.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02679/1.173, allocations: 10.39 MB / 0.4925 GB, free: 34.35 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007313/1.18, allocations: 3.168 MB / 0.4956 GB, free: 31.15 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001104/1.181, allocations: 275.4 kB / 0.4959 GB, free: 30.88 MB / 362.7 MB Notification: Performance of SimCode: time 1.342e-06/1.181, allocations: 4 kB / 0.4959 GB, free: 30.88 MB / 362.7 MB Notification: Performance of Templates: time 0.1206/1.302, allocations: 49.88 MB / 0.5446 GB, free: 12.94 MB / 394.7 MB