Running command: translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadModel(ModelicaTest): time 2.035/2.035, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.143e-05/3.138e-05, allocations: 4 kB / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3654, allocations: 48.7 MB / 324.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.05439/0.4198, allocations: 33.64 MB / 358.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02653/0.4464, allocations: 7.922 MB / 366.4 MB, free: 5.926 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009518/0.456, allocations: 179.6 kB / 366.6 MB, free: 5.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007217/0.4633, allocations: 1.746 MB / 368.3 MB, free: 3.996 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.021/0.4843, allocations: 4.85 MB / 373.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00386/0.4882, allocations: 0.6435 MB / 373.8 MB, free: 14.49 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005795/0.4941, allocations: 1.853 MB / 375.7 MB, free: 12.63 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00818/0.5023, allocations: 3.691 MB / 379.4 MB, free: 8.918 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002354/0.5047, allocations: 0.83 MB / 380.2 MB, free: 8.086 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00333/0.5081, allocations: 1.395 MB / 381.6 MB, free: 6.688 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002797/0.5109, allocations: 0.6788 MB / 382.3 MB, free: 6.008 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001344/0.5124, allocations: 116 kB / 382.4 MB, free: 5.895 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002806/0.5152, allocations: 1.504 MB / 383.9 MB, free: 4.383 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001586/0.5168, allocations: 264 kB / 384.1 MB, free: 4.125 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008868/0.5258, allocations: 5.181 MB / 389.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.5258, allocations: 0 / 389.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.527e-06/0.5258, allocations: 0 / 389.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002629/0.5261, allocations: 0 / 389.3 MB, free: 14.93 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: 1500 * Number of variables: 1500 Notification: Performance of Generate backend data structure: time 0.01197/0.5381, allocations: 3.838 MB / 393.2 MB, free: 11.03 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.5382, allocations: 11.97 kB / 393.2 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01546/0.5536, allocations: 2.28 MB / 395.5 MB, free: 8.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008268/0.562, allocations: 2.754 MB / 398.2 MB, free: 5.914 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003757/0.5624, allocations: 242.1 kB / 398.4 MB, free: 5.676 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001676/0.5641, allocations: 323.7 kB / 398.8 MB, free: 5.359 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0296/0.5937, allocations: 10.03 MB / 408.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001977/0.594, allocations: 51.53 kB / 408.8 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001115/0.5951, allocations: 151.9 kB / 409 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005367/0.6005, allocations: 1.876 MB / 410.9 MB, free: 8.492 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02802/0.6286, allocations: 8.016 MB / 418.9 MB, free: 472 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07168/0.7003, allocations: 38.92 MB / 457.8 MB, free: 8.359 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0137/0.7141, allocations: 3.086 MB / 460.9 MB, free: 5.113 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0137/0.7279, allocations: 5.2 MB / 466.1 MB, free: 15.65 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.431e-05/0.728, allocations: 51.16 kB / 466.1 MB, free: 15.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 6.372e-06/0.728, allocations: 0 / 466.1 MB, free: 15.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=146): time 0.03968/0.7677, allocations: 9.269 MB / 475.4 MB, free: 6.148 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.7679, allocations: 145.5 kB / 475.5 MB, free: 5.973 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009912/0.7778, allocations: 3.825 MB / 479.4 MB, free: 2.125 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000316/0.7782, allocations: 45.7 kB / 479.4 MB, free: 2.074 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2842/1.062, allocations: 3.074 MB / 482.5 MB, free: 128.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001041/1.064, allocations: 0.5931 MB / 483.1 MB, free: 128.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005545/1.064, allocations: 117.1 kB / 483.2 MB, free: 128.6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004649/1.065, allocations: 0.5587 MB / 483.8 MB, free: 128.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005196/1.07, allocations: 1.582 MB / 485.3 MB, free: 127.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007871/1.078, allocations: 5.387 MB / 490.7 MB, free: 122.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007719/1.086, allocations: 2.861 MB / 493.6 MB, free: 121.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001917/1.086, allocations: 39.09 kB / 493.6 MB, free: 121.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=774) (initialization): time 0.0202/1.106, allocations: 6.58 MB / 0.4885 GB, free: 118.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001615/1.106, allocations: 64.3 kB / 0.4885 GB, free: 118.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003078/1.107, allocations: 136.1 kB / 0.4887 GB, free: 118.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003623/1.107, allocations: 203 kB / 0.4889 GB, free: 118.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008788/1.116, allocations: 1.398 MB / 0.4902 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003993/1.116, allocations: 262.8 kB / 0.4905 GB, free: 118.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005877/1.122, allocations: 293.6 kB / 0.4908 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00115/1.123, allocations: 367.6 kB / 0.4911 GB, free: 118.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 622 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (750): * Single equations (assignments): 747 * 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.005217/1.128, allocations: 1.983 MB / 0.493 GB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008124/1.129, allocations: 344.3 kB / 0.4934 GB, free: 117 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003133/1.132, allocations: 1.25 MB / 0.4946 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.836e-05/1.133, allocations: 23.5 kB / 0.4946 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/1.133, allocations: 0 / 0.4946 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.732e-05/1.133, allocations: 3.844 kB / 0.4946 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01384/1.146, allocations: 5.537 MB / 0.5 GB, free: 114 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.776e-05/1.147, allocations: 11.59 kB / 0.5 GB, free: 114 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00177/1.148, allocations: 265.9 kB / 0.5003 GB, free: 114 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.1e-05/1.148, allocations: 23.5 kB / 0.5003 GB, free: 114 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/1.149, allocations: 48.83 kB / 0.5004 GB, free: 113.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.809e-05/1.149, allocations: 35.03 kB / 0.5004 GB, free: 113.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.736e-05/1.149, allocations: 24.45 kB / 0.5004 GB, free: 113.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005704/1.154, allocations: 4.821 MB / 0.5051 GB, free: 109.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001653/1.156, allocations: 0.5339 MB / 0.5056 GB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006712/1.157, allocations: 43.58 kB / 0.5057 GB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001872/1.159, allocations: 61.86 kB / 0.5057 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001977/1.159, allocations: 130.6 kB / 0.5059 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/1.159, allocations: 62.08 kB / 0.5059 GB, free: 109.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005609/1.165, allocations: 2.678 MB / 0.5085 GB, free: 107.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.283e-06/1.165, allocations: 0 / 0.5085 GB, free: 107.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006324/1.171, allocations: 0.8943 MB / 0.5094 GB, free: 106.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * 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.0006459/1.172, allocations: 201.9 kB / 0.5096 GB, free: 106.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00858/1.18, allocations: 3.634 MB / 0.5132 GB, free: 103.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.828e-05/1.18, allocations: 0 / 0.5132 GB, free: 103.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001517/1.182, allocations: 0.7003 MB / 0.5138 GB, free: 102.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002981/1.185, allocations: 432.9 kB / 0.5143 GB, free: 102.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02192/1.207, allocations: 10.54 MB / 0.5246 GB, free: 91.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005546/1.212, allocations: 3.22 MB / 0.5277 GB, free: 88.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/1.214, allocations: 287.4 kB / 0.528 GB, free: 88.03 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/1.214, allocations: 0 / 0.528 GB, free: 88.03 MB / 410.7 MB Notification: Performance of Templates: time 0.1551/1.369, allocations: 51.44 MB / 0.5782 GB, free: 36.57 MB / 410.7 MB