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.886/1.886, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.157e-05/3.173e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2541, allocations: 44.5 MB / 294.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1699/0.424, allocations: 93.48 MB / 387.6 MB, free: 4.48 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004739/0.4246, allocations: 91.88 kB / 387.7 MB, free: 4.391 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6736/1.098, allocations: 123.7 MB / 0.4994 GB, free: 38.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.098, allocations: 4 kB / 0.4994 GB, free: 38.08 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003128/1.099, allocations: 112 kB / 0.4995 GB, free: 37.97 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: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.01989/1.119, allocations: 6.313 MB / 0.5057 GB, free: 31.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/1.119, allocations: 8.031 kB / 0.5057 GB, free: 31.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04078/1.159, allocations: 8.31 MB / 0.5138 GB, free: 23.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02065/1.18, allocations: 7.268 MB / 0.5209 GB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003596/1.18, allocations: 192 kB / 0.5211 GB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002771/1.183, allocations: 355.8 kB / 0.5214 GB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02032/1.204, allocations: 10.11 MB / 0.5313 GB, free: 5.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03401/1.238, allocations: 14.05 MB / 0.545 GB, free: 6.051 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003596/1.238, allocations: 67.41 kB / 0.5451 GB, free: 5.984 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002444/1.241, allocations: 36 kB / 0.5451 GB, free: 5.949 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003272/1.244, allocations: 1.62 MB / 0.5467 GB, free: 4.328 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3325/1.576, allocations: 61.39 MB / 0.6067 GB, free: 43.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008003/1.584, allocations: 5.554 MB / 0.6121 GB, free: 41.92 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005347/1.59, allocations: 3.367 MB / 0.6154 GB, free: 41.88 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02846/1.618, allocations: 14.03 MB / 0.6291 GB, free: 37.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.958e-05/1.618, allocations: 63.72 kB / 0.6291 GB, free: 37.65 MB / 394.7 MB Notification: Performance of pre-optimization done (n=286): time 7.349e-06/1.618, allocations: 0 / 0.6291 GB, free: 37.65 MB / 394.7 MB Notification: Performance of matching and sorting (n=336): time 0.09452/1.713, allocations: 30.91 MB / 0.6593 GB, free: 27.16 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.784e-05/1.713, allocations: 219.1 kB / 0.6595 GB, free: 26.94 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00954/1.723, allocations: 4.274 MB / 0.6637 GB, free: 25.41 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007089/1.723, allocations: 28.56 kB / 0.6637 GB, free: 25.38 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003216/1.727, allocations: 4.429 MB / 0.668 GB, free: 21.88 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001611/1.728, allocations: 1.212 MB / 0.6692 GB, free: 20.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009938/1.729, allocations: 2.375 kB / 0.6692 GB, free: 20.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0007327/1.73, allocations: 0.7012 MB / 0.6699 GB, free: 20.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008178/1.738, allocations: 4.366 MB / 0.6742 GB, free: 16.79 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01103/1.749, allocations: 9.549 MB / 0.6835 GB, free: 5.453 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01138/1.761, allocations: 6.358 MB / 0.6897 GB, free: 300 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001636/1.761, allocations: 56 kB / 0.6898 GB, free: 244 kB / 394.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.07215/1.833, allocations: 18.51 MB / 0.7078 GB, free: 4.992 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001679/1.833, allocations: 84 kB / 0.7079 GB, free: 4.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002937/1.834, allocations: 184 kB / 0.7081 GB, free: 4.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02777/1.861, allocations: 5.629 MB / 0.7136 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009761/1.871, allocations: 2.129 MB / 0.7157 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2942/2.165, allocations: 21.61 MB / 0.7368 GB, free: 96.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009605/2.175, allocations: 392.2 kB / 0.7372 GB, free: 96.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00199/2.177, allocations: 0.5299 MB / 0.7377 GB, free: 96.38 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * 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 (1105): * Single equations (assignments): 1097 * 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.00304/2.18, allocations: 0.5547 MB / 0.7382 GB, free: 96.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001235/2.181, allocations: 479 kB / 0.7387 GB, free: 96.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03767/2.219, allocations: 12.02 MB / 0.7504 GB, free: 96.06 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000115/2.219, allocations: 58.72 kB / 0.7505 GB, free: 96.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.082e-05/2.219, allocations: 6.656 kB / 0.7505 GB, free: 96.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.96e-05/2.219, allocations: 14.53 kB / 0.7505 GB, free: 96.06 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05935/2.279, allocations: 22.48 MB / 0.7724 GB, free: 90.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-05/2.279, allocations: 10.03 kB / 0.7725 GB, free: 90.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003864/2.283, allocations: 0.5662 MB / 0.773 GB, free: 90.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02444/2.307, allocations: 4.631 MB / 0.7775 GB, free: 89.83 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007215/2.308, allocations: 14.02 kB / 0.7775 GB, free: 89.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02897/2.337, allocations: 17.32 MB / 0.7945 GB, free: 81.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.329e-05/2.337, allocations: 11.09 kB / 0.7945 GB, free: 81.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03996/2.377, allocations: 16.97 MB / 0.811 GB, free: 73.45 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003521/2.381, allocations: 1.179 MB / 0.8122 GB, free: 72.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001579/2.382, allocations: 11.95 kB / 0.8122 GB, free: 72.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004453/2.387, allocations: 205.2 kB / 0.8124 GB, free: 72.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001126/2.388, allocations: 193.1 kB / 0.8126 GB, free: 72.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000433/2.388, allocations: 84.55 kB / 0.8127 GB, free: 72.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006569/2.395, allocations: 2.843 MB / 0.8154 GB, free: 69.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.747e-06/2.395, allocations: 0 / 0.8154 GB, free: 69.65 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01123/2.406, allocations: 1.484 MB / 0.8169 GB, free: 68.17 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.001016/2.407, allocations: 169 kB / 0.817 GB, free: 68.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0176/2.425, allocations: 9.989 MB / 0.8268 GB, free: 59.37 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/2.425, allocations: 0 / 0.8268 GB, free: 59.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006892/2.432, allocations: 3.816 MB / 0.8305 GB, free: 55.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003865/2.436, allocations: 470.9 kB / 0.831 GB, free: 55.52 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03153/2.467, allocations: 14 MB / 0.8447 GB, free: 42.27 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01031/2.478, allocations: 4.74 MB / 0.8493 GB, free: 37.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002397/2.48, allocations: 407.1 kB / 0.8497 GB, free: 37.14 MB / 426.7 MB Notification: Performance of SimCode: time 2.073e-06/2.48, allocations: 0 / 0.8497 GB, free: 37.14 MB / 426.7 MB Notification: Performance of Templates: time 0.4503/2.93, allocations: 139.4 MB / 0.9858 GB, free: 38.58 MB / 426.7 MB