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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.865/1.865, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.79e-05/2.774e-05, allocations: 4 kB / 255.4 MB, free: 2.699 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08363/0.08368, allocations: 44.5 MB / 299.9 MB, free: 6.133 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3799/0.4636, allocations: 97.7 MB / 397.6 MB, free: 18.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.4639, allocations: 87.91 kB / 397.7 MB, free: 18.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4098/0.8738, allocations: 110.4 MB / 0.4962 GB, free: 11.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.144e-06/0.8738, allocations: 4 kB / 0.4962 GB, free: 11.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003477/0.8742, allocations: 100 kB / 0.4963 GB, free: 11.76 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.01777/0.892, allocations: 4.917 MB / 0.5011 GB, free: 6.773 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.892, allocations: 8.031 kB / 0.5011 GB, free: 6.766 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.357/1.249, allocations: 6.899 MB / 0.5078 GB, free: 67.15 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02137/1.27, allocations: 6.746 MB / 0.5144 GB, free: 66.8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004914/1.271, allocations: 387.2 kB / 0.5148 GB, free: 66.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002201/1.273, allocations: 0.5177 MB / 0.5153 GB, free: 66.78 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03265/1.306, allocations: 12.48 MB / 0.5275 GB, free: 64.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002405/1.306, allocations: 64.56 kB / 0.5275 GB, free: 64.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001311/1.307, allocations: 242.7 kB / 0.5277 GB, free: 64.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001687/1.309, allocations: 1.048 MB / 0.5288 GB, free: 64.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02726/1.336, allocations: 10.19 MB / 0.5387 GB, free: 64.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0646/1.401, allocations: 50.1 MB / 0.5876 GB, free: 30.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01578/1.417, allocations: 4.752 MB / 0.5923 GB, free: 28.92 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003257/1.42, allocations: 1.875 MB / 0.5941 GB, free: 28.12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01393/1.434, allocations: 7.046 MB / 0.601 GB, free: 24.21 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.56e-05/1.434, allocations: 51.19 kB / 0.601 GB, free: 24.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=179): time 6.202e-06/1.434, allocations: 0 / 0.601 GB, free: 24.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=224): time 0.07868/1.513, allocations: 17.09 MB / 0.6177 GB, free: 16.46 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.436e-05/1.513, allocations: 201.9 kB / 0.6179 GB, free: 16.22 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007075/1.52, allocations: 3.874 MB / 0.6217 GB, free: 12.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003708/1.521, allocations: 57.7 kB / 0.6218 GB, free: 12.71 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002323/1.523, allocations: 3.563 MB / 0.6252 GB, free: 9.512 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009002/1.524, allocations: 0.8344 MB / 0.6261 GB, free: 8.777 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005348/1.524, allocations: 132 kB / 0.6262 GB, free: 8.648 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003871/1.525, allocations: 0.5681 MB / 0.6267 GB, free: 8.148 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004177/1.529, allocations: 2.104 MB / 0.6288 GB, free: 6.238 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006459/1.535, allocations: 5.812 MB / 0.6345 GB, free: 14.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007537/1.543, allocations: 3.498 MB / 0.6379 GB, free: 11.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001062/1.543, allocations: 43.94 kB / 0.6379 GB, free: 11.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02316/1.566, allocations: 8.297 MB / 0.646 GB, free: 4.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001188/1.567, allocations: 60 kB / 0.6461 GB, free: 4.621 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00019/1.567, allocations: 132 kB / 0.6462 GB, free: 4.492 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004368/1.571, allocations: 1.025 MB / 0.6472 GB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006517/1.578, allocations: 1.421 MB / 0.6486 GB, free: 2.465 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01432/1.592, allocations: 6.885 MB / 0.6553 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006352/1.598, allocations: 330.4 kB / 0.6556 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001402/1.6, allocations: 379.8 kB / 0.656 GB, free: 11.72 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.001638/1.602, allocations: 0.5901 MB / 0.6566 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001033/1.603, allocations: 410.7 kB / 0.657 GB, free: 10.72 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01015/1.613, allocations: 3.6 MB / 0.6605 GB, free: 7.781 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-05/1.613, allocations: 31.89 kB / 0.6605 GB, free: 7.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.957e-05/1.613, allocations: 8 kB / 0.6605 GB, free: 7.742 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.919e-05/1.613, allocations: 10.27 kB / 0.6605 GB, free: 7.742 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2675/1.881, allocations: 9.831 MB / 0.6701 GB, free: 86.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.207e-05/1.881, allocations: 10.38 kB / 0.6701 GB, free: 86.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002372/1.883, allocations: 350.3 kB / 0.6705 GB, free: 86.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004159/1.887, allocations: 0.7979 MB / 0.6713 GB, free: 86.74 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004076/1.888, allocations: 50.11 kB / 0.6713 GB, free: 86.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/1.899, allocations: 5.576 MB / 0.6768 GB, free: 85.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.792e-06/1.899, allocations: 6.844 kB / 0.6768 GB, free: 85.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01415/1.913, allocations: 6.942 MB / 0.6835 GB, free: 83.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002234/1.915, allocations: 0.7108 MB / 0.6842 GB, free: 83.89 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001059/1.916, allocations: 40.25 kB / 0.6843 GB, free: 83.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002749/1.919, allocations: 98.45 kB / 0.6844 GB, free: 83.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005262/1.92, allocations: 142.7 kB / 0.6845 GB, free: 83.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002424/1.92, allocations: 66.95 kB / 0.6846 GB, free: 83.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006153/1.926, allocations: 2.723 MB / 0.6872 GB, free: 83.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.392e-06/1.926, allocations: 3.75 kB / 0.6872 GB, free: 83.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007385/1.933, allocations: 1.175 MB / 0.6884 GB, free: 83.68 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.0007979/1.934, allocations: 217.5 kB / 0.6886 GB, free: 83.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01022/1.945, allocations: 5.113 MB / 0.6936 GB, free: 83.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/1.945, allocations: 2.312 kB / 0.6936 GB, free: 83.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003294/1.948, allocations: 1.72 MB / 0.6953 GB, free: 83.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003253/1.951, allocations: 0.5151 MB / 0.6958 GB, free: 83.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.021/1.972, allocations: 8.959 MB / 0.7045 GB, free: 81.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008112/1.98, allocations: 3.969 MB / 0.7084 GB, free: 80.59 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.007284/1.988, allocations: 1.944 MB / 0.7103 GB, free: 80.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001408/1.989, allocations: 268.9 kB / 0.7105 GB, free: 80.54 MB / 426.7 MB Notification: Performance of SimCode: time 2.064e-06/1.989, allocations: 0 / 0.7105 GB, free: 80.54 MB / 426.7 MB Notification: Performance of Templates: time 0.1146/2.104, allocations: 40.73 MB / 0.7503 GB, free: 77.02 MB / 426.7 MB