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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.864/1.864, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.177e-05/3.22e-05, allocations: 0 / 255.4 MB, free: 3.172 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07992/0.07998, allocations: 44.51 MB / 299.9 MB, free: 6.602 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.349/0.429, allocations: 94.14 MB / 394 MB, free: 19.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.4293, allocations: 87.11 kB / 394.1 MB, free: 19.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7579/1.187, allocations: 126.2 MB / 0.5081 GB, free: 61.51 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.255e-06/1.187, allocations: 0 / 0.5081 GB, free: 61.51 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004702/1.188, allocations: 113.6 kB / 0.5082 GB, free: 61.51 MB / 394.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.02197/1.21, allocations: 6.316 MB / 0.5143 GB, free: 60.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/1.21, allocations: 13.44 kB / 0.5143 GB, free: 60.7 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04339/1.253, allocations: 8.311 MB / 0.5225 GB, free: 60.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02229/1.276, allocations: 7.259 MB / 0.5296 GB, free: 59.65 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006061/1.276, allocations: 451.2 kB / 0.53 GB, free: 59.64 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002992/1.279, allocations: 0.5974 MB / 0.5306 GB, free: 59.63 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03969/1.319, allocations: 15.5 MB / 0.5457 GB, free: 56.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003655/1.319, allocations: 70.2 kB / 0.5458 GB, free: 56.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002765/1.322, allocations: 284.6 kB / 0.546 GB, free: 56.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002926/1.325, allocations: 1.61 MB / 0.5476 GB, free: 56.48 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0333/1.358, allocations: 13.53 MB / 0.5608 GB, free: 56.45 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08953/1.448, allocations: 63.97 MB / 0.6233 GB, free: 26.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01668/1.465, allocations: 6.364 MB / 0.6295 GB, free: 20.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005433/1.47, allocations: 3.462 MB / 0.6329 GB, free: 17.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02854/1.499, allocations: 14.32 MB / 0.6469 GB, free: 4.711 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.304e-05/1.499, allocations: 72.02 kB / 0.6469 GB, free: 4.637 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 8.372e-06/1.499, allocations: 0 / 0.6469 GB, free: 4.637 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.3666/1.866, allocations: 29.94 MB / 0.6762 GB, free: 87.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.649e-05/1.866, allocations: 212.2 kB / 0.6764 GB, free: 86.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01226/1.878, allocations: 4.769 MB / 0.6811 GB, free: 86.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007399/1.879, allocations: 68.27 kB / 0.6811 GB, free: 86.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003484/1.882, allocations: 4.292 MB / 0.6853 GB, free: 84.99 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001811/1.884, allocations: 1.242 MB / 0.6865 GB, free: 84.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001345/1.886, allocations: 175.9 kB / 0.6867 GB, free: 84.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009617/1.887, allocations: 0.6847 MB / 0.6874 GB, free: 83.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009232/1.896, allocations: 4.453 MB / 0.6917 GB, free: 83.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01207/1.908, allocations: 9.359 MB / 0.7008 GB, free: 77.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01179/1.92, allocations: 6.391 MB / 0.7071 GB, free: 77.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001656/1.92, allocations: 47.41 kB / 0.7071 GB, free: 77.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.05114/1.971, allocations: 17.84 MB / 0.7246 GB, free: 76.42 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001425/1.971, allocations: 78.19 kB / 0.7246 GB, free: 76.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002202/1.972, allocations: 175.2 kB / 0.7248 GB, free: 76.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0275/1.999, allocations: 5.623 MB / 0.7303 GB, free: 75.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009491/2.009, allocations: 2.048 MB / 0.7323 GB, free: 75.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03914/2.048, allocations: 23.6 MB / 0.7553 GB, free: 64.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009868/2.058, allocations: 0.5532 MB / 0.7559 GB, free: 64.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00211/2.06, allocations: 0.5025 MB / 0.7564 GB, free: 64.12 MB / 426.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.003183/2.063, allocations: 0.7571 MB / 0.7571 GB, free: 63.51 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00137/2.064, allocations: 0.4928 MB / 0.7576 GB, free: 63.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03793/2.102, allocations: 12.26 MB / 0.7696 GB, free: 59.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001083/2.103, allocations: 56.83 kB / 0.7696 GB, free: 59.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.283e-05/2.103, allocations: 8 kB / 0.7696 GB, free: 59.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.605e-05/2.103, allocations: 14.16 kB / 0.7696 GB, free: 59.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05902/2.162, allocations: 23.84 MB / 0.7929 GB, free: 39.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.415e-05/2.162, allocations: 8 kB / 0.7929 GB, free: 39.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00363/2.165, allocations: 0.5687 MB / 0.7935 GB, free: 39.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02172/2.187, allocations: 4.644 MB / 0.798 GB, free: 34.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007969/2.188, allocations: 59.98 kB / 0.7981 GB, free: 34.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0299/2.218, allocations: 18.9 MB / 0.8165 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.439e-06/2.218, allocations: 7.938 kB / 0.8165 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2965/2.515, allocations: 17.25 MB / 0.8334 GB, free: 77.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003823/2.518, allocations: 1.209 MB / 0.8346 GB, free: 76.95 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001726/2.52, allocations: 53.25 kB / 0.8346 GB, free: 76.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004621/2.525, allocations: 252.2 kB / 0.8349 GB, free: 76.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001064/2.526, allocations: 187.8 kB / 0.835 GB, free: 76.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000472/2.526, allocations: 85.48 kB / 0.8351 GB, free: 76.95 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007718/2.534, allocations: 3.303 MB / 0.8383 GB, free: 76.74 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.083e-06/2.534, allocations: 1.094 kB / 0.8383 GB, free: 76.74 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0102/2.544, allocations: 1.696 MB / 0.84 GB, free: 76.74 MB / 426.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.001065/2.545, allocations: 224.6 kB / 0.8402 GB, free: 76.65 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.019/2.565, allocations: 10.04 MB / 0.85 GB, free: 76.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.108e-06/2.565, allocations: 0 / 0.85 GB, free: 76.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007684/2.572, allocations: 3.862 MB / 0.8538 GB, free: 76.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004535/2.577, allocations: 0.578 MB / 0.8544 GB, free: 76.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03311/2.61, allocations: 14.13 MB / 0.8682 GB, free: 74.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01015/2.62, allocations: 4.744 MB / 0.8728 GB, free: 72.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002575/2.623, allocations: 411 kB / 0.8732 GB, free: 72.69 MB / 426.7 MB Notification: Performance of SimCode: time 1.954e-06/2.623, allocations: 3.688 kB / 0.8732 GB, free: 72.69 MB / 426.7 MB Notification: Performance of Templates: time 0.4541/3.077, allocations: 140.7 MB / 1.011 GB, free: 92.33 MB / 442.7 MB