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.959/1.959, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.253e-05/2.273e-05, allocations: 4 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2533, allocations: 44.49 MB / 294.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1504/0.4037, allocations: 97.04 MB / 391.2 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.4041, allocations: 91.88 kB / 391.2 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7293/1.133, allocations: 107.9 MB / 499.2 MB, free: 50.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.939e-06/1.133, allocations: 4 kB / 499.2 MB, free: 50.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002982/1.134, allocations: 107.4 kB / 499.3 MB, free: 50.86 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: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.01385/1.148, allocations: 4.905 MB / 0.4924 GB, free: 45.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/1.148, allocations: 8.031 kB / 0.4924 GB, free: 45.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03367/1.181, allocations: 6.904 MB / 0.4991 GB, free: 38.97 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0184/1.2, allocations: 6.746 MB / 0.5057 GB, free: 32.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002687/1.2, allocations: 168 kB / 0.5059 GB, free: 32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00194/1.202, allocations: 311.9 kB / 0.5062 GB, free: 31.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01515/1.217, allocations: 7.486 MB / 0.5135 GB, free: 24.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02198/1.239, allocations: 10.62 MB / 0.5238 GB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002472/1.24, allocations: 67.36 kB / 0.5239 GB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001275/1.241, allocations: 28 kB / 0.5239 GB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001571/1.242, allocations: 1.051 MB / 0.525 GB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3282/1.571, allocations: 48.35 MB / 0.5722 GB, free: 61.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005187/1.576, allocations: 3.154 MB / 0.5753 GB, free: 61.31 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003317/1.579, allocations: 1.795 MB / 0.577 GB, free: 61.28 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001334/1.581, allocations: 1.205 MB / 0.5782 GB, free: 60.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.253e-05/1.581, allocations: 54.28 kB / 0.5782 GB, free: 60.21 MB / 394.7 MB Notification: Performance of pre-optimization done (n=185): time 6.08e-06/1.581, allocations: 3.219 kB / 0.5783 GB, free: 60.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=233): time 0.05372/1.634, allocations: 16.15 MB / 0.594 GB, free: 57.56 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.375e-05/1.635, allocations: 201.7 kB / 0.5942 GB, free: 57.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006923/1.642, allocations: 3.458 MB / 0.5976 GB, free: 56.96 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003727/1.642, allocations: 25.7 kB / 0.5976 GB, free: 56.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002448/1.644, allocations: 3.517 MB / 0.601 GB, free: 54.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009761/1.645, allocations: 0.8422 MB / 0.6019 GB, free: 54.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000515/1.646, allocations: 0 / 0.6019 GB, free: 54.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000426/1.646, allocations: 0.5889 MB / 0.6024 GB, free: 54.11 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003798/1.65, allocations: 2.047 MB / 0.6044 GB, free: 54.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00591/1.656, allocations: 5.895 MB / 0.6102 GB, free: 49.11 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006229/1.662, allocations: 3.474 MB / 0.6136 GB, free: 48.84 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001226/1.663, allocations: 42.62 kB / 0.6136 GB, free: 48.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02044/1.683, allocations: 7.867 MB / 0.6213 GB, free: 46.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001069/1.683, allocations: 64.84 kB / 0.6214 GB, free: 46.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001461/1.683, allocations: 135.7 kB / 0.6215 GB, free: 46.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004009/1.687, allocations: 1.028 MB / 0.6225 GB, free: 46.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005717/1.693, allocations: 1.48 MB / 0.624 GB, free: 46.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/1.704, allocations: 6.512 MB / 0.6303 GB, free: 42.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006203/1.71, allocations: 215.8 kB / 0.6305 GB, free: 42.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001265/1.711, allocations: 394.6 kB / 0.6309 GB, free: 42.72 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * 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 (801): * Single equations (assignments): 797 * 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.001138/1.713, allocations: 455.6 kB / 0.6313 GB, free: 42.36 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008295/1.713, allocations: 385.6 kB / 0.6317 GB, free: 42.15 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008051/1.722, allocations: 3.431 MB / 0.6351 GB, free: 40.22 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.252e-05/1.722, allocations: 28 kB / 0.6351 GB, free: 40.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.515e-05/1.722, allocations: 4 kB / 0.6351 GB, free: 40.19 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.125e-05/1.722, allocations: 17.55 kB / 0.6351 GB, free: 40.19 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02167/1.743, allocations: 8.94 MB / 0.6438 GB, free: 32.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-05/1.743, allocations: 8 kB / 0.6438 GB, free: 32.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002095/1.746, allocations: 367.9 kB / 0.6442 GB, free: 32.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003513/1.749, allocations: 0.7791 MB / 0.6449 GB, free: 32.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003635/1.75, allocations: 15.94 kB / 0.645 GB, free: 32.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008711/1.758, allocations: 5.242 MB / 0.6501 GB, free: 27.36 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.155e-05/1.758, allocations: 8 kB / 0.6501 GB, free: 27.35 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0121/1.77, allocations: 6.892 MB / 0.6568 GB, free: 21.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002027/1.772, allocations: 0.6992 MB / 0.6575 GB, free: 20.35 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008425/1.773, allocations: 11.33 kB / 0.6575 GB, free: 20.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002355/1.776, allocations: 66.48 kB / 0.6576 GB, free: 20.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004263/1.776, allocations: 155.5 kB / 0.6577 GB, free: 20.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002139/1.776, allocations: 68.02 kB / 0.6578 GB, free: 20.14 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004639/1.781, allocations: 2.336 MB / 0.6601 GB, free: 18.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.155e-06/1.781, allocations: 0 / 0.6601 GB, free: 18.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007414/1.789, allocations: 1.012 MB / 0.6611 GB, free: 17.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (185): * Single equations (assignments): 181 * 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.0007412/1.789, allocations: 196.3 kB / 0.6612 GB, free: 16.92 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009075/1.798, allocations: 5.077 MB / 0.6662 GB, free: 12.29 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.672e-06/1.798, allocations: 0.5 kB / 0.6662 GB, free: 12.29 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002964/1.801, allocations: 1.725 MB / 0.6679 GB, free: 10.71 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002978/1.804, allocations: 443.1 kB / 0.6683 GB, free: 10.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02185/1.826, allocations: 9.523 MB / 0.6776 GB, free: 1.785 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009367/1.836, allocations: 3.988 MB / 0.6815 GB, free: 14.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001473/1.837, allocations: 311.2 kB / 0.6818 GB, free: 14.49 MB / 410.7 MB Notification: Performance of SimCode: time 1.707e-06/1.837, allocations: 0 / 0.6818 GB, free: 14.49 MB / 410.7 MB Notification: Performance of Templates: time 0.3857/2.223, allocations: 84.65 MB / 0.7645 GB, free: 114.4 MB / 442.7 MB