Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 1.904/1.904, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.456e-05/4.476e-05, allocations: 4 kB / 292.1 MB, free: 8.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1076, allocations: 50.42 MB / 342.6 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3881/0.4957, allocations: 96.06 MB / 438.6 MB, free: 14.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.496, allocations: 85.83 kB / 438.7 MB, free: 14.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7711/1.267, allocations: 124.8 MB / 0.5503 GB, free: 92.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.175e-06/1.267, allocations: 3.125 kB / 0.5503 GB, free: 92.88 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003653/1.268, allocations: 120.6 kB / 0.5504 GB, free: 92.88 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02141/1.289, allocations: 6.488 MB / 0.5568 GB, free: 90.51 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/1.289, allocations: 11.28 kB / 0.5568 GB, free: 90.51 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04849/1.337, allocations: 9.427 MB / 0.566 GB, free: 90.09 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02344/1.361, allocations: 8.097 MB / 0.5739 GB, free: 89.19 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005355/1.362, allocations: 437.6 kB / 0.5743 GB, free: 89.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002756/1.364, allocations: 0.575 MB / 0.5749 GB, free: 89.17 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03793/1.402, allocations: 14.65 MB / 0.5892 GB, free: 84.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005593/1.403, allocations: 88.34 kB / 0.5893 GB, free: 84.56 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002952/1.406, allocations: 274.1 kB / 0.5895 GB, free: 84.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002632/1.409, allocations: 1.442 MB / 0.5909 GB, free: 84.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03318/1.442, allocations: 12.62 MB / 0.6033 GB, free: 79.49 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1274/1.569, allocations: 64.64 MB / 0.6664 GB, free: 17.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02411/1.593, allocations: 7.79 MB / 0.674 GB, free: 9.258 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007545/1.601, allocations: 5.162 MB / 0.679 GB, free: 4.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02888/1.63, allocations: 12.92 MB / 0.6917 GB, free: 7.09 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.086e-05/1.63, allocations: 80.69 kB / 0.6917 GB, free: 7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=340): time 8.387e-06/1.63, allocations: 0 / 0.6917 GB, free: 7 MB / 458.7 MB Notification: Performance of matching and sorting (n=604): time 0.5957/2.226, allocations: 79.58 MB / 0.7694 GB, free: 92.34 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/2.226, allocations: 266.2 kB / 0.7697 GB, free: 92.08 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01024/2.236, allocations: 4.679 MB / 0.7743 GB, free: 90.49 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001779/2.238, allocations: 122.3 kB / 0.7744 GB, free: 90.38 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003024/2.241, allocations: 3.796 MB / 0.7781 GB, free: 87.52 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003392/2.245, allocations: 2.107 MB / 0.7802 GB, free: 85.64 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002148/2.247, allocations: 192.1 kB / 0.7803 GB, free: 85.46 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007393/2.248, allocations: 0.7171 MB / 0.781 GB, free: 84.84 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01551/2.263, allocations: 8.558 MB / 0.7894 GB, free: 77.08 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.018/2.281, allocations: 12.6 MB / 0.8017 GB, free: 63.61 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01877/2.3, allocations: 10.51 MB / 0.812 GB, free: 53.88 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001156/2.3, allocations: 40 kB / 0.812 GB, free: 53.84 MB / 458.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.1111/2.411, allocations: 39.5 MB / 0.8506 GB, free: 14.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001263/2.411, allocations: 64 kB / 0.8506 GB, free: 14.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001834/2.412, allocations: 140 kB / 0.8508 GB, free: 14.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3733/2.785, allocations: 21.5 MB / 0.8718 GB, free: 84.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007108/2.792, allocations: 1.443 MB / 0.8732 GB, free: 84.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2918/3.084, allocations: 144.4 MB / 1.014 GB, free: 6.637 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01293/3.097, allocations: 0.722 MB / 1.015 GB, free: 6.133 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002855/3.1, allocations: 0.5297 MB / 1.015 GB, free: 5.664 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (775): * Single equations (assignments): 768 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.00417/3.104, allocations: 0.7388 MB / 1.016 GB, free: 5.156 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002193/3.106, allocations: 0.5892 MB / 1.017 GB, free: 4.574 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3951/3.501, allocations: 36.11 MB / 1.052 GB, free: 97.82 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.581e-05/3.502, allocations: 61.58 kB / 1.052 GB, free: 97.82 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001398/3.502, allocations: 66.56 kB / 1.052 GB, free: 97.82 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001079/3.502, allocations: 33.91 kB / 1.052 GB, free: 97.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1481/3.65, allocations: 57.01 MB / 1.108 GB, free: 87.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.181e-05/3.65, allocations: 0 / 1.108 GB, free: 87.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001942/3.652, allocations: 269.8 kB / 1.108 GB, free: 87.44 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08071/3.733, allocations: 20.73 MB / 1.128 GB, free: 77.83 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001828/3.735, allocations: 92.7 kB / 1.128 GB, free: 77.74 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5539/4.289, allocations: 132.2 MB / 1.258 GB, free: 84.68 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.106e-06/4.289, allocations: 3.312 kB / 1.258 GB, free: 84.68 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1264/4.415, allocations: 48.54 MB / 1.305 GB, free: 63.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001831/4.417, allocations: 0.6124 MB / 1.306 GB, free: 63.19 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003083/4.42, allocations: 96 kB / 1.306 GB, free: 63.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008699/4.429, allocations: 0.4906 MB / 1.306 GB, free: 62.81 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004146/4.433, allocations: 0.5131 MB / 1.307 GB, free: 62.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001698/4.435, allocations: 144.5 kB / 1.307 GB, free: 62.36 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007679/4.442, allocations: 3.332 MB / 1.31 GB, free: 59.44 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.238e-06/4.442, allocations: 0 / 1.31 GB, free: 59.44 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01716/4.46, allocations: 3.436 MB / 1.313 GB, free: 56.01 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.002069/4.462, allocations: 246.4 kB / 1.314 GB, free: 55.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04907/4.511, allocations: 23.77 MB / 1.337 GB, free: 34.74 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.882e-06/4.511, allocations: 2 kB / 1.337 GB, free: 34.74 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02981/4.541, allocations: 13.36 MB / 1.35 GB, free: 22.82 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005712/4.546, allocations: 0.7059 MB / 1.351 GB, free: 22.23 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04787/4.594, allocations: 21.75 MB / 1.372 GB, free: 1.301 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2966/4.891, allocations: 5.303 MB / 1.377 GB, free: 99.62 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001668/4.893, allocations: 350.1 kB / 1.377 GB, free: 99.61 MB / 490.7 MB Notification: Performance of SimCode: time 1.718e-06/4.893, allocations: 0 / 1.377 GB, free: 99.61 MB / 490.7 MB Notification: Performance of Templates: time 0.6257/5.519, allocations: 226.2 MB / 1.598 GB, free: 111.7 MB / 0.4948 GB