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.142/2.142, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.523e-05/4.533e-05, allocations: 4 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.111, allocations: 48.69 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4659/0.577, allocations: 91.73 MB / 413.6 MB, free: 14.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/0.5774, allocations: 71.97 kB / 413.7 MB, free: 14.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7539/1.331, allocations: 109.2 MB / 0.5106 GB, free: 88.4 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.146e-06/1.331, allocations: 0 / 0.5106 GB, free: 88.4 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006279/1.332, allocations: 110.3 kB / 0.5107 GB, free: 88.4 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.03023/1.362, allocations: 6.111 MB / 0.5167 GB, free: 86.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/1.362, allocations: 13.23 kB / 0.5167 GB, free: 86.29 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004307/1.367, allocations: 0.7554 MB / 0.5175 GB, free: 86.21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07415/1.441, allocations: 10.14 MB / 0.5274 GB, free: 85.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03525/1.476, allocations: 9.83 MB / 0.537 GB, free: 84.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005189/1.477, allocations: 359.1 kB / 0.5373 GB, free: 84.9 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002827/1.48, allocations: 464.8 kB / 0.5377 GB, free: 84.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0394/1.519, allocations: 10.59 MB / 0.5481 GB, free: 82.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004497/1.52, allocations: 63.48 kB / 0.5481 GB, free: 82.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002221/1.522, allocations: 206.3 kB / 0.5483 GB, free: 82.79 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002357/1.524, allocations: 0.992 MB / 0.5493 GB, free: 82.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03312/1.557, allocations: 8.805 MB / 0.5579 GB, free: 80.16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08432/1.642, allocations: 43.93 MB / 0.6008 GB, free: 48.23 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03888/1.681, allocations: 7.864 MB / 0.6085 GB, free: 42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008915/1.69, allocations: 4.935 MB / 0.6133 GB, free: 37.44 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001896/1.692, allocations: 1.128 MB / 0.6144 GB, free: 36.26 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.41e-05/1.692, allocations: 60.84 kB / 0.6145 GB, free: 36.19 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.542e-06/1.692, allocations: 4 kB / 0.6145 GB, free: 36.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=415): time 0.6525/2.344, allocations: 64.97 MB / 0.6779 GB, free: 95.11 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02716/2.371, allocations: 10.91 MB / 0.6886 GB, free: 93.44 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009727/2.381, allocations: 3.691 MB / 0.6922 GB, free: 93.15 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001319/2.383, allocations: 89.83 kB / 0.6923 GB, free: 93.12 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002776/2.385, allocations: 2.745 MB / 0.6949 GB, free: 92.19 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002752/2.388, allocations: 1.44 MB / 0.6964 GB, free: 91.47 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001149/2.389, allocations: 113.7 kB / 0.6965 GB, free: 91.47 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004103/2.39, allocations: 0.532 MB / 0.697 GB, free: 91.15 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01021/2.4, allocations: 4.417 MB / 0.7013 GB, free: 90.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01242/2.413, allocations: 6.411 MB / 0.7076 GB, free: 85.85 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0125/2.425, allocations: 5.405 MB / 0.7128 GB, free: 83.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.932e-05/2.425, allocations: 22.62 kB / 0.7129 GB, free: 83.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=718) (initialization): time 0.06423/2.489, allocations: 18 MB / 0.7304 GB, free: 78.91 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.65e-05/2.49, allocations: 31.53 kB / 0.7305 GB, free: 78.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.595e-05/2.49, allocations: 69.33 kB / 0.7305 GB, free: 78.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0426/2.532, allocations: 8.604 MB / 0.7389 GB, free: 77.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007905/2.54, allocations: 1.035 MB / 0.7399 GB, free: 77.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1107/2.651, allocations: 48.47 MB / 0.7873 GB, free: 42.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01031/2.661, allocations: 494 kB / 0.7877 GB, free: 42.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001832/2.663, allocations: 279.4 kB / 0.788 GB, free: 42.04 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.003013/2.666, allocations: 499.8 kB / 0.7885 GB, free: 41.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002059/2.668, allocations: 485.8 kB / 0.789 GB, free: 41.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06327/2.732, allocations: 17.5 MB / 0.806 GB, free: 24.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05694/2.789, allocations: 16.01 MB / 0.8217 GB, free: 8.617 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.27e-05/2.789, allocations: 28 kB / 0.8217 GB, free: 8.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.897e-05/2.789, allocations: 19.92 kB / 0.8217 GB, free: 8.57 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4249/3.214, allocations: 34.56 MB / 0.8555 GB, free: 84.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.665e-05/3.214, allocations: 3.75 kB / 0.8555 GB, free: 84.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004659/3.219, allocations: 448.4 kB / 0.8559 GB, free: 84.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04164/3.26, allocations: 8.039 MB / 0.8638 GB, free: 84.86 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001508/3.262, allocations: 80.09 kB / 0.8638 GB, free: 84.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.112/3.374, allocations: 47.53 MB / 0.9103 GB, free: 66.16 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02257/3.397, allocations: 9.672 MB / 0.9197 GB, free: 58.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07015/3.467, allocations: 23.79 MB / 0.9429 GB, free: 38.94 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005729/3.473, allocations: 1.428 MB / 0.9443 GB, free: 37.63 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002247/3.475, allocations: 80 kB / 0.9444 GB, free: 37.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007555/3.482, allocations: 356.1 kB / 0.9447 GB, free: 37.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00229/3.485, allocations: 338 kB / 0.9451 GB, free: 37.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009726/3.486, allocations: 112.1 kB / 0.9452 GB, free: 37.04 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007337/3.493, allocations: 2.732 MB / 0.9478 GB, free: 34.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.12e-07/3.493, allocations: 0 / 0.9478 GB, free: 34.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01143/3.505, allocations: 1.976 MB / 0.9498 GB, free: 32.65 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.07271/3.577, allocations: 25.69 MB / 0.9749 GB, free: 8.703 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03344/3.611, allocations: 11.96 MB / 0.9865 GB, free: 12.89 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.366e-05/3.611, allocations: 3.25 kB / 0.9865 GB, free: 12.89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.324/3.935, allocations: 6.891 MB / 0.9933 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.007636/3.943, allocations: 0.7516 MB / 0.994 GB, free: 100.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05371/3.996, allocations: 15.97 MB / 1.01 GB, free: 98.09 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01105/4.008, allocations: 4.305 MB / 1.014 GB, free: 97.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007577/4.015, allocations: 2.618 MB / 1.016 GB, free: 97.26 MB / 458.7 MB Notification: Performance of SimCode: time 1.733e-06/4.015, allocations: 0 / 1.016 GB, free: 97.26 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.71/9.726, allocations: 179.1 MB / 1.191 GB, free: 97.34 MB / 458.7 MB