Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.057/2.057, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.54e-05/4.549e-05, allocations: 8 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1103, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4548/0.5652, allocations: 91.72 MB / 413.5 MB, free: 14.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003108/0.5656, allocations: 82.47 kB / 413.6 MB, free: 14.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.807/1.373, allocations: 109.2 MB / 0.5106 GB, free: 88.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.727e-06/1.373, allocations: 3.594 kB / 0.5106 GB, free: 88.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007121/1.373, allocations: 107.4 kB / 0.5107 GB, free: 88.09 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1490 * Number of variables: 1490 Notification: Performance of Generate backend data structure: time 0.02943/1.403, allocations: 6.109 MB / 0.5167 GB, free: 85.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.011e-05/1.403, allocations: 10.09 kB / 0.5167 GB, free: 85.98 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004169/1.407, allocations: 0.7529 MB / 0.5174 GB, free: 85.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0736/1.481, allocations: 10.14 MB / 0.5273 GB, free: 85.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04101/1.522, allocations: 9.838 MB / 0.5369 GB, free: 84.63 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006306/1.523, allocations: 363.6 kB / 0.5373 GB, free: 84.59 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003064/1.526, allocations: 465.7 kB / 0.5377 GB, free: 84.58 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05147/1.577, allocations: 10.65 MB / 0.5481 GB, free: 82.82 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006053/1.578, allocations: 59.23 kB / 0.5482 GB, free: 82.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002394/1.58, allocations: 202.2 kB / 0.5484 GB, free: 82.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002521/1.583, allocations: 0.9893 MB / 0.5493 GB, free: 82.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03371/1.617, allocations: 8.931 MB / 0.558 GB, free: 80.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08489/1.702, allocations: 43.94 MB / 0.601 GB, free: 47.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03806/1.74, allocations: 7.896 MB / 0.6087 GB, free: 41.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008614/1.748, allocations: 4.934 MB / 0.6135 GB, free: 37.05 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001821/1.75, allocations: 1.122 MB / 0.6146 GB, free: 35.87 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.528e-05/1.75, allocations: 64.81 kB / 0.6146 GB, free: 35.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.101e-06/1.75, allocations: 0 / 0.6146 GB, free: 35.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=415): time 0.6543/2.405, allocations: 64.98 MB / 0.6781 GB, free: 95.13 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0273/2.432, allocations: 10.91 MB / 0.6888 GB, free: 93.39 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009421/2.441, allocations: 3.693 MB / 0.6924 GB, free: 93.04 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001272/2.443, allocations: 89.08 kB / 0.6924 GB, free: 93.01 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002882/2.446, allocations: 2.744 MB / 0.6951 GB, free: 92 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00264/2.448, allocations: 1.43 MB / 0.6965 GB, free: 91.28 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000907/2.449, allocations: 113.5 kB / 0.6966 GB, free: 91.28 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003552/2.45, allocations: 0.5401 MB / 0.6972 GB, free: 90.96 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0102/2.46, allocations: 4.415 MB / 0.7015 GB, free: 90.13 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01183/2.472, allocations: 6.446 MB / 0.7078 GB, free: 85.87 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/2.484, allocations: 5.406 MB / 0.713 GB, free: 83.92 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-05/2.484, allocations: 20.16 kB / 0.7131 GB, free: 83.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=718) (initialization): time 0.06295/2.547, allocations: 18.18 MB / 0.7308 GB, free: 78.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.303e-05/2.547, allocations: 35.34 kB / 0.7309 GB, free: 78.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.718e-05/2.547, allocations: 69.16 kB / 0.7309 GB, free: 78.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04176/2.589, allocations: 8.604 MB / 0.7393 GB, free: 77.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007668/2.597, allocations: 1.03 MB / 0.7403 GB, free: 77.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1074/2.704, allocations: 48.45 MB / 0.7876 GB, free: 42.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009861/2.714, allocations: 499.8 kB / 0.7881 GB, free: 41.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001764/2.716, allocations: 277.4 kB / 0.7884 GB, free: 41.62 MB / 442.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.00226/2.718, allocations: 496.6 kB / 0.7889 GB, free: 41.15 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00179/2.72, allocations: 485.8 kB / 0.7893 GB, free: 40.67 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06131/2.782, allocations: 17.51 MB / 0.8064 GB, free: 24.21 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05527/2.837, allocations: 16.01 MB / 0.822 GB, free: 8.227 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.361e-05/2.837, allocations: 30.69 kB / 0.8221 GB, free: 8.199 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.713e-05/2.837, allocations: 19.92 kB / 0.8221 GB, free: 8.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4521/3.289, allocations: 34.57 MB / 0.8559 GB, free: 84.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-05/3.289, allocations: 3.875 kB / 0.8559 GB, free: 84.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007442/3.297, allocations: 451.5 kB / 0.8563 GB, free: 84.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06008/3.357, allocations: 8.041 MB / 0.8641 GB, free: 84.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001229/3.358, allocations: 76.52 kB / 0.8642 GB, free: 84.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1316/3.49, allocations: 47.52 MB / 0.9106 GB, free: 65.78 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02267/3.513, allocations: 9.673 MB / 0.9201 GB, free: 58.22 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07015/3.583, allocations: 23.79 MB / 0.9433 GB, free: 38.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005947/3.589, allocations: 1.421 MB / 0.9447 GB, free: 37.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00217/3.591, allocations: 80 kB / 0.9448 GB, free: 36.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00721/3.598, allocations: 356.3 kB / 0.9451 GB, free: 36.73 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00231/3.601, allocations: 337.2 kB / 0.9454 GB, free: 36.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007448/3.601, allocations: 100 kB / 0.9455 GB, free: 36.43 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006658/3.608, allocations: 2.735 MB / 0.9482 GB, free: 34.01 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.92e-07/3.608, allocations: 6.781 kB / 0.9482 GB, free: 34.01 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01049/3.619, allocations: 1.969 MB / 0.9501 GB, free: 32.04 MB / 442.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.07073/3.689, allocations: 25.7 MB / 0.9752 GB, free: 8.023 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03316/3.723, allocations: 12.16 MB / 0.9871 GB, free: 12.04 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/3.723, allocations: 2.219 kB / 0.9871 GB, free: 12.04 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3359/4.059, allocations: 7.009 MB / 0.9939 GB, free: 100.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007934/4.067, allocations: 0.7534 MB / 0.9947 GB, free: 100.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05514/4.122, allocations: 16.02 MB / 1.01 GB, free: 98.02 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01064/4.132, allocations: 4.297 MB / 1.015 GB, free: 97.18 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007002/4.14, allocations: 2.618 MB / 1.017 GB, free: 97.18 MB / 458.7 MB Notification: Performance of SimCode: time 1.633e-06/4.14, allocations: 0 / 1.017 GB, free: 97.18 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.783/9.923, allocations: 179.9 MB / 1.193 GB, free: 97.3 MB / 458.7 MB