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 2.176/2.176, allocations: 194.9 MB / 211.2 MB, free: 9.324 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.782e-05/3.776e-05, allocations: 7.984 kB / 258.8 MB, free: 9.684 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3276, allocations: 44.51 MB / 303.3 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.08307/0.4108, allocations: 42.25 MB / 345.5 MB, free: 3.469 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03027/0.4411, allocations: 9.818 MB / 355.4 MB, free: 9.613 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01131/0.4525, allocations: 223.4 kB / 355.6 MB, free: 9.395 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008371/0.4609, allocations: 2.216 MB / 357.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02461/0.4856, allocations: 6.198 MB / 364 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004593/0.4902, allocations: 0.8229 MB / 364.8 MB, free: 132 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.05235/0.5426, allocations: 17.37 MB / 382.2 MB, free: 14.74 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009975/0.5526, allocations: 4.445 MB / 386.6 MB, free: 10.25 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003494/0.5562, allocations: 1.235 MB / 387.9 MB, free: 9.016 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004972/0.5612, allocations: 2.136 MB / 390 MB, free: 6.875 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004771/0.5661, allocations: 1.12 MB / 391.1 MB, free: 5.754 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00214/0.5683, allocations: 212 kB / 391.3 MB, free: 5.547 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004555/0.5729, allocations: 2.318 MB / 393.7 MB, free: 3.223 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002302/0.5753, allocations: 376 kB / 394 MB, free: 2.855 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01365/0.589, allocations: 8.135 MB / 402.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.589, allocations: 0 / 402.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.589, allocations: 0 / 402.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003432/0.5894, allocations: 0 / 402.2 MB, free: 10.7 MB / 346.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.02219/0.6116, allocations: 6.141 MB / 408.3 MB, free: 4.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.878e-05/0.6117, allocations: 8.031 kB / 408.3 MB, free: 4.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1364/0.7481, allocations: 13.44 MB / 421.7 MB, free: 7.012 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01556/0.7637, allocations: 4.639 MB / 426.4 MB, free: 2.312 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004785/0.7642, allocations: 316 kB / 426.7 MB, free: 2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002479/0.7667, allocations: 427.6 kB / 427.1 MB, free: 1.582 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3112/1.078, allocations: 15.75 MB / 442.8 MB, free: 98.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002373/1.078, allocations: 61.06 kB / 442.9 MB, free: 98.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001099/1.079, allocations: 202.5 kB / 443.1 MB, free: 98.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007173/1.087, allocations: 3.154 MB / 446.3 MB, free: 96.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0392/1.126, allocations: 14.04 MB / 460.3 MB, free: 82.26 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09741/1.223, allocations: 57.43 MB / 0.5056 GB, free: 23.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02207/1.245, allocations: 6.558 MB / 0.512 GB, free: 17.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04853/1.294, allocations: 14.46 MB / 0.5261 GB, free: 2.207 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.871e-05/1.294, allocations: 64.5 kB / 0.5262 GB, free: 2.133 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 1.114e-05/1.294, allocations: 0 / 0.5262 GB, free: 2.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=336): time 0.2916/1.586, allocations: 42.79 MB / 0.568 GB, free: 7.195 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001843/1.586, allocations: 217.9 kB / 0.5682 GB, free: 6.938 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01391/1.6, allocations: 5.116 MB / 0.5732 GB, free: 1.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009795/1.601, allocations: 69.7 kB / 0.5732 GB, free: 1.766 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2681/1.869, allocations: 4.261 MB / 0.5774 GB, free: 139 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002384/1.872, allocations: 1.242 MB / 0.5786 GB, free: 138.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001307/1.873, allocations: 169.2 kB / 0.5788 GB, free: 138.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0008123/1.874, allocations: 0.6852 MB / 0.5794 GB, free: 137.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01171/1.885, allocations: 4.584 MB / 0.5839 GB, free: 136.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0144/1.9, allocations: 9.509 MB / 0.5932 GB, free: 128.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01453/1.915, allocations: 6.459 MB / 0.5995 GB, free: 125.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001827/1.915, allocations: 51.03 kB / 0.5996 GB, free: 125.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.08609/2.001, allocations: 18.7 MB / 0.6178 GB, free: 113.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001984/2.001, allocations: 81 kB / 0.6179 GB, free: 113.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003525/2.002, allocations: 173.5 kB / 0.6181 GB, free: 113.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04345/2.045, allocations: 5.837 MB / 0.6238 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0173/2.062, allocations: 2.047 MB / 0.6258 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0718/2.134, allocations: 24.92 MB / 0.6501 GB, free: 80.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01057/2.145, allocations: 0.5538 MB / 0.6506 GB, free: 79.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001749/2.147, allocations: 0.5022 MB / 0.6511 GB, free: 79.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 788 * 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 (1054): * Single equations (assignments): 1046 * 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.007061/2.154, allocations: 3.042 MB / 0.6541 GB, free: 76.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001347/2.155, allocations: 0.4936 MB / 0.6546 GB, free: 75.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05277/2.208, allocations: 12.61 MB / 0.6669 GB, free: 63.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001171/2.208, allocations: 55.98 kB / 0.667 GB, free: 63.12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.053e-05/2.208, allocations: 11.95 kB / 0.667 GB, free: 63.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.888e-05/2.208, allocations: 11.95 kB / 0.667 GB, free: 63.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08087/2.289, allocations: 24.33 MB / 0.6907 GB, free: 38.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.373e-05/2.289, allocations: 7.984 kB / 0.6907 GB, free: 38.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005514/2.295, allocations: 0.5758 MB / 0.6913 GB, free: 37.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03563/2.33, allocations: 4.842 MB / 0.696 GB, free: 32.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008764/2.331, allocations: 54.73 kB / 0.6961 GB, free: 32.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04151/2.373, allocations: 20.21 MB / 0.7158 GB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/2.373, allocations: 4 kB / 0.7158 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3328/2.706, allocations: 17.7 MB / 0.7331 GB, free: 122.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004424/2.71, allocations: 1.244 MB / 0.7343 GB, free: 121.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002135/2.712, allocations: 56.41 kB / 0.7344 GB, free: 121.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006363/2.719, allocations: 258.1 kB / 0.7346 GB, free: 121.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001457/2.72, allocations: 191.3 kB / 0.7348 GB, free: 121.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004798/2.721, allocations: 83.53 kB / 0.7349 GB, free: 121.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.009956/2.731, allocations: 3.584 MB / 0.7384 GB, free: 120.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.22e-07/2.731, allocations: 0 / 0.7384 GB, free: 120.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01048/2.741, allocations: 1.734 MB / 0.7401 GB, free: 120.3 MB / 410.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.001565/2.743, allocations: 224.2 kB / 0.7403 GB, free: 120.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02531/2.768, allocations: 10.53 MB / 0.7506 GB, free: 116.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/2.768, allocations: 0 / 0.7506 GB, free: 116.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009745/2.778, allocations: 4 MB / 0.7545 GB, free: 114.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005276/2.783, allocations: 0.573 MB / 0.755 GB, free: 114.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04175/2.825, allocations: 19.01 MB / 0.7736 GB, free: 97.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009767/2.835, allocations: 4.752 MB / 0.7783 GB, free: 92.26 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003256/2.838, allocations: 423.3 kB / 0.7787 GB, free: 91.85 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/2.838, allocations: 0 / 0.7787 GB, free: 91.85 MB / 410.7 MB Notification: Performance of Templates: time 0.5746/3.413, allocations: 142.9 MB / 0.9182 GB, free: 110.2 MB / 426.7 MB