Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.878/1.878, allocations: 194.9 MB / 208.4 MB, free: 3.234 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.755e-05/2.775e-05, allocations: 4 kB / 255.3 MB, free: 3.203 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08179/0.08184, allocations: 44.5 MB / 299.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3586/0.4405, allocations: 97.69 MB / 397.5 MB, free: 18.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.4408, allocations: 87.78 kB / 397.6 MB, free: 18.64 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4125/0.8533, allocations: 110.4 MB / 0.4961 GB, free: 12.37 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.8534, allocations: 4 kB / 0.4961 GB, free: 12.36 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003419/0.8537, allocations: 104 kB / 0.4962 GB, free: 12.26 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: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.01967/0.8734, allocations: 4.913 MB / 0.501 GB, free: 7.281 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.249e-05/0.8735, allocations: 15.97 kB / 0.501 GB, free: 7.266 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04548/0.919, allocations: 6.896 MB / 0.5077 GB, free: 360 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2939/1.213, allocations: 6.738 MB / 0.5143 GB, free: 67.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005525/1.213, allocations: 393.1 kB / 0.5147 GB, free: 67.28 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002176/1.216, allocations: 0.5121 MB / 0.5152 GB, free: 67.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03319/1.249, allocations: 12.54 MB / 0.5274 GB, free: 64.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002799/1.249, allocations: 66.23 kB / 0.5275 GB, free: 64.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00164/1.251, allocations: 243.1 kB / 0.5277 GB, free: 64.68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0018/1.253, allocations: 1.037 MB / 0.5288 GB, free: 64.67 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02698/1.28, allocations: 10.37 MB / 0.5389 GB, free: 64.62 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06901/1.349, allocations: 50.11 MB / 0.5878 GB, free: 31.04 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01628/1.365, allocations: 4.77 MB / 0.5925 GB, free: 29.42 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003172/1.368, allocations: 1.884 MB / 0.5943 GB, free: 28.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.014/1.382, allocations: 7.05 MB / 0.6012 GB, free: 24.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/1.382, allocations: 50.62 kB / 0.6013 GB, free: 24.65 MB / 394.7 MB Notification: Performance of pre-optimization done (n=179): time 6.508e-06/1.382, allocations: 0 / 0.6013 GB, free: 24.65 MB / 394.7 MB Notification: Performance of matching and sorting (n=224): time 0.07619/1.459, allocations: 17.1 MB / 0.618 GB, free: 16.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.832e-05/1.459, allocations: 205.9 kB / 0.6181 GB, free: 16.59 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00818/1.467, allocations: 3.875 MB / 0.6219 GB, free: 13.14 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004238/1.467, allocations: 56.77 kB / 0.622 GB, free: 13.08 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00254/1.47, allocations: 3.44 MB / 0.6253 GB, free: 9.961 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009786/1.471, allocations: 0.8423 MB / 0.6262 GB, free: 9.219 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005999/1.472, allocations: 124 kB / 0.6263 GB, free: 9.098 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004198/1.472, allocations: 0.574 MB / 0.6268 GB, free: 8.59 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004262/1.476, allocations: 2.109 MB / 0.6289 GB, free: 6.676 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006617/1.483, allocations: 5.847 MB / 0.6346 GB, free: 15.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007767/1.491, allocations: 3.497 MB / 0.638 GB, free: 12.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001269/1.491, allocations: 40 kB / 0.6381 GB, free: 12.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02359/1.515, allocations: 8.513 MB / 0.6464 GB, free: 4.852 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/1.515, allocations: 60 kB / 0.6464 GB, free: 4.793 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002024/1.515, allocations: 132 kB / 0.6466 GB, free: 4.664 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004415/1.519, allocations: 1.024 MB / 0.6476 GB, free: 3.887 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006525/1.526, allocations: 1.412 MB / 0.6489 GB, free: 2.645 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01785/1.544, allocations: 7.065 MB / 0.6558 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006484/1.55, allocations: 330.9 kB / 0.6562 GB, free: 12.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001394/1.552, allocations: 387.5 kB / 0.6565 GB, free: 12.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 43 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 764 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001898/1.554, allocations: 0.5878 MB / 0.6571 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001038/1.555, allocations: 402.8 kB / 0.6575 GB, free: 11.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01056/1.565, allocations: 3.609 MB / 0.661 GB, free: 8.453 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.406e-05/1.566, allocations: 27.52 kB / 0.661 GB, free: 8.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.199e-05/1.566, allocations: 8 kB / 0.661 GB, free: 8.422 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.791e-05/1.566, allocations: 11.03 kB / 0.6611 GB, free: 8.418 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02811/1.594, allocations: 9.823 MB / 0.6706 GB, free: 316 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.912e-05/1.594, allocations: 8 kB / 0.6707 GB, free: 308 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002262/1.596, allocations: 351.6 kB / 0.671 GB, free: 20 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2464/1.843, allocations: 0.9756 MB / 0.6719 GB, free: 88.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003976/1.843, allocations: 46.12 kB / 0.672 GB, free: 88.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/1.854, allocations: 5.582 MB / 0.6774 GB, free: 86.87 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.216e-05/1.854, allocations: 11.03 kB / 0.6774 GB, free: 86.87 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01389/1.868, allocations: 6.934 MB / 0.6842 GB, free: 85.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002226/1.87, allocations: 0.7137 MB / 0.6849 GB, free: 85.27 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009803/1.871, allocations: 41.84 kB / 0.685 GB, free: 85.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002664/1.874, allocations: 100.7 kB / 0.6851 GB, free: 85.26 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005215/1.875, allocations: 151.2 kB / 0.6852 GB, free: 85.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002245/1.875, allocations: 65.11 kB / 0.6853 GB, free: 85.26 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006349/1.881, allocations: 2.72 MB / 0.6879 GB, free: 85.05 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.258e-06/1.881, allocations: 0 / 0.6879 GB, free: 85.05 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007495/1.889, allocations: 1.168 MB / 0.6891 GB, free: 85.05 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (176): * Single equations (assignments): 172 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007707/1.889, allocations: 223.8 kB / 0.6893 GB, free: 84.97 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009811/1.899, allocations: 5.319 MB / 0.6945 GB, free: 84.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/1.899, allocations: 0 / 0.6945 GB, free: 84.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003323/1.903, allocations: 1.757 MB / 0.6962 GB, free: 84.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003364/1.906, allocations: 0.5033 MB / 0.6967 GB, free: 84.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02179/1.928, allocations: 9.576 MB / 0.706 GB, free: 82.72 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007561/1.936, allocations: 3.984 MB / 0.7099 GB, free: 81.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001354/1.937, allocations: 317.9 kB / 0.7102 GB, free: 81.89 MB / 426.7 MB Notification: Performance of SimCode: time 1.85e-06/1.937, allocations: 0 / 0.7102 GB, free: 81.89 MB / 426.7 MB Notification: Performance of Templates: time 0.1272/2.064, allocations: 86.43 MB / 0.7946 GB, free: 35.64 MB / 426.7 MB