Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 1.706/1.706, allocations: 171.2 MB / 186.3 MB, free: 1.41 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.284e-05/3.281e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0846/0.08466, allocations: 38.77 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.3359/0.4206, allocations: 59.35 MB / 326.2 MB, free: 320 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03988/0.4605, allocations: 13.11 MB / 339.4 MB, free: 6.973 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01625/0.4769, allocations: 327 kB / 339.7 MB, free: 6.922 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01201/0.4889, allocations: 3.138 MB / 342.8 MB, free: 4.594 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03415/0.5231, allocations: 8.518 MB / 351.3 MB, free: 12.14 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006106/0.5293, allocations: 0.983 MB / 352.3 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.08252/0.6119, allocations: 25.04 MB / 377.4 MB, free: 2.098 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0124/0.6243, allocations: 5.921 MB / 383.3 MB, free: 12.14 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003468/0.6279, allocations: 1.348 MB / 384.6 MB, free: 10.79 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004653/0.6326, allocations: 2.069 MB / 386.7 MB, free: 8.711 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003761/0.6364, allocations: 1.073 MB / 387.8 MB, free: 7.637 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001591/0.638, allocations: 196 kB / 388 MB, free: 7.445 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003904/0.6419, allocations: 2.338 MB / 390.3 MB, free: 5.102 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002064/0.6441, allocations: 416 kB / 390.7 MB, free: 4.695 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01357/0.6577, allocations: 8.152 MB / 398.9 MB, free: 12.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.6577, allocations: 0 / 398.9 MB, free: 12.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.936e-06/0.6577, allocations: 0 / 398.9 MB, free: 12.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003656/0.6581, allocations: 0 / 398.9 MB, free: 12.52 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: 2049 * Number of variables: 2049 Notification: Performance of Generate backend data structure: time 0.02651/0.6846, allocations: 6.601 MB / 405.5 MB, free: 5.844 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.6847, allocations: 12.03 kB / 405.5 MB, free: 5.832 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1778/0.8625, allocations: 16.71 MB / 422.2 MB, free: 5.086 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01911/0.8817, allocations: 5.554 MB / 427.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005631/0.8823, allocations: 336.6 kB / 428.1 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002614/0.8849, allocations: 463.6 kB / 428.5 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2845/1.169, allocations: 14.77 MB / 443.3 MB, free: 123.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001051/1.171, allocations: 71.41 kB / 443.4 MB, free: 123.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00325/1.174, allocations: 208.4 kB / 443.6 MB, free: 123.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007195/1.181, allocations: 2.5 MB / 446.1 MB, free: 123.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04317/1.224, allocations: 13.2 MB / 459.3 MB, free: 119.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1037/1.328, allocations: 58.33 MB / 0.5055 GB, free: 64.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0435/1.372, allocations: 7.998 MB / 0.5133 GB, free: 56.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04423/1.416, allocations: 12.81 MB / 0.5258 GB, free: 43.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.333e-05/1.416, allocations: 72.62 kB / 0.5258 GB, free: 43.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=326): time 9.628e-06/1.416, allocations: 0 / 0.5258 GB, free: 43.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=572): time 4.484/5.901, allocations: 409.2 MB / 0.9255 GB, free: 37.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/5.901, allocations: 265.7 kB / 0.9258 GB, free: 37.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01192/5.913, allocations: 5.274 MB / 0.9309 GB, free: 32.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002547/5.915, allocations: 118.1 kB / 0.931 GB, free: 32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003478/5.919, allocations: 3.777 MB / 0.9347 GB, free: 28.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004479/5.923, allocations: 2.009 MB / 0.9367 GB, free: 26.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003216/5.927, allocations: 180.9 kB / 0.9368 GB, free: 26.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0007672/5.927, allocations: 0.7032 MB / 0.9375 GB, free: 25.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02448/5.952, allocations: 10.84 MB / 0.9481 GB, free: 15.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3415/6.294, allocations: 14.9 MB / 0.9627 GB, free: 98.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03055/6.324, allocations: 12.67 MB / 0.975 GB, free: 93.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002852/6.324, allocations: 38.97 kB / 0.9751 GB, free: 93.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.9107/7.235, allocations: 140.1 MB / 1.112 GB, free: 92.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001512/7.235, allocations: 64.19 kB / 1.112 GB, free: 92.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002193/7.236, allocations: 135.6 kB / 1.112 GB, free: 92.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1531/7.389, allocations: 34.67 MB / 1.146 GB, free: 71.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008916/7.398, allocations: 1.475 MB / 1.147 GB, free: 70.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.759/8.157, allocations: 197.5 MB / 1.34 GB, free: 24.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02341/8.18, allocations: 1.722 MB / 1.342 GB, free: 22.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003294/8.184, allocations: 0.5154 MB / 1.342 GB, free: 21.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 623 * Number of states: 0 () * Number of discrete variables: 51 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (780): * Single equations (assignments): 773 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01023/8.194, allocations: 3.055 MB / 1.345 GB, free: 18.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002808/8.197, allocations: 0.5814 MB / 1.346 GB, free: 18.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.9802/9.177, allocations: 136.4 MB / 1.479 GB, free: 20.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001066/9.177, allocations: 61.09 kB / 1.479 GB, free: 20.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001388/9.177, allocations: 56 kB / 1.479 GB, free: 20.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001265/9.177, allocations: 35.84 kB / 1.479 GB, free: 20.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.276/10.45, allocations: 206.2 MB / 1.681 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.417e-05/10.45, allocations: 6.375 kB / 1.681 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002968/10.46, allocations: 342.3 kB / 1.681 GB, free: 106.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1434/10.6, allocations: 33.75 MB / 1.714 GB, free: 86.01 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002315/10.6, allocations: 104.8 kB / 1.714 GB, free: 85.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7334/11.34, allocations: 180.5 MB / 1.89 GB, free: 43.26 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.197e-05/11.34, allocations: 11.75 kB / 1.89 GB, free: 43.25 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.9654/12.3, allocations: 153.1 MB / 2.04 GB, free: 28.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01038/12.31, allocations: 3.029 MB / 2.043 GB, free: 25.67 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004573/12.32, allocations: 97.88 kB / 2.043 GB, free: 25.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01788/12.33, allocations: 1.486 MB / 2.044 GB, free: 24.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005263/12.34, allocations: 498.2 kB / 2.045 GB, free: 23.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001898/12.34, allocations: 144 kB / 2.045 GB, free: 23.46 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.2896/12.63, allocations: 3.805 MB / 2.049 GB, free: 105.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.142e-06/12.63, allocations: 5.125 kB / 2.049 GB, free: 105.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.02272/12.65, allocations: 3.815 MB / 2.052 GB, free: 105.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (165): * Single equations (assignments): 158 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.003074/12.66, allocations: 259.4 kB / 2.053 GB, free: 105 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.1032/12.76, allocations: 33.34 MB / 2.085 GB, free: 103.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/12.76, allocations: 0 / 2.085 GB, free: 103.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.07386/12.83, allocations: 20.46 MB / 2.105 GB, free: 96.81 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008511/12.84, allocations: 0.7087 MB / 2.106 GB, free: 96.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06668/12.91, allocations: 30.28 MB / 2.135 GB, free: 69.03 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01063/12.92, allocations: 5.248 MB / 2.141 GB, free: 65.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001947/12.92, allocations: 358.2 kB / 2.141 GB, free: 64.79 MB / 394.7 MB Notification: Performance of SimCode: time 1.943e-06/12.92, allocations: 0 / 2.141 GB, free: 64.79 MB / 394.7 MB Notification: Performance of Templates: time 1.021/13.94, allocations: 242.4 MB / 2.378 GB, free: 105.6 MB / 410.7 MB