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 1.835/1.835, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.753e-05/2.771e-05, allocations: 4 kB / 255.3 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08066/0.08071, allocations: 44.51 MB / 299.8 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3509/0.4317, allocations: 88.01 MB / 387.9 MB, free: 20.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.432, allocations: 85.03 kB / 387.9 MB, free: 20.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3672/0.7992, allocations: 83.59 MB / 471.5 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.669e-06/0.7993, allocations: 0 / 471.5 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004048/0.7998, allocations: 79.94 kB / 471.6 MB, free: 0.7773 MB / 346.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.02301/0.8228, allocations: 3.794 MB / 475.4 MB, free: 12.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.253e-05/0.8229, allocations: 15.97 kB / 475.4 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02407/0.847, allocations: 2.444 MB / 477.9 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01619/0.8633, allocations: 5.019 MB / 482.9 MB, free: 5.367 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004352/0.8637, allocations: 308.1 kB / 483.2 MB, free: 5.062 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001755/0.8655, allocations: 407.8 kB / 483.6 MB, free: 4.664 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02426/0.8898, allocations: 9.805 MB / 493.4 MB, free: 9.789 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002018/0.89, allocations: 63.41 kB / 493.4 MB, free: 9.727 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009374/0.891, allocations: 203.9 kB / 493.6 MB, free: 9.527 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00197/0.893, allocations: 0.9863 MB / 494.6 MB, free: 8.535 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01974/0.9127, allocations: 7.531 MB / 0.4904 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2859/1.199, allocations: 45.38 MB / 0.5347 GB, free: 45.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007576/1.206, allocations: 2.702 MB / 0.5373 GB, free: 44.71 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001684/1.208, allocations: 0.817 MB / 0.5381 GB, free: 44.68 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007051/1.215, allocations: 3.452 MB / 0.5415 GB, free: 43.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/1.215, allocations: 49.69 kB / 0.5416 GB, free: 43.35 MB / 394.7 MB Notification: Performance of pre-optimization done (n=127): time 5.268e-06/1.215, allocations: 2.656 kB / 0.5416 GB, free: 43.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=145): time 0.02621/1.241, allocations: 8.188 MB / 0.5496 GB, free: 40.61 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/1.241, allocations: 147.5 kB / 0.5497 GB, free: 40.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006595/1.248, allocations: 3.436 MB / 0.5531 GB, free: 40.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002213/1.248, allocations: 43.27 kB / 0.5531 GB, free: 40.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002024/1.25, allocations: 3.009 MB / 0.556 GB, free: 38.47 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006125/1.251, allocations: 0.5846 MB / 0.5566 GB, free: 38.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004534/1.252, allocations: 110.2 kB / 0.5567 GB, free: 38.16 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000356/1.252, allocations: 0.5542 MB / 0.5573 GB, free: 37.83 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002721/1.255, allocations: 1.468 MB / 0.5587 GB, free: 37.81 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004664/1.259, allocations: 5.176 MB / 0.5637 GB, free: 32.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005089/1.264, allocations: 2.763 MB / 0.5664 GB, free: 32.94 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001131/1.265, allocations: 40.44 kB / 0.5665 GB, free: 32.94 MB / 394.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.0136/1.278, allocations: 6.278 MB / 0.5726 GB, free: 32.51 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/1.278, allocations: 63.22 kB / 0.5727 GB, free: 32.51 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001429/1.279, allocations: 131.8 kB / 0.5728 GB, free: 32.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002444/1.279, allocations: 196.5 kB / 0.573 GB, free: 32.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005533/1.284, allocations: 1.386 MB / 0.5743 GB, free: 32.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000206/1.285, allocations: 261.9 kB / 0.5746 GB, free: 32.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005592/1.29, allocations: 366.4 kB / 0.5749 GB, free: 32.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008358/1.291, allocations: 359.3 kB / 0.5753 GB, free: 32.31 MB / 394.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.0008742/1.292, allocations: 0.5586 MB / 0.5758 GB, free: 32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006185/1.293, allocations: 331.3 kB / 0.5761 GB, free: 31.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00231/1.295, allocations: 1.17 MB / 0.5773 GB, free: 31.54 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.245e-05/1.295, allocations: 23.69 kB / 0.5773 GB, free: 31.54 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.85e-06/1.295, allocations: 0 / 0.5773 GB, free: 31.54 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-05/1.295, allocations: 11.45 kB / 0.5773 GB, free: 31.54 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/1.307, allocations: 5.632 MB / 0.5828 GB, free: 28.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.851e-05/1.307, allocations: 19.16 kB / 0.5828 GB, free: 28.92 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/1.308, allocations: 271.6 kB / 0.5831 GB, free: 28.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.383e-05/1.309, allocations: 31.42 kB / 0.5831 GB, free: 28.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001239/1.309, allocations: 42.03 kB / 0.5832 GB, free: 28.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.703e-05/1.309, allocations: 35.78 kB / 0.5832 GB, free: 28.87 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.961e-05/1.309, allocations: 28.19 kB / 0.5832 GB, free: 28.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004518/1.313, allocations: 5.108 MB / 0.5882 GB, free: 24.65 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001452/1.315, allocations: 0.5137 MB / 0.5887 GB, free: 24.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000708/1.316, allocations: 52.69 kB / 0.5888 GB, free: 24.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001947/1.317, allocations: 87.41 kB / 0.5888 GB, free: 24.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/1.318, allocations: 144.8 kB / 0.589 GB, free: 24.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000129/1.318, allocations: 65.19 kB / 0.589 GB, free: 24.21 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004696/1.323, allocations: 2.363 MB / 0.5914 GB, free: 23.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.055e-06/1.323, allocations: 3.844 kB / 0.5914 GB, free: 23.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00641/1.329, allocations: 0.856 MB / 0.5922 GB, free: 23.3 MB / 394.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.0005082/1.33, allocations: 213.1 kB / 0.5924 GB, free: 23.14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006358/1.336, allocations: 3.463 MB / 0.5958 GB, free: 21.96 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.878e-05/1.336, allocations: 4.5 kB / 0.5958 GB, free: 21.96 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001239/1.337, allocations: 0.7009 MB / 0.5965 GB, free: 21.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002785/1.34, allocations: 428.3 kB / 0.5969 GB, free: 21.55 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01551/1.356, allocations: 7.34 MB / 0.604 GB, free: 17.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004975/1.361, allocations: 3.167 MB / 0.6071 GB, free: 15.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008679/1.362, allocations: 270 kB / 0.6074 GB, free: 15.14 MB / 394.7 MB Notification: Performance of SimCode: time 1.98e-06/1.362, allocations: 0 / 0.6074 GB, free: 15.14 MB / 394.7 MB Notification: Performance of Templates: time 0.08721/1.449, allocations: 49.44 MB / 0.6557 GB, free: 8.055 MB / 426.7 MB