Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.634/2.634, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.121e-05/4.134e-05, allocations: 4 kB / 305 MB, free: 5.578 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4144/0.4144, allocations: 54.86 MB / 359.9 MB, free: 2.688 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1881/0.6026, allocations: 98.54 MB / 458.4 MB, free: 14.42 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/0.603, allocations: 72.91 kB / 458.5 MB, free: 14.35 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8007/1.404, allocations: 109.4 MB / 0.5545 GB, free: 99.32 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.404, allocations: 4 kB / 0.5545 GB, free: 99.32 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005759/1.404, allocations: 104.4 kB / 0.5546 GB, free: 99.32 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1493 * Number of variables: 1493 Notification: Performance of Generate backend data structure: time 0.02775/1.432, allocations: 6.11 MB / 0.5606 GB, free: 97.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/1.432, allocations: 6.656 kB / 0.5606 GB, free: 97.18 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004153/1.436, allocations: 0.7557 MB / 0.5613 GB, free: 97.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07262/1.509, allocations: 10.14 MB / 0.5712 GB, free: 96.72 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03523/1.544, allocations: 9.83 MB / 0.5808 GB, free: 94.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005709/1.545, allocations: 370.5 kB / 0.5812 GB, free: 94.19 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002774/1.548, allocations: 470.8 kB / 0.5816 GB, free: 94.05 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04066/1.588, allocations: 10.6 MB / 0.592 GB, free: 89.54 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004757/1.589, allocations: 55.3 kB / 0.592 GB, free: 89.53 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002376/1.591, allocations: 202.9 kB / 0.5922 GB, free: 89.41 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002542/1.594, allocations: 0.9977 MB / 0.5932 GB, free: 89.23 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03377/1.628, allocations: 8.808 MB / 0.6018 GB, free: 84.46 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08186/1.71, allocations: 43.98 MB / 0.6448 GB, free: 39.82 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0386/1.748, allocations: 7.858 MB / 0.6524 GB, free: 31.95 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009026/1.757, allocations: 4.927 MB / 0.6573 GB, free: 27.02 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00193/1.759, allocations: 1.122 MB / 0.6583 GB, free: 25.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.348e-05/1.76, allocations: 72.73 kB / 0.6584 GB, free: 25.67 MB / 458.7 MB Notification: Performance of pre-optimization done (n=286): time 6.132e-06/1.76, allocations: 0 / 0.6584 GB, free: 25.67 MB / 458.7 MB Notification: Performance of matching and sorting (n=415): time 0.8251/2.585, allocations: 64.96 MB / 0.7219 GB, free: 103.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03919/2.624, allocations: 10.91 MB / 0.7325 GB, free: 99.09 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01494/2.639, allocations: 3.681 MB / 0.7361 GB, free: 97.82 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001753/2.641, allocations: 91.62 kB / 0.7362 GB, free: 97.74 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00408/2.645, allocations: 2.751 MB / 0.7389 GB, free: 95.84 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003799/2.649, allocations: 1.44 MB / 0.7403 GB, free: 94.77 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002131/2.651, allocations: 115.6 kB / 0.7404 GB, free: 94.68 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008322/2.652, allocations: 0.5345 MB / 0.7409 GB, free: 94.27 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01247/2.664, allocations: 4.418 MB / 0.7452 GB, free: 92.58 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01214/2.677, allocations: 6.405 MB / 0.7515 GB, free: 88.33 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01302/2.69, allocations: 5.404 MB / 0.7568 GB, free: 86.39 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.926e-05/2.69, allocations: 19.72 kB / 0.7568 GB, free: 86.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=718) (initialization): time 0.06538/2.755, allocations: 18.01 MB / 0.7744 GB, free: 81.36 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.54e-05/2.755, allocations: 34.22 kB / 0.7744 GB, free: 81.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.915e-05/2.755, allocations: 63.94 kB / 0.7745 GB, free: 81.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04211/2.798, allocations: 8.604 MB / 0.7829 GB, free: 79.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007887/2.806, allocations: 1.028 MB / 0.7839 GB, free: 78.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1097/2.915, allocations: 48.47 MB / 0.8312 GB, free: 35.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01013/2.925, allocations: 487.3 kB / 0.8317 GB, free: 34.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001853/2.927, allocations: 281.3 kB / 0.8319 GB, free: 34.59 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 54 (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.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 (528): * Single equations (assignments): 523 * 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.003193/2.931, allocations: 494.7 kB / 0.8324 GB, free: 34.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002274/2.933, allocations: 485.8 kB / 0.8329 GB, free: 33.62 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06285/2.996, allocations: 17.5 MB / 0.85 GB, free: 16.14 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05749/3.053, allocations: 16.01 MB / 0.8656 GB, free: 128 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.379e-05/3.053, allocations: 28 kB / 0.8656 GB, free: 100 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001027/3.054, allocations: 19.92 kB / 0.8656 GB, free: 80 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4545/3.508, allocations: 34.57 MB / 0.8994 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.499e-05/3.508, allocations: 8.656 kB / 0.8994 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004447/3.513, allocations: 448.6 kB / 0.8998 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04045/3.553, allocations: 8.035 MB / 0.9077 GB, free: 107.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001386/3.555, allocations: 81.42 kB / 0.9078 GB, free: 107.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1358/3.69, allocations: 47.53 MB / 0.9542 GB, free: 89.38 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03115/3.722, allocations: 9.676 MB / 0.9636 GB, free: 84.68 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07145/3.793, allocations: 23.78 MB / 0.9869 GB, free: 64.85 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005848/3.799, allocations: 1.421 MB / 0.9882 GB, free: 63.55 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002728/3.802, allocations: 76 kB / 0.9883 GB, free: 63.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007791/3.81, allocations: 359.6 kB / 0.9887 GB, free: 63.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002639/3.812, allocations: 338.5 kB / 0.989 GB, free: 63.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001121/3.814, allocations: 107.2 kB / 0.9891 GB, free: 62.96 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007652/3.821, allocations: 2.73 MB / 0.9918 GB, free: 60.54 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.21e-07/3.821, allocations: 1.422 kB / 0.9918 GB, free: 60.54 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01188/3.833, allocations: 1.974 MB / 0.9937 GB, free: 58.57 MB / 490.7 MB 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.07302/3.906, allocations: 25.69 MB / 1.019 GB, free: 34.97 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03146/3.938, allocations: 11.96 MB / 1.03 GB, free: 23.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/3.938, allocations: 6.281 kB / 1.03 GB, free: 23.07 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0214/3.959, allocations: 6.893 MB / 1.037 GB, free: 16.15 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007939/3.967, allocations: 0.7503 MB / 1.038 GB, free: 15.44 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09749/4.065, allocations: 15.98 MB / 1.054 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01563/4.08, allocations: 4.301 MB / 1.058 GB, free: 11.13 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03387/4.114, allocations: 2.62 MB / 1.06 GB, free: 8.508 MB / 0.4948 GB Notification: Performance of SimCode: time 2.094e-06/4.114, allocations: 0 / 1.06 GB, free: 8.508 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.817/9.932, allocations: 179.2 MB / 1.235 GB, free: 3.93 MB / 0.4948 GB