Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 2.376/2.376, allocations: 269 MB / 284.1 MB, free: 3.555 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.912e-05/2.924e-05, allocations: 8 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1323, allocations: 61.88 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.4286/0.561, allocations: 60.28 MB / 471.2 MB, free: 8.289 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04225/0.6033, allocations: 13.34 MB / 484.5 MB, free: 13.91 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01728/0.6207, allocations: 331.1 kB / 484.9 MB, free: 13.58 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01261/0.6333, allocations: 3.083 MB / 487.9 MB, free: 10.48 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03691/0.6703, allocations: 8.559 MB / 496.5 MB, free: 1.902 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007264/0.6776, allocations: 1.229 MB / 497.7 MB, free: 0.6719 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.1226/0.8003, allocations: 48.17 MB / 0.5331 GB, free: 472 kB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01166/0.812, allocations: 5.73 MB / 0.5387 GB, free: 10.7 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003635/0.8157, allocations: 1.481 MB / 0.5402 GB, free: 9.211 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005343/0.8211, allocations: 2.479 MB / 0.5426 GB, free: 6.727 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004193/0.8253, allocations: 1.124 MB / 0.5437 GB, free: 5.602 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001879/0.8272, allocations: 220 kB / 0.5439 GB, free: 5.387 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004592/0.8319, allocations: 2.677 MB / 0.5465 GB, free: 2.703 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002302/0.8342, allocations: 452 kB / 0.5469 GB, free: 2.262 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01416/0.8484, allocations: 8.842 MB / 0.5556 GB, free: 9.398 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.8485, allocations: 3.938 kB / 0.5556 GB, free: 9.395 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.8485, allocations: 0 / 0.5556 GB, free: 9.395 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004102/0.8489, allocations: 0 / 0.5556 GB, free: 9.395 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02365/0.8726, allocations: 6.758 MB / 0.5622 GB, free: 2.559 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.939e-05/0.8726, allocations: 8.031 kB / 0.5622 GB, free: 2.551 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3858/1.258, allocations: 19.39 MB / 0.5811 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02032/1.279, allocations: 5.561 MB / 0.5865 GB, free: 9.48 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005062/1.279, allocations: 373.4 kB / 0.5869 GB, free: 9.113 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002617/1.282, allocations: 0.5112 MB / 0.5874 GB, free: 8.602 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04939/1.331, allocations: 16.33 MB / 0.6033 GB, free: 7.195 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003444/1.332, allocations: 75.36 kB / 0.6034 GB, free: 7.121 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002068/1.334, allocations: 239.8 kB / 0.6036 GB, free: 6.887 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008629/1.343, allocations: 2.923 MB / 0.6065 GB, free: 3.961 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3989/1.742, allocations: 13.66 MB / 0.6198 GB, free: 163.8 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1098/1.851, allocations: 64.37 MB / 0.6827 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03821/1.89, allocations: 7.825 MB / 0.6903 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04339/1.933, allocations: 18.81 MB / 0.7087 GB, free: 87.66 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.629e-05/1.933, allocations: 64.45 kB / 0.7088 GB, free: 87.59 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 6.542e-06/1.933, allocations: 2.531 kB / 0.7088 GB, free: 87.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=362): time 0.2787/2.212, allocations: 47.33 MB / 0.755 GB, free: 40.07 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/2.212, allocations: 273.8 kB / 0.7553 GB, free: 39.75 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01216/2.224, allocations: 5.824 MB / 0.7609 GB, free: 33.93 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009447/2.225, allocations: 81.7 kB / 0.761 GB, free: 33.84 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003787/2.229, allocations: 4.543 MB / 0.7655 GB, free: 29.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002097/2.231, allocations: 1.33 MB / 0.7668 GB, free: 27.98 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001177/2.232, allocations: 188.9 kB / 0.7669 GB, free: 27.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000667/2.233, allocations: 0.6993 MB / 0.7676 GB, free: 27.09 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009668/2.243, allocations: 3.848 MB / 0.7714 GB, free: 23.23 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01288/2.256, allocations: 9.047 MB / 0.7802 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01289/2.269, allocations: 5.703 MB / 0.7858 GB, free: 5.887 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001434/2.269, allocations: 52 kB / 0.7858 GB, free: 5.836 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.05633/2.325, allocations: 16.05 MB / 0.8015 GB, free: 5.742 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001585/2.326, allocations: 80 kB / 0.8016 GB, free: 5.664 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003116/2.326, allocations: 188 kB / 0.8018 GB, free: 5.48 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02479/2.351, allocations: 4.089 MB / 0.8058 GB, free: 1.383 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3823/2.733, allocations: 2.042 MB / 0.8077 GB, free: 163.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06599/2.799, allocations: 22.71 MB / 0.8299 GB, free: 154.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0107/2.81, allocations: 0.5046 MB / 0.8304 GB, free: 154.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002208/2.812, allocations: 0.5267 MB / 0.8309 GB, free: 154.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (1080): * Single equations (assignments): 1075 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008361/2.82, allocations: 3.062 MB / 0.8339 GB, free: 153.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00155/2.822, allocations: 0.568 MB / 0.8345 GB, free: 153.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03708/2.859, allocations: 9.78 MB / 0.844 GB, free: 150 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-05/2.859, allocations: 43.47 kB / 0.8441 GB, free: 150 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-05/2.859, allocations: 19.19 kB / 0.8441 GB, free: 150 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.819e-05/2.859, allocations: 14.11 kB / 0.8441 GB, free: 150 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06173/2.921, allocations: 19.47 MB / 0.8631 GB, free: 140.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.965e-05/2.921, allocations: 0 / 0.8631 GB, free: 140.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005208/2.926, allocations: 0.5257 MB / 0.8636 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02212/2.949, allocations: 3.682 MB / 0.8672 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008435/2.949, allocations: 67.48 kB / 0.8673 GB, free: 136.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04734/2.997, allocations: 20.62 MB / 0.8874 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/2.997, allocations: 3.984 kB / 0.8874 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04425/3.041, allocations: 14.46 MB / 0.9015 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001771/3.043, allocations: 0.603 MB / 0.9021 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00231/3.045, allocations: 63.98 kB / 0.9022 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005849/3.051, allocations: 210.8 kB / 0.9024 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001219/3.052, allocations: 220.8 kB / 0.9026 GB, free: 100.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004474/3.053, allocations: 97.17 kB / 0.9027 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008846/3.062, allocations: 4.135 MB / 0.9067 GB, free: 96.11 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.51e-07/3.062, allocations: 0 / 0.9067 GB, free: 96.11 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01057/3.072, allocations: 1.864 MB / 0.9086 GB, free: 94.26 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (262): * Single equations (assignments): 257 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00137/3.074, allocations: 249.2 kB / 0.9088 GB, free: 94.03 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0221/3.096, allocations: 9.811 MB / 0.9184 GB, free: 84.24 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/3.096, allocations: 3.969 kB / 0.9184 GB, free: 84.24 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008941/3.105, allocations: 3.874 MB / 0.9222 GB, free: 80.34 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005641/3.111, allocations: 0.7077 MB / 0.9229 GB, free: 79.65 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04007/3.151, allocations: 19.18 MB / 0.9416 GB, free: 60.57 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009302/3.16, allocations: 4.994 MB / 0.9465 GB, free: 55.54 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002663/3.163, allocations: 447.4 kB / 0.9469 GB, free: 55.1 MB / 0.5261 GB Notification: Performance of SimCode: time 1.052e-06/3.163, allocations: 0 / 0.9469 GB, free: 55.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.6373/3.8, allocations: 145.9 MB / 1.089 GB, free: 106.3 MB / 0.5417 GB