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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 2.154/2.154, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.969e-05/3.947e-05, allocations: 11.91 kB / 258.8 MB, free: 8.703 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3389, allocations: 44.5 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.1353/0.4742, allocations: 59.38 MB / 362.7 MB, free: 2.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04912/0.5234, allocations: 13.14 MB / 375.8 MB, free: 4.98 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01451/0.538, allocations: 327.2 kB / 376.1 MB, free: 4.66 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01179/0.5498, allocations: 3.146 MB / 379.3 MB, free: 1.5 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03809/0.588, allocations: 8.535 MB / 387.8 MB, free: 8.941 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006057/0.5941, allocations: 0.9557 MB / 388.8 MB, free: 7.984 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.08816/0.6823, allocations: 25.04 MB / 413.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01981/0.7022, allocations: 5.949 MB / 419.8 MB, free: 8.926 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005543/0.7078, allocations: 1.344 MB / 421.1 MB, free: 7.578 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00657/0.7144, allocations: 2.085 MB / 423.2 MB, free: 5.488 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004155/0.7186, allocations: 1.077 MB / 424.3 MB, free: 4.41 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001796/0.7205, allocations: 196 kB / 424.5 MB, free: 4.219 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004282/0.7248, allocations: 2.338 MB / 426.8 MB, free: 1.875 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002187/0.727, allocations: 420 kB / 427.2 MB, free: 1.465 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3081/1.035, allocations: 8.168 MB / 435.4 MB, free: 30.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/1.035, allocations: 1.312 kB / 435.4 MB, free: 30.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.306e-06/1.035, allocations: 2.781 kB / 435.4 MB, free: 30.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005059/1.036, allocations: 0 / 435.4 MB, free: 30.75 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2055 * Number of variables: 2055 Notification: Performance of Generate backend data structure: time 0.02889/1.065, allocations: 6.6 MB / 442 MB, free: 28.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/1.065, allocations: 8.281 kB / 442 MB, free: 28.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1924/1.257, allocations: 16.72 MB / 458.7 MB, free: 22.88 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02777/1.285, allocations: 5.556 MB / 464.3 MB, free: 21.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007353/1.286, allocations: 337.5 kB / 464.6 MB, free: 21.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004197/1.29, allocations: 463.1 kB / 465 MB, free: 21.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06721/1.357, allocations: 14.8 MB / 479.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006347/1.358, allocations: 72.95 kB / 479.9 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003581/1.362, allocations: 209.9 kB / 480.1 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009056/1.371, allocations: 2.494 MB / 482.6 MB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0634/1.434, allocations: 13.22 MB / 495.8 MB, free: 92 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1919/1.626, allocations: 58.4 MB / 0.5412 GB, free: 15.59 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0551/1.681, allocations: 7.991 MB / 0.5491 GB, free: 9.062 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04413/1.726, allocations: 12.8 MB / 0.5616 GB, free: 12.19 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001193/1.726, allocations: 72.34 kB / 0.5616 GB, free: 12.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=326): time 8.136e-06/1.726, allocations: 0 / 0.5616 GB, free: 12.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=572): time 4.606/6.332, allocations: 409.2 MB / 0.9613 GB, free: 170 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/6.332, allocations: 264.7 kB / 0.9615 GB, free: 169.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01282/6.345, allocations: 5.277 MB / 0.9667 GB, free: 168.1 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002586/6.348, allocations: 109.4 kB / 0.9668 GB, free: 168 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003844/6.352, allocations: 3.788 MB / 0.9705 GB, free: 165.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004566/6.356, allocations: 2.006 MB / 0.9724 GB, free: 164.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002738/6.359, allocations: 184 kB / 0.9726 GB, free: 164 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007313/6.36, allocations: 0.7029 MB / 0.9733 GB, free: 163.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02454/6.385, allocations: 10.84 MB / 0.9839 GB, free: 159.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02903/6.414, allocations: 14.9 MB / 0.9984 GB, free: 149.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0292/6.443, allocations: 12.66 MB / 1.011 GB, free: 142.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001288/6.443, allocations: 40.28 kB / 1.011 GB, free: 142 MB / 458.7 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.9286/7.372, allocations: 140.1 MB / 1.148 GB, free: 154.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/7.372, allocations: 63.03 kB / 1.148 GB, free: 154.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002051/7.372, allocations: 136.5 kB / 1.148 GB, free: 154.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1525/7.525, allocations: 34.67 MB / 1.182 GB, free: 146.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009252/7.534, allocations: 1.475 MB / 1.183 GB, free: 145.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7856/8.32, allocations: 197.5 MB / 1.376 GB, free: 120.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02331/8.343, allocations: 1.727 MB / 1.378 GB, free: 119.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004092/8.347, allocations: 0.5216 MB / 1.378 GB, free: 118.8 MB / 458.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.01256/8.36, allocations: 3.042 MB / 1.381 GB, free: 116.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00288/8.363, allocations: 0.5842 MB / 1.382 GB, free: 116 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.9392/9.302, allocations: 136.4 MB / 1.515 GB, free: 146.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001146/9.302, allocations: 60.19 kB / 1.515 GB, free: 146.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001664/9.302, allocations: 64.62 kB / 1.515 GB, free: 146.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001445/9.302, allocations: 27.89 kB / 1.515 GB, free: 146.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.031/10.33, allocations: 206.2 MB / 1.716 GB, free: 134 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001042/10.33, allocations: 5.969 kB / 1.716 GB, free: 134 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002975/10.34, allocations: 332.1 kB / 1.717 GB, free: 133.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1418/10.48, allocations: 33.75 MB / 1.75 GB, free: 108.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00244/10.48, allocations: 101 kB / 1.75 GB, free: 108.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7781/11.26, allocations: 180.6 MB / 1.926 GB, free: 90.72 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.088e-05/11.26, allocations: 15.47 kB / 1.926 GB, free: 90.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.111/12.37, allocations: 153.1 MB / 2.076 GB, free: 96.64 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01112/12.38, allocations: 3.026 MB / 2.079 GB, free: 94.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005182/12.39, allocations: 97.23 kB / 2.079 GB, free: 94.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01809/12.4, allocations: 1.484 MB / 2.08 GB, free: 93.46 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005647/12.41, allocations: 498 kB / 2.081 GB, free: 93.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002215/12.41, allocations: 142.7 kB / 2.081 GB, free: 92.94 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0102/12.42, allocations: 3.805 MB / 2.084 GB, free: 90.24 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.32e-07/12.42, allocations: 0 / 2.084 GB, free: 90.24 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.02116/12.44, allocations: 3.823 MB / 2.088 GB, free: 86.48 MB / 458.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.003187/12.45, allocations: 263 kB / 2.088 GB, free: 86.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.1002/12.55, allocations: 33.34 MB / 2.121 GB, free: 53.02 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.527e-05/12.55, allocations: 0 / 2.121 GB, free: 53.02 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3617/12.91, allocations: 20.45 MB / 2.141 GB, free: 147.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00839/12.92, allocations: 0.7034 MB / 2.142 GB, free: 147.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07479/12.99, allocations: 30.3 MB / 2.171 GB, free: 140.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01426/13.01, allocations: 5.246 MB / 2.176 GB, free: 139.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002228/13.01, allocations: 366.1 kB / 2.177 GB, free: 139.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.664e-06/13.01, allocations: 0 / 2.177 GB, free: 139.9 MB / 458.7 MB Notification: Performance of Templates: time 0.7914/13.8, allocations: 242.7 MB / 2.414 GB, free: 54.98 MB / 458.7 MB