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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.718/1.718, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.888e-05/2.89e-05, allocations: 6.188 kB / 228.2 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08031/0.08036, allocations: 38.77 MB / 266.9 MB, free: 488 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.05808/0.1385, allocations: 30.43 MB / 297.3 MB, free: 1.953 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2655/0.4041, allocations: 7.26 MB / 304.6 MB, free: 3.645 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007495/0.4116, allocations: 160.6 kB / 304.8 MB, free: 3.645 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005898/0.4176, allocations: 1.567 MB / 306.3 MB, free: 3.641 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01805/0.4357, allocations: 4.419 MB / 310.7 MB, free: 3.242 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003329/0.439, allocations: 0.6138 MB / 311.4 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00535/0.4444, allocations: 1.763 MB / 313.1 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005672/0.4502, allocations: 2.969 MB / 316.1 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001988/0.4522, allocations: 0.8299 MB / 316.9 MB, free: 1.676 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002729/0.455, allocations: 1.359 MB / 318.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002221/0.4572, allocations: 0.6754 MB / 319 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007139/0.458, allocations: 115.7 kB / 319.1 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001653/0.4596, allocations: 1.44 MB / 320.5 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.4607, allocations: 250.7 kB / 320.8 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007408/0.4681, allocations: 4.844 MB / 325.6 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4682, allocations: 0 / 325.6 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.4682, allocations: 3.938 kB / 325.6 MB, free: 14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002086/0.4684, allocations: 0 / 325.6 MB, free: 14 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.01109/0.4795, allocations: 3.702 MB / 329.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.4796, allocations: 9.656 kB / 329.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01542/0.495, allocations: 2.269 MB / 331.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007791/0.5029, allocations: 2.684 MB / 334.3 MB, free: 7.523 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002642/0.5032, allocations: 219.2 kB / 334.5 MB, free: 7.402 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001315/0.5045, allocations: 289.2 kB / 334.8 MB, free: 7.219 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0257/0.5302, allocations: 9.582 MB / 344.3 MB, free: 15.41 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001678/0.5305, allocations: 46.22 kB / 344.4 MB, free: 15.37 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006962/0.5312, allocations: 141.6 kB / 344.5 MB, free: 15.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005355/0.5365, allocations: 1.9 MB / 346.4 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02593/0.5625, allocations: 7.577 MB / 354 MB, free: 6.02 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06783/0.6304, allocations: 37.57 MB / 391.6 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01149/0.6419, allocations: 2.757 MB / 394.3 MB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009658/0.6516, allocations: 3.46 MB / 397.8 MB, free: 8.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.774e-05/0.6518, allocations: 47.2 kB / 397.8 MB, free: 8.926 MB / 330.7 MB Notification: Performance of pre-optimization done (n=127): time 5.05e-06/0.6518, allocations: 0 / 397.8 MB, free: 8.926 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.03683/0.6886, allocations: 9.182 MB / 407 MB, free: 15.56 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.6888, allocations: 145.5 kB / 407.2 MB, free: 15.39 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008893/0.6977, allocations: 3.703 MB / 410.9 MB, free: 11.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002638/0.698, allocations: 45.64 kB / 410.9 MB, free: 11.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003445/0.7014, allocations: 3.077 MB / 414 MB, free: 8.582 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009087/0.7024, allocations: 0.5846 MB / 414.6 MB, free: 8.004 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004154/0.7028, allocations: 116 kB / 414.7 MB, free: 7.891 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004992/0.7033, allocations: 0.5537 MB / 415.2 MB, free: 7.328 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004438/0.7078, allocations: 1.526 MB / 416.8 MB, free: 5.797 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008191/0.716, allocations: 5.261 MB / 422 MB, free: 14.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007514/0.7236, allocations: 2.779 MB / 424.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001294/0.7237, allocations: 40 kB / 424.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=752) (initialization): time 0.01975/0.7435, allocations: 6.517 MB / 431.4 MB, free: 5.312 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.7437, allocations: 72.19 kB / 431.4 MB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002218/0.7439, allocations: 132 kB / 431.6 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002636/0.7442, allocations: 196 kB / 431.8 MB, free: 4.922 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00832/0.7525, allocations: 1.349 MB / 433.1 MB, free: 3.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003344/0.7529, allocations: 263 kB / 433.4 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005627/0.7585, allocations: 291.5 kB / 433.6 MB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001074/0.7597, allocations: 366.9 kB / 434 MB, free: 2.672 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.00524/0.7649, allocations: 1.914 MB / 435.9 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008745/0.7658, allocations: 335.6 kB / 436.2 MB, free: 420 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2291/0.9949, allocations: 1.215 MB / 437.5 MB, free: 121 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.372e-05/0.995, allocations: 16.5 kB / 437.5 MB, free: 121 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.995, allocations: 1.375 kB / 437.5 MB, free: 121 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.336e-05/0.9951, allocations: 8.5 kB / 437.5 MB, free: 121 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01563/1.011, allocations: 5.623 MB / 443.1 MB, free: 119.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.758e-05/1.011, allocations: 19.06 kB / 443.1 MB, free: 119.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001909/1.013, allocations: 264.8 kB / 443.4 MB, free: 119.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.24e-05/1.013, allocations: 26.62 kB / 443.4 MB, free: 119.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/1.013, allocations: 45.45 kB / 443.5 MB, free: 119.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.151e-05/1.013, allocations: 38.77 kB / 443.5 MB, free: 119.4 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.698e-05/1.013, allocations: 27.22 kB / 443.5 MB, free: 119.4 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006434/1.019, allocations: 5.056 MB / 448.6 MB, free: 115.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/1.021, allocations: 0.5225 MB / 449.1 MB, free: 115.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006538/1.022, allocations: 47.41 kB / 449.1 MB, free: 115.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001884/1.024, allocations: 61.5 kB / 449.2 MB, free: 115.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002155/1.024, allocations: 142.5 kB / 449.3 MB, free: 115.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/1.024, allocations: 65.75 kB / 449.4 MB, free: 115.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006146/1.03, allocations: 2.599 MB / 452 MB, free: 114.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.122e-06/1.03, allocations: 2.5 kB / 452 MB, free: 114.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006029/1.036, allocations: 0.8649 MB / 452.9 MB, free: 114.3 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.0006052/1.037, allocations: 207.6 kB / 453.1 MB, free: 114.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007998/1.045, allocations: 3.553 MB / 456.6 MB, free: 113.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-05/1.045, allocations: 2.625 kB / 456.6 MB, free: 113.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/1.047, allocations: 0.7024 MB / 457.3 MB, free: 112.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003007/1.05, allocations: 410.3 kB / 457.7 MB, free: 112.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01915/1.069, allocations: 9.965 MB / 467.7 MB, free: 107.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004658/1.074, allocations: 3.165 MB / 470.9 MB, free: 105.8 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.006941/1.081, allocations: 1.757 MB / 472.6 MB, free: 104.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007064/1.081, allocations: 235.4 kB / 472.9 MB, free: 104.6 MB / 362.7 MB Notification: Performance of SimCode: time 2.285e-06/1.081, allocations: 0 / 472.9 MB, free: 104.6 MB / 362.7 MB Notification: Performance of Templates: time 0.07749/1.159, allocations: 25.84 MB / 498.7 MB, free: 78.86 MB / 362.7 MB