Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.602/1.602, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.11e-05/3.131e-05, allocations: 7.938 kB / 225 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2158, allocations: 38.77 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1342/0.35, allocations: 88.4 MB / 352.2 MB, free: 1.332 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.3503, allocations: 91.88 kB / 352.3 MB, free: 1.242 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6333/0.9836, allocations: 126.2 MB / 478.4 MB, free: 10.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.9837, allocations: 0 / 478.4 MB, free: 10.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003702/0.9841, allocations: 119.9 kB / 478.5 MB, free: 10.81 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: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.0224/1.006, allocations: 6.325 MB / 484.9 MB, free: 4.418 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/1.007, allocations: 8.031 kB / 484.9 MB, free: 4.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0447/1.051, allocations: 8.306 MB / 493.2 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02451/1.076, allocations: 7.264 MB / 0.4887 GB, free: 4.758 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007386/1.077, allocations: 455.7 kB / 0.4892 GB, free: 4.312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003215/1.08, allocations: 0.5894 MB / 0.4897 GB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2563/1.336, allocations: 15.5 MB / 0.5049 GB, free: 50.98 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003871/1.337, allocations: 76.11 kB / 0.5049 GB, free: 50.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002661/1.339, allocations: 286.8 kB / 0.5052 GB, free: 50.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002925/1.342, allocations: 1.617 MB / 0.5068 GB, free: 50.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03368/1.376, allocations: 13.52 MB / 0.52 GB, free: 50.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08703/1.463, allocations: 63.96 MB / 0.5825 GB, free: 9.531 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01806/1.481, allocations: 6.356 MB / 0.5887 GB, free: 6.746 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005817/1.487, allocations: 3.467 MB / 0.592 GB, free: 4.527 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03153/1.519, allocations: 14.35 MB / 0.6061 GB, free: 7.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.066e-05/1.519, allocations: 59.72 kB / 0.6061 GB, free: 7.898 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.214e-06/1.519, allocations: 3.938 kB / 0.6061 GB, free: 7.895 MB / 362.7 MB Notification: Performance of matching and sorting (n=336): time 0.1219/1.641, allocations: 29.69 MB / 0.6351 GB, free: 1.145 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001627/1.641, allocations: 223.7 kB / 0.6353 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2341/1.875, allocations: 4.898 MB / 0.6401 GB, free: 83.24 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007174/1.876, allocations: 70.97 kB / 0.6402 GB, free: 83.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00329/1.879, allocations: 4.284 MB / 0.6444 GB, free: 81.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001695/1.881, allocations: 1.241 MB / 0.6456 GB, free: 80.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001018/1.882, allocations: 177.1 kB / 0.6457 GB, free: 80.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0006861/1.883, allocations: 0.6879 MB / 0.6464 GB, free: 80.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008899/1.892, allocations: 4.461 MB / 0.6508 GB, free: 80.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01196/1.904, allocations: 9.347 MB / 0.6599 GB, free: 74.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01207/1.916, allocations: 6.391 MB / 0.6661 GB, free: 74.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001652/1.916, allocations: 50.47 kB / 0.6662 GB, free: 74.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.05156/1.967, allocations: 17.84 MB / 0.6836 GB, free: 71.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001452/1.968, allocations: 79.56 kB / 0.6837 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002195/1.968, allocations: 172.8 kB / 0.6839 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02644/1.994, allocations: 5.627 MB / 0.6894 GB, free: 70.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009771/2.004, allocations: 2.043 MB / 0.6913 GB, free: 70.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03972/2.044, allocations: 23.62 MB / 0.7144 GB, free: 57.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00954/2.053, allocations: 0.5361 MB / 0.7149 GB, free: 57.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001976/2.055, allocations: 0.4989 MB / 0.7154 GB, free: 56.94 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002946/2.058, allocations: 0.7481 MB / 0.7162 GB, free: 56.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001253/2.06, allocations: 0.4975 MB / 0.7166 GB, free: 55.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03637/2.096, allocations: 12.26 MB / 0.7286 GB, free: 46.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001031/2.096, allocations: 61.14 kB / 0.7287 GB, free: 46.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.49e-05/2.096, allocations: 8 kB / 0.7287 GB, free: 46.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.03e-05/2.096, allocations: 16.14 kB / 0.7287 GB, free: 46.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06045/2.157, allocations: 23.84 MB / 0.752 GB, free: 26.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.299e-05/2.157, allocations: 4 kB / 0.752 GB, free: 26.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003818/2.161, allocations: 0.5655 MB / 0.7525 GB, free: 25.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02236/2.183, allocations: 4.649 MB / 0.7571 GB, free: 21.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007349/2.184, allocations: 55.98 kB / 0.7571 GB, free: 21.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2789/2.463, allocations: 18.91 MB / 0.7756 GB, free: 70.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.691e-05/2.463, allocations: 10.28 kB / 0.7756 GB, free: 70.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06554/2.529, allocations: 17.26 MB / 0.7924 GB, free: 69.13 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003654/2.532, allocations: 1.22 MB / 0.7936 GB, free: 69.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001726/2.534, allocations: 55.62 kB / 0.7937 GB, free: 69.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00455/2.539, allocations: 247 kB / 0.7939 GB, free: 69.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001093/2.54, allocations: 186.9 kB / 0.7941 GB, free: 69.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005183/2.54, allocations: 88.33 kB / 0.7942 GB, free: 69.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007981/2.548, allocations: 3.312 MB / 0.7974 GB, free: 68.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.547e-06/2.548, allocations: 0 / 0.7974 GB, free: 68.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01026/2.559, allocations: 1.695 MB / 0.7991 GB, free: 68.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001008/2.56, allocations: 217.7 kB / 0.7993 GB, free: 68.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01884/2.579, allocations: 10.04 MB / 0.8091 GB, free: 67.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/2.579, allocations: 0 / 0.8091 GB, free: 67.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007249/2.586, allocations: 3.868 MB / 0.8129 GB, free: 66.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004165/2.59, allocations: 0.5775 MB / 0.8134 GB, free: 66.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.033/2.623, allocations: 14.12 MB / 0.8272 GB, free: 60.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01023/2.633, allocations: 4.753 MB / 0.8319 GB, free: 59.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002538/2.636, allocations: 411.9 kB / 0.8323 GB, free: 59.11 MB / 378.7 MB Notification: Performance of SimCode: time 2.016e-06/2.636, allocations: 0 / 0.8323 GB, free: 59.11 MB / 378.7 MB Notification: Performance of Templates: time 0.4385/3.074, allocations: 140.7 MB / 0.9696 GB, free: 61.68 MB / 394.7 MB