Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadModel(Modelica): time 1.912/1.912, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.971e-05/2.98e-05, allocations: 4.984 kB / 292.1 MB, free: 8.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0925/0.09255, allocations: 50.41 MB / 342.6 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3966/0.4892, allocations: 104.2 MB / 446.7 MB, free: 6.277 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.4895, allocations: 88.94 kB / 446.8 MB, free: 6.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8115/1.301, allocations: 141.7 MB / 0.5747 GB, free: 93.77 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.301, allocations: 4 kB / 0.5747 GB, free: 93.77 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000516/1.302, allocations: 151.5 kB / 0.5749 GB, free: 93.77 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.02423/1.326, allocations: 7.47 MB / 0.5822 GB, free: 91.06 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/1.326, allocations: 7.594 kB / 0.5822 GB, free: 91.06 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0616/1.388, allocations: 11.73 MB / 0.5936 GB, free: 90.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02978/1.417, allocations: 9.895 MB / 0.6033 GB, free: 85.17 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005825/1.418, allocations: 0.5215 MB / 0.6038 GB, free: 84.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003106/1.421, allocations: 0.7021 MB / 0.6045 GB, free: 84.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04347/1.465, allocations: 17.17 MB / 0.6213 GB, free: 66.71 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004968/1.465, allocations: 99.08 kB / 0.6214 GB, free: 66.61 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002724/1.468, allocations: 329.5 kB / 0.6217 GB, free: 66.32 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002511/1.47, allocations: 1.463 MB / 0.6231 GB, free: 64.86 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03553/1.506, allocations: 14.05 MB / 0.6368 GB, free: 50.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3959/1.902, allocations: 73.1 MB / 0.7082 GB, free: 41.7 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03081/1.933, allocations: 8.699 MB / 0.7167 GB, free: 41.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00771/1.941, allocations: 4.726 MB / 0.7213 GB, free: 40.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03538/1.976, allocations: 17.69 MB / 0.7386 GB, free: 38.02 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.092e-05/1.976, allocations: 74.62 kB / 0.7387 GB, free: 37.96 MB / 442.7 MB Notification: Performance of pre-optimization done (n=281): time 8.174e-06/1.976, allocations: 0 / 0.7387 GB, free: 37.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=374): time 0.2407/2.217, allocations: 57.36 MB / 0.7947 GB, free: 18.38 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/2.217, allocations: 372.6 kB / 0.795 GB, free: 17.93 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01146/2.228, allocations: 5.431 MB / 0.8003 GB, free: 13.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009461/2.229, allocations: 86.64 kB / 0.8004 GB, free: 13.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003458/2.233, allocations: 4.629 MB / 0.8049 GB, free: 8.949 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001963/2.235, allocations: 1.375 MB / 0.8063 GB, free: 7.734 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001253/2.236, allocations: 180 kB / 0.8065 GB, free: 7.559 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000667/2.237, allocations: 0.6852 MB / 0.8071 GB, free: 6.969 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01023/2.247, allocations: 5.411 MB / 0.8124 GB, free: 2.055 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02027/2.267, allocations: 10.53 MB / 0.8227 GB, free: 6.168 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01625/2.284, allocations: 7.391 MB / 0.8299 GB, free: 14.91 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001867/2.284, allocations: 51.95 kB / 0.83 GB, free: 14.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.06012/2.344, allocations: 20.46 MB / 0.8499 GB, free: 10.77 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001622/2.344, allocations: 80 kB / 0.85 GB, free: 10.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002512/2.345, allocations: 172.9 kB / 0.8502 GB, free: 10.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02738/2.372, allocations: 6.513 MB / 0.8565 GB, free: 3.996 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0106/2.383, allocations: 2.051 MB / 0.8585 GB, free: 1.941 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3561/2.739, allocations: 32.33 MB / 0.8901 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01055/2.749, allocations: 0.6949 MB / 0.8908 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002267/2.752, allocations: 0.5118 MB / 0.8913 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.003303/2.755, allocations: 0.7801 MB / 0.8921 GB, free: 131 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001736/2.757, allocations: 0.583 MB / 0.8926 GB, free: 131 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0432/2.8, allocations: 15.39 MB / 0.9077 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001031/2.8, allocations: 52.17 kB / 0.9077 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.565e-05/2.8, allocations: 15.22 kB / 0.9077 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.2e-05/2.8, allocations: 20.95 kB / 0.9077 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07468/2.875, allocations: 30.37 MB / 0.9374 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.437e-05/2.875, allocations: 2.969 kB / 0.9374 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004393/2.879, allocations: 0.5762 MB / 0.938 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02613/2.906, allocations: 6.14 MB / 0.944 GB, free: 115.8 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00101/2.907, allocations: 69.08 kB / 0.944 GB, free: 115.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05741/2.964, allocations: 30.7 MB / 0.974 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.794e-06/2.964, allocations: 7.422 kB / 0.974 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04858/3.013, allocations: 22.99 MB / 0.9965 GB, free: 81.76 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001895/3.015, allocations: 0.6038 MB / 0.9971 GB, free: 81.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002442/3.017, allocations: 60 kB / 0.9971 GB, free: 81.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005812/3.023, allocations: 409.6 kB / 0.9975 GB, free: 80.68 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00165/3.025, allocations: 248.2 kB / 0.9977 GB, free: 80.44 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009102/3.026, allocations: 95.98 kB / 0.9978 GB, free: 80.35 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009452/3.035, allocations: 3.848 MB / 1.002 GB, free: 76.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.166e-06/3.035, allocations: 3.609 kB / 1.002 GB, free: 76.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01244/3.048, allocations: 2.169 MB / 1.004 GB, free: 74.36 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.00167/3.049, allocations: 281.8 kB / 1.004 GB, free: 74.13 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02522/3.075, allocations: 13.44 MB / 1.017 GB, free: 60.98 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/3.075, allocations: 4 kB / 1.017 GB, free: 60.98 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01202/3.087, allocations: 6.205 MB / 1.023 GB, free: 54.74 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005569/3.092, allocations: 0.8419 MB / 1.024 GB, free: 53.94 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03897/3.131, allocations: 17.51 MB / 1.041 GB, free: 36.42 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01172/3.143, allocations: 5.421 MB / 1.046 GB, free: 31.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003066/3.146, allocations: 447.2 kB / 1.047 GB, free: 30.58 MB / 0.4948 GB Notification: Performance of SimCode: time 2.723e-06/3.146, allocations: 0 / 1.047 GB, free: 30.58 MB / 0.4948 GB Notification: Performance of Templates: time 0.8828/4.029, allocations: 195.9 MB / 1.238 GB, free: 125.1 MB / 0.4948 GB