Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.99/1.99, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.016e-05/3.031e-05, allocations: 8 kB / 292.7 MB, free: 8.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09074/0.09079, allocations: 50.41 MB / 343.1 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.39/0.4809, allocations: 101.6 MB / 444.7 MB, free: 8.922 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.4812, allocations: 85.33 kB / 444.7 MB, free: 8.879 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7441/1.225, allocations: 128.5 MB / 0.5598 GB, free: 94.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.653e-06/1.225, allocations: 0 / 0.5598 GB, free: 94.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003363/1.226, allocations: 114 kB / 0.5599 GB, free: 94.93 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01969/1.245, allocations: 6.322 MB / 0.5661 GB, free: 92.5 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/1.245, allocations: 7.5 kB / 0.5661 GB, free: 92.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04258/1.288, allocations: 8.316 MB / 0.5742 GB, free: 92.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02116/1.309, allocations: 6.961 MB / 0.581 GB, free: 91.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005248/1.31, allocations: 454.2 kB / 0.5815 GB, free: 91.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002941/1.313, allocations: 0.5848 MB / 0.5821 GB, free: 91.21 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03823/1.351, allocations: 15.53 MB / 0.5972 GB, free: 84.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000311/1.351, allocations: 69.41 kB / 0.5973 GB, free: 84.89 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002557/1.354, allocations: 286.8 kB / 0.5976 GB, free: 84.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002773/1.357, allocations: 1.616 MB / 0.5991 GB, free: 84.44 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03166/1.388, allocations: 13.53 MB / 0.6124 GB, free: 73.91 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08056/1.469, allocations: 64.03 MB / 0.6749 GB, free: 10.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0165/1.486, allocations: 6.363 MB / 0.6811 GB, free: 3.41 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2661/1.752, allocations: 3.46 MB / 0.6845 GB, free: 87.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03137/1.783, allocations: 14.29 MB / 0.6984 GB, free: 83.77 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.373e-05/1.783, allocations: 64.48 kB / 0.6985 GB, free: 83.73 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 8.279e-06/1.783, allocations: 1.062 kB / 0.6985 GB, free: 83.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.1155/1.899, allocations: 29.55 MB / 0.7274 GB, free: 80.28 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.369e-05/1.899, allocations: 222.6 kB / 0.7276 GB, free: 80.05 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009838/1.909, allocations: 4.765 MB / 0.7322 GB, free: 78.43 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006903/1.909, allocations: 73.14 kB / 0.7323 GB, free: 78.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003158/1.913, allocations: 4.435 MB / 0.7366 GB, free: 75.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001571/1.914, allocations: 1.242 MB / 0.7378 GB, free: 74.11 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009119/1.915, allocations: 174.7 kB / 0.738 GB, free: 73.98 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005585/1.916, allocations: 0.6795 MB / 0.7387 GB, free: 73.51 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00846/1.924, allocations: 4.46 MB / 0.743 GB, free: 71.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01135/1.936, allocations: 9.377 MB / 0.7522 GB, free: 63.62 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01175/1.947, allocations: 6.409 MB / 0.7584 GB, free: 61.55 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001359/1.948, allocations: 48.03 kB / 0.7585 GB, free: 61.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.05039/1.998, allocations: 18.04 MB / 0.7761 GB, free: 53.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001264/1.998, allocations: 83.09 kB / 0.7762 GB, free: 53.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001728/1.998, allocations: 180.1 kB / 0.7763 GB, free: 53.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02536/2.024, allocations: 5.629 MB / 0.7818 GB, free: 50.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009122/2.033, allocations: 2.053 MB / 0.7838 GB, free: 48.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0359/2.069, allocations: 23.63 MB / 0.8069 GB, free: 27.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009307/2.078, allocations: 0.5372 MB / 0.8074 GB, free: 27.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00178/2.08, allocations: 0.5073 MB / 0.8079 GB, free: 26.76 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 45 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (1060): * Single equations (assignments): 1052 * 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.002037/2.082, allocations: 0.7558 MB / 0.8087 GB, free: 26.01 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/2.083, allocations: 0.4935 MB / 0.8092 GB, free: 25.51 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03472/2.118, allocations: 12.27 MB / 0.8211 GB, free: 14.22 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.649e-05/2.118, allocations: 57.31 kB / 0.8212 GB, free: 14.17 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.129e-05/2.118, allocations: 8 kB / 0.8212 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-05/2.118, allocations: 11.95 kB / 0.8212 GB, free: 14.15 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06219/2.18, allocations: 23.84 MB / 0.8445 GB, free: 5.836 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.364e-05/2.181, allocations: 4 kB / 0.8445 GB, free: 5.832 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004023/2.185, allocations: 0.5699 MB / 0.8451 GB, free: 5.262 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2995/2.484, allocations: 4.641 MB / 0.8496 GB, free: 89.34 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007989/2.485, allocations: 53.27 kB / 0.8496 GB, free: 89.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03386/2.519, allocations: 18.93 MB / 0.8681 GB, free: 86.68 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.149e-05/2.519, allocations: 7.625 kB / 0.8681 GB, free: 86.68 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04221/2.561, allocations: 17.27 MB / 0.885 GB, free: 82.77 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001543/2.563, allocations: 0.5241 MB / 0.8855 GB, free: 82.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001569/2.564, allocations: 55.09 kB / 0.8856 GB, free: 82.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004346/2.569, allocations: 249.8 kB / 0.8858 GB, free: 82.59 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001139/2.57, allocations: 191.2 kB / 0.886 GB, free: 82.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004164/2.57, allocations: 86.16 kB / 0.8861 GB, free: 82.54 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00756/2.578, allocations: 3.307 MB / 0.8893 GB, free: 81.42 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.174e-06/2.578, allocations: 3.906 kB / 0.8893 GB, free: 81.42 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009953/2.588, allocations: 1.702 MB / 0.891 GB, free: 81.24 MB / 458.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.001006/2.589, allocations: 216.6 kB / 0.8912 GB, free: 81.11 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01873/2.608, allocations: 10.06 MB / 0.901 GB, free: 77.71 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.077e-06/2.608, allocations: 0 / 0.901 GB, free: 77.71 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007262/2.615, allocations: 3.862 MB / 0.9048 GB, free: 76.12 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003922/2.619, allocations: 0.5676 MB / 0.9053 GB, free: 75.87 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0289/2.648, allocations: 13.43 MB / 0.9184 GB, free: 70.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009435/2.657, allocations: 4.743 MB / 0.9231 GB, free: 69.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01064/2.668, allocations: 2.986 MB / 0.926 GB, free: 69.35 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002253/2.67, allocations: 356.1 kB / 0.9263 GB, free: 69.34 MB / 458.7 MB Notification: Performance of SimCode: time 1.648e-06/2.67, allocations: 0 / 0.9263 GB, free: 69.34 MB / 458.7 MB Notification: Performance of Templates: time 0.1617/2.832, allocations: 72.46 MB / 0.9971 GB, free: 10.85 MB / 458.7 MB