Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadModel(Modelica): time 1.882/1.882, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.595e-05/2.615e-05, allocations: 4 kB / 292.7 MB, free: 8.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0881/0.08814, allocations: 50.41 MB / 343.1 MB, free: 5.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3911/0.4793, allocations: 104.1 MB / 447.2 MB, free: 6.438 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.4796, allocations: 90.81 kB / 447.3 MB, free: 6.391 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7695/1.249, allocations: 141.7 MB / 0.5752 GB, free: 93.69 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.341e-06/1.249, allocations: 0 / 0.5752 GB, free: 93.69 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004664/1.25, allocations: 147.6 kB / 0.5753 GB, free: 93.68 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02303/1.273, allocations: 7.472 MB / 0.5826 GB, free: 90.97 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/1.273, allocations: 9.812 kB / 0.5827 GB, free: 90.97 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05934/1.332, allocations: 11.73 MB / 0.5941 GB, free: 90.29 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02825/1.36, allocations: 9.886 MB / 0.6038 GB, free: 85.06 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005321/1.361, allocations: 0.5206 MB / 0.6043 GB, free: 84.85 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00279/1.364, allocations: 0.7155 MB / 0.605 GB, free: 84.62 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04188/1.406, allocations: 17.16 MB / 0.6217 GB, free: 66.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007307/1.406, allocations: 99.08 kB / 0.6218 GB, free: 66.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003609/1.41, allocations: 332.7 kB / 0.6221 GB, free: 66.11 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002669/1.413, allocations: 1.455 MB / 0.6236 GB, free: 64.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03499/1.448, allocations: 14.05 MB / 0.6373 GB, free: 50.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3799/1.828, allocations: 73.11 MB / 0.7087 GB, free: 41.69 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03045/1.858, allocations: 8.704 MB / 0.7172 GB, free: 41.01 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0071/1.865, allocations: 4.727 MB / 0.7218 GB, free: 40.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03342/1.899, allocations: 17.68 MB / 0.7391 GB, free: 38.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.408e-05/1.899, allocations: 67.84 kB / 0.7391 GB, free: 38.04 MB / 442.7 MB Notification: Performance of pre-optimization done (n=281): time 7.343e-06/1.899, allocations: 2.25 kB / 0.7391 GB, free: 38.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=374): time 0.2354/2.134, allocations: 57.37 MB / 0.7951 GB, free: 18.38 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/2.135, allocations: 372.6 kB / 0.7955 GB, free: 17.93 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01115/2.146, allocations: 5.433 MB / 0.8008 GB, free: 13.22 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009059/2.147, allocations: 81.7 kB / 0.8009 GB, free: 13.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003713/2.15, allocations: 4.868 MB / 0.8056 GB, free: 8.793 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001996/2.152, allocations: 1.368 MB / 0.807 GB, free: 7.582 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001181/2.154, allocations: 184.6 kB / 0.8072 GB, free: 7.406 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006489/2.154, allocations: 0.685 MB / 0.8078 GB, free: 6.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009774/2.164, allocations: 5.409 MB / 0.8131 GB, free: 1.902 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01884/2.183, allocations: 10.47 MB / 0.8233 GB, free: 5.82 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01541/2.198, allocations: 7.38 MB / 0.8305 GB, free: 14.57 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000157/2.199, allocations: 48 kB / 0.8306 GB, free: 14.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.06015/2.259, allocations: 20.72 MB / 0.8508 GB, free: 10.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001564/2.259, allocations: 76 kB / 0.8509 GB, free: 10.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000277/2.259, allocations: 176 kB / 0.8511 GB, free: 9.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02796/2.287, allocations: 6.513 MB / 0.8574 GB, free: 3.406 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01033/2.298, allocations: 2.055 MB / 0.8594 GB, free: 1.348 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3453/2.643, allocations: 32.32 MB / 0.891 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01003/2.653, allocations: 0.6999 MB / 0.8917 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002011/2.655, allocations: 0.5144 MB / 0.8922 GB, free: 131.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1023): * Single equations (assignments): 1016 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.002278/2.657, allocations: 0.7613 MB / 0.8929 GB, free: 131 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00157/2.659, allocations: 0.5843 MB / 0.8935 GB, free: 131 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03924/2.698, allocations: 15.39 MB / 0.9085 GB, free: 128.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.991e-05/2.698, allocations: 50.53 kB / 0.9086 GB, free: 128.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-05/2.698, allocations: 17.38 kB / 0.9086 GB, free: 128.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-05/2.699, allocations: 15.05 kB / 0.9086 GB, free: 128.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06846/2.767, allocations: 30.38 MB / 0.9383 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.121e-05/2.767, allocations: 3.219 kB / 0.9383 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004337/2.771, allocations: 0.5754 MB / 0.9388 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0254/2.797, allocations: 6.143 MB / 0.9448 GB, free: 115.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008445/2.798, allocations: 63.44 kB / 0.9449 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05237/2.85, allocations: 30.69 MB / 0.9749 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.99e-06/2.85, allocations: 4 kB / 0.9749 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04662/2.897, allocations: 22.99 MB / 0.9973 GB, free: 81.03 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00183/2.899, allocations: 0.5983 MB / 0.9979 GB, free: 80.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002147/2.901, allocations: 69.14 kB / 0.998 GB, free: 80.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005607/2.907, allocations: 404.1 kB / 0.9984 GB, free: 79.95 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001548/2.908, allocations: 251.6 kB / 0.9986 GB, free: 79.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007362/2.909, allocations: 88.78 kB / 0.9987 GB, free: 79.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0088/2.918, allocations: 3.854 MB / 1.002 GB, free: 75.78 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.26e-06/2.918, allocations: 0 / 1.002 GB, free: 75.78 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01175/2.93, allocations: 2.172 MB / 1.005 GB, free: 73.63 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001458/2.931, allocations: 284.9 kB / 1.005 GB, free: 73.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02428/2.955, allocations: 13.44 MB / 1.018 GB, free: 60.25 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.21e-06/2.955, allocations: 0 / 1.018 GB, free: 60.25 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01173/2.967, allocations: 6.211 MB / 1.024 GB, free: 54 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005477/2.973, allocations: 0.8407 MB / 1.025 GB, free: 53.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03484/3.008, allocations: 16.67 MB / 1.041 GB, free: 36.53 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01174/3.019, allocations: 5.414 MB / 1.046 GB, free: 31.12 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01145/3.031, allocations: 3.04 MB / 1.049 GB, free: 28.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002469/3.033, allocations: 383.4 kB / 1.05 GB, free: 27.89 MB / 0.4948 GB Notification: Performance of SimCode: time 2.177e-06/3.033, allocations: 0 / 1.05 GB, free: 27.89 MB / 0.4948 GB Notification: Performance of Templates: time 0.5026/3.536, allocations: 97.91 MB / 1.145 GB, free: 96.32 MB / 0.4948 GB