Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.525/2.525, allocations: 270 MB / 282.7 MB, free: 1.895 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.134e-05/4.147e-05, allocations: 8 kB / 347.1 MB, free: 3.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4267/0.4267, allocations: 61.88 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1947/0.6215, allocations: 106.3 MB / 0.5032 GB, free: 164 kB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.6218, allocations: 71.97 kB / 0.5033 GB, free: 92 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7889/1.411, allocations: 112.5 MB / 0.6132 GB, free: 26.73 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.775e-06/1.411, allocations: 0 / 0.6132 GB, free: 26.73 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005541/1.411, allocations: 104 kB / 0.6133 GB, free: 26.63 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02666/1.438, allocations: 6.112 MB / 0.6192 GB, free: 20.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/1.438, allocations: 8.031 kB / 0.6193 GB, free: 20.44 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003824/1.442, allocations: 0.7582 MB / 0.62 GB, free: 19.67 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07246/1.515, allocations: 10.14 MB / 0.6299 GB, free: 9.512 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03221/1.547, allocations: 9.203 MB / 0.6389 GB, free: 240 kB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000548/1.547, allocations: 370.6 kB / 0.6392 GB, free: 15.86 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002519/1.55, allocations: 471.6 kB / 0.6397 GB, free: 15.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04071/1.591, allocations: 10.61 MB / 0.6501 GB, free: 4.203 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000441/1.591, allocations: 63.45 kB / 0.6501 GB, free: 4.141 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001975/1.593, allocations: 207.8 kB / 0.6503 GB, free: 3.938 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002722/1.596, allocations: 0.9957 MB / 0.6513 GB, free: 2.938 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03545/1.631, allocations: 8.818 MB / 0.6599 GB, free: 10.11 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09454/1.726, allocations: 43.96 MB / 0.7028 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04121/1.767, allocations: 7.855 MB / 0.7105 GB, free: 5.055 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01023/1.778, allocations: 4.934 MB / 0.7153 GB, free: 116 kB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.374/2.152, allocations: 1.124 MB / 0.7164 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001058/2.152, allocations: 68.16 kB / 0.7165 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=286): time 6.532e-06/2.152, allocations: 0 / 0.7165 GB, free: 120.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=415): time 0.3379/2.49, allocations: 64.79 MB / 0.7797 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02513/2.515, allocations: 10.9 MB / 0.7904 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008855/2.524, allocations: 3.647 MB / 0.794 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001309/2.525, allocations: 93.7 kB / 0.794 GB, free: 99.96 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002648/2.528, allocations: 2.745 MB / 0.7967 GB, free: 97.78 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00271/2.531, allocations: 1.438 MB / 0.7981 GB, free: 96.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001291/2.532, allocations: 112 kB / 0.7982 GB, free: 96.39 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004247/2.532, allocations: 0.5373 MB / 0.7988 GB, free: 95.91 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01006/2.542, allocations: 4.419 MB / 0.8031 GB, free: 91.92 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01175/2.554, allocations: 6.431 MB / 0.8094 GB, free: 85.14 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/2.567, allocations: 5.416 MB / 0.8146 GB, free: 80.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-05/2.567, allocations: 23.22 kB / 0.8147 GB, free: 80.58 MB / 0.5105 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.06321/2.63, allocations: 18.02 MB / 0.8323 GB, free: 64.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.765e-05/2.63, allocations: 32 kB / 0.8323 GB, free: 64.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.324e-05/2.63, allocations: 68 kB / 0.8324 GB, free: 64.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04205/2.672, allocations: 8.603 MB / 0.8408 GB, free: 56.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008092/2.68, allocations: 1.045 MB / 0.8418 GB, free: 55.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1063/2.787, allocations: 48.46 MB / 0.8891 GB, free: 6.254 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009596/2.796, allocations: 493.4 kB / 0.8896 GB, free: 5.773 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001735/2.798, allocations: 279.9 kB / 0.8898 GB, free: 5.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 57 (fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (531): * Single equations (assignments): 526 * Array equations: 2 * 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 {(12,51.4%) 103,(3,88.9%) 23} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.00191/2.8, allocations: 499 kB / 0.8903 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001669/2.802, allocations: 489 kB / 0.8908 GB, free: 4.527 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06569/2.867, allocations: 17.5 MB / 0.9079 GB, free: 2.98 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.4514/3.319, allocations: 16.01 MB / 0.9235 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.662e-05/3.319, allocations: 29.84 kB / 0.9235 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-05/3.319, allocations: 18.33 kB / 0.9236 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1129/3.432, allocations: 34.56 MB / 0.9573 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.995e-05/3.432, allocations: 7.312 kB / 0.9573 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005719/3.438, allocations: 450.8 kB / 0.9577 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04325/3.481, allocations: 8.035 MB / 0.9656 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00127/3.482, allocations: 75.06 kB / 0.9657 GB, free: 115.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1023/3.585, allocations: 47.54 MB / 1.012 GB, free: 84.99 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02187/3.607, allocations: 9.669 MB / 1.022 GB, free: 76.74 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06741/3.674, allocations: 23.79 MB / 1.045 GB, free: 55.73 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001668/3.676, allocations: 0.5123 MB / 1.045 GB, free: 55.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002157/3.678, allocations: 72 kB / 1.045 GB, free: 55.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006973/3.685, allocations: 364.2 kB / 1.046 GB, free: 54.84 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001979/3.687, allocations: 339.5 kB / 1.046 GB, free: 54.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006145/3.688, allocations: 100 kB / 1.046 GB, free: 54.42 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00578/3.694, allocations: 2.699 MB / 1.049 GB, free: 51.72 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.32e-07/3.694, allocations: 4 kB / 1.049 GB, free: 51.72 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0104/3.704, allocations: 1.967 MB / 1.051 GB, free: 49.75 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],revolute3.phi,revolute2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (226): * Single equations (assignments): 223 * Array equations: 0 * 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 {(12,51.4%) 96,(4,100.0%) 37} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.1251/3.829, allocations: 25.68 MB / 1.076 GB, free: 24.08 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.04638/3.876, allocations: 11.98 MB / 1.087 GB, free: 12.17 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.111e-05/3.876, allocations: 0 / 1.087 GB, free: 12.17 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.03066/3.906, allocations: 6.899 MB / 1.094 GB, free: 5.242 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009436/3.916, allocations: 0.7513 MB / 1.095 GB, free: 4.523 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4497/4.366, allocations: 15.92 MB / 1.11 GB, free: 137 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01048/4.376, allocations: 4.292 MB / 1.115 GB, free: 136.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007053/4.383, allocations: 2.622 MB / 1.117 GB, free: 136.2 MB / 0.5417 GB Notification: Performance of SimCode: time 2.074e-06/4.383, allocations: 0 / 1.117 GB, free: 136.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.445/9.829, allocations: 178.9 MB / 1.292 GB, free: 12.54 MB / 0.5417 GB