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.59/1.59, allocations: 171.2 MB / 183.8 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.488e-05/3.507e-05, allocations: 4 kB / 225 MB, free: 2.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2152, allocations: 38.77 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1285/0.3437, allocations: 83.02 MB / 346.8 MB, free: 6.727 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.344, allocations: 83.95 kB / 346.9 MB, free: 6.645 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6112/0.9552, allocations: 122.4 MB / 469.2 MB, free: 4.105 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.203e-06/0.9553, allocations: 0 / 469.2 MB, free: 4.105 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003756/0.9557, allocations: 124 kB / 469.4 MB, free: 3.984 MB / 314.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.0217/0.9774, allocations: 6.496 MB / 475.8 MB, free: 13.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.9774, allocations: 8.031 kB / 475.9 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05024/1.028, allocations: 9.427 MB / 485.3 MB, free: 3.953 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02725/1.055, allocations: 8.548 MB / 493.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006546/1.056, allocations: 435.3 kB / 494.3 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002832/1.059, allocations: 0.5777 MB / 494.8 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2556/1.314, allocations: 14.61 MB / 0.4975 GB, free: 49.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000475/1.315, allocations: 85.16 kB / 0.4976 GB, free: 49.96 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002419/1.317, allocations: 272.3 kB / 0.4978 GB, free: 49.96 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002739/1.32, allocations: 1.437 MB / 0.4992 GB, free: 49.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03366/1.354, allocations: 12.58 MB / 0.5115 GB, free: 49.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08802/1.442, allocations: 64.56 MB / 0.5746 GB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02623/1.468, allocations: 7.775 MB / 0.5822 GB, free: 8.254 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008108/1.476, allocations: 5.151 MB / 0.5872 GB, free: 6.152 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02715/1.503, allocations: 12.99 MB / 0.5999 GB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.375e-05/1.503, allocations: 71.12 kB / 0.6 GB, free: 13.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=340): time 8.263e-06/1.503, allocations: 0 / 0.6 GB, free: 13.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=604): time 0.541/2.044, allocations: 79.78 MB / 0.6779 GB, free: 76.53 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/2.045, allocations: 270.9 kB / 0.6781 GB, free: 76.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01037/2.055, allocations: 4.711 MB / 0.6827 GB, free: 75.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001711/2.057, allocations: 116.6 kB / 0.6828 GB, free: 75.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00289/2.06, allocations: 3.788 MB / 0.6865 GB, free: 72.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0033/2.063, allocations: 2.109 MB / 0.6886 GB, free: 71.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001844/2.065, allocations: 185.2 kB / 0.6888 GB, free: 70.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0006804/2.066, allocations: 0.718 MB / 0.6895 GB, free: 70.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01682/2.082, allocations: 8.556 MB / 0.6978 GB, free: 67.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0191/2.102, allocations: 12.59 MB / 0.7101 GB, free: 58.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01982/2.121, allocations: 10.5 MB / 0.7204 GB, free: 51.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001195/2.122, allocations: 40 kB / 0.7204 GB, free: 51.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.1122/2.234, allocations: 39.47 MB / 0.759 GB, free: 18.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/2.234, allocations: 67.98 kB / 0.759 GB, free: 18.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000156/2.234, allocations: 140 kB / 0.7592 GB, free: 18.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3167/2.551, allocations: 21.51 MB / 0.7802 GB, free: 70.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006447/2.557, allocations: 1.432 MB / 0.7816 GB, free: 70.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5321/3.089, allocations: 144.4 MB / 0.9226 GB, free: 73.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01273/3.102, allocations: 0.7254 MB / 0.9233 GB, free: 73.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002866/3.105, allocations: 0.5318 MB / 0.9238 GB, free: 73.57 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * 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 (772): * Single equations (assignments): 765 * 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 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.004535/3.11, allocations: 0.7246 MB / 0.9245 GB, free: 73.47 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002687/3.112, allocations: 0.589 MB / 0.9251 GB, free: 73.47 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1028/3.215, allocations: 36.13 MB / 0.9604 GB, free: 71.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.435e-05/3.215, allocations: 61.02 kB / 0.9605 GB, free: 71.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001345/3.215, allocations: 63.31 kB / 0.9605 GB, free: 71.91 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001133/3.216, allocations: 27.14 kB / 0.9605 GB, free: 71.91 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1426/3.358, allocations: 57.02 MB / 1.016 GB, free: 38.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.131e-05/3.358, allocations: 4 kB / 1.016 GB, free: 38.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/3.36, allocations: 273.4 kB / 1.016 GB, free: 38.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07534/3.435, allocations: 20.72 MB / 1.037 GB, free: 17.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001842/3.437, allocations: 100 kB / 1.037 GB, free: 17.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5049/3.942, allocations: 132.2 MB / 1.166 GB, free: 24.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.775e-06/3.942, allocations: 0 / 1.166 GB, free: 24.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3666/4.309, allocations: 49.05 MB / 1.214 GB, free: 70.94 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007459/4.317, allocations: 2.402 MB / 1.216 GB, free: 70.85 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003084/4.32, allocations: 100.1 kB / 1.216 GB, free: 70.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008418/4.328, allocations: 0.4969 MB / 1.217 GB, free: 70.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004123/4.332, allocations: 0.5011 MB / 1.217 GB, free: 70.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001739/4.334, allocations: 141.7 kB / 1.217 GB, free: 70.84 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.008138/4.342, allocations: 3.36 MB / 1.221 GB, free: 70.63 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.036e-06/4.342, allocations: 0 / 1.221 GB, free: 70.63 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01738/4.36, allocations: 3.436 MB / 1.224 GB, free: 70.63 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (148): * Single equations (assignments): 141 * 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 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.002037/4.362, allocations: 249.1 kB / 1.224 GB, free: 70.55 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.05026/4.412, allocations: 23.75 MB / 1.247 GB, free: 68.29 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.161e-06/4.412, allocations: 1.969 kB / 1.247 GB, free: 68.29 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03122/4.443, allocations: 13.36 MB / 1.261 GB, free: 62.53 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006115/4.449, allocations: 0.7109 MB / 1.261 GB, free: 62.21 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04898/4.498, allocations: 21.78 MB / 1.282 GB, free: 45.64 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01131/4.51, allocations: 5.312 MB / 1.288 GB, free: 41.73 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001591/4.511, allocations: 349.6 kB / 1.288 GB, free: 41.39 MB / 394.7 MB Notification: Performance of SimCode: time 2.123e-06/4.511, allocations: 3.938 kB / 1.288 GB, free: 41.39 MB / 394.7 MB Notification: Performance of Templates: time 0.8316/5.343, allocations: 225.8 MB / 1.509 GB, free: 113 MB / 442.7 MB