Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.029/2.029, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.976e-05/3.999e-05, allocations: 6.031 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1085, allocations: 50.42 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4578/0.5663, allocations: 96.05 MB / 438.7 MB, free: 14.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003057/0.5667, allocations: 88.75 kB / 438.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8568/1.423, allocations: 124.9 MB / 0.5504 GB, free: 92.76 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.924e-06/1.424, allocations: 0 / 0.5504 GB, free: 92.76 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004317/1.424, allocations: 122.1 kB / 0.5506 GB, free: 92.76 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.02751/1.451, allocations: 6.499 MB / 0.5569 GB, free: 90.38 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/1.452, allocations: 7.312 kB / 0.5569 GB, free: 90.38 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004826/1.456, allocations: 1.197 MB / 0.5581 GB, free: 90.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06649/1.523, allocations: 9.43 MB / 0.5673 GB, free: 89.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02805/1.551, allocations: 8.102 MB / 0.5752 GB, free: 88.98 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004247/1.551, allocations: 433 kB / 0.5756 GB, free: 88.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00306/1.555, allocations: 0.5831 MB / 0.5762 GB, free: 88.96 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.043/1.598, allocations: 14.65 MB / 0.5905 GB, free: 84.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004111/1.598, allocations: 88.22 kB / 0.5906 GB, free: 84 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00226/1.6, allocations: 279.6 kB / 0.5908 GB, free: 83.85 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003096/1.603, allocations: 1.447 MB / 0.5922 GB, free: 83.6 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03856/1.642, allocations: 12.6 MB / 0.6046 GB, free: 78.41 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1016/1.744, allocations: 64.67 MB / 0.6677 GB, free: 15.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03152/1.775, allocations: 7.777 MB / 0.6753 GB, free: 8.039 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009118/1.784, allocations: 5.16 MB / 0.6803 GB, free: 2.871 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03363/1.818, allocations: 12.94 MB / 0.693 GB, free: 5.859 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.258e-05/1.818, allocations: 68.75 kB / 0.693 GB, free: 5.781 MB / 458.7 MB Notification: Performance of pre-optimization done (n=340): time 7.194e-06/1.818, allocations: 0 / 0.693 GB, free: 5.781 MB / 458.7 MB Notification: Performance of matching and sorting (n=604): time 0.749/2.567, allocations: 79.59 MB / 0.7708 GB, free: 92.56 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/2.567, allocations: 270.3 kB / 0.771 GB, free: 92.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01069/2.578, allocations: 4.682 MB / 0.7756 GB, free: 90.1 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002125/2.58, allocations: 118.3 kB / 0.7757 GB, free: 89.98 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003165/2.583, allocations: 3.798 MB / 0.7794 GB, free: 86.79 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003772/2.587, allocations: 2.113 MB / 0.7815 GB, free: 84.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001769/2.589, allocations: 192 kB / 0.7817 GB, free: 84.71 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005269/2.59, allocations: 0.7058 MB / 0.7824 GB, free: 84.11 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01815/2.608, allocations: 8.566 MB / 0.7907 GB, free: 76.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02152/2.629, allocations: 12.6 MB / 0.803 GB, free: 62.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02194/2.651, allocations: 10.52 MB / 0.8133 GB, free: 52.75 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.275e-05/2.651, allocations: 40 kB / 0.8133 GB, free: 52.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.1805/2.832, allocations: 39.5 MB / 0.8519 GB, free: 13.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001087/2.832, allocations: 64.94 kB / 0.852 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001782/2.832, allocations: 136 kB / 0.8521 GB, free: 13.01 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4655/3.298, allocations: 21.51 MB / 0.8731 GB, free: 85.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009236/3.307, allocations: 1.435 MB / 0.8745 GB, free: 85.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3814/3.689, allocations: 144.4 MB / 1.016 GB, free: 5.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0183/3.707, allocations: 0.7225 MB / 1.016 GB, free: 5.051 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003507/3.711, allocations: 0.536 MB / 1.017 GB, free: 4.52 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.005459/3.716, allocations: 0.7298 MB / 1.017 GB, free: 4.004 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003104/3.719, allocations: 0.5946 MB / 1.018 GB, free: 3.441 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4947/4.214, allocations: 36.11 MB / 1.053 GB, free: 97.97 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001016/4.214, allocations: 61.16 kB / 1.053 GB, free: 97.97 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002027/4.214, allocations: 66.28 kB / 1.053 GB, free: 97.97 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001448/4.214, allocations: 30.19 kB / 1.053 GB, free: 97.97 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.204/4.418, allocations: 57.01 MB / 1.109 GB, free: 87.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001017/4.419, allocations: 0 / 1.109 GB, free: 87.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002765/4.421, allocations: 279.3 kB / 1.109 GB, free: 87.19 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.107/4.528, allocations: 20.71 MB / 1.13 GB, free: 76.63 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002153/4.531, allocations: 103.7 kB / 1.13 GB, free: 76.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.69/5.221, allocations: 132.2 MB / 1.259 GB, free: 84.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/5.221, allocations: 0.9375 kB / 1.259 GB, free: 84.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2642/5.485, allocations: 48.54 MB / 1.306 GB, free: 62.58 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00276/5.488, allocations: 0.6158 MB / 1.307 GB, free: 61.96 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004944/5.493, allocations: 92.62 kB / 1.307 GB, free: 61.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01317/5.506, allocations: 0.5014 MB / 1.307 GB, free: 61.58 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004761/5.511, allocations: 0.5044 MB / 1.308 GB, free: 61.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001748/5.513, allocations: 143.7 kB / 1.308 GB, free: 61.14 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008158/5.521, allocations: 3.329 MB / 1.311 GB, free: 58.21 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.282e-06/5.521, allocations: 6.375 kB / 1.311 GB, free: 58.21 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01904/5.54, allocations: 3.433 MB / 1.315 GB, free: 54.79 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.1729/5.713, allocations: 49.2 MB / 1.363 GB, free: 10.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.4268/6.14, allocations: 23.77 MB / 1.386 GB, free: 107.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/6.14, allocations: 0 / 1.386 GB, free: 107.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04277/6.183, allocations: 13.36 MB / 1.399 GB, free: 106.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007598/6.19, allocations: 0.7086 MB / 1.4 GB, free: 106.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0768/6.267, allocations: 23.98 MB / 1.423 GB, free: 103.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01275/6.28, allocations: 5.311 MB / 1.428 GB, free: 102.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007134/6.287, allocations: 3.089 MB / 1.431 GB, free: 99.93 MB / 490.7 MB Notification: Performance of SimCode: time 2.425e-06/6.287, allocations: 3.344 kB / 1.431 GB, free: 99.93 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.259/13.55, allocations: 267.3 MB / 1.692 GB, free: 17.53 MB / 490.7 MB