Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.614/2.614, allocations: 270 MB / 282.6 MB, free: 1.949 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.763e-05/3.767e-05, allocations: 4 kB / 347.1 MB, free: 3.223 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3966/0.3967, allocations: 61.87 MB / 408.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1962/0.5929, allocations: 106.8 MB / 0.5037 GB, free: 15.77 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/0.5933, allocations: 79.95 kB / 0.5037 GB, free: 15.69 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8332/1.426, allocations: 128.6 MB / 0.6293 GB, free: 9.645 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.427, allocations: 0 / 0.6293 GB, free: 9.645 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003739/1.427, allocations: 115.9 kB / 0.6294 GB, free: 9.531 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: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02605/1.453, allocations: 6.16 MB / 0.6354 GB, free: 3.301 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/1.453, allocations: 8.031 kB / 0.6354 GB, free: 3.293 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005128/1.458, allocations: 1.077 MB / 0.6365 GB, free: 2.207 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04966/1.508, allocations: 6.434 MB / 0.6427 GB, free: 11.75 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03011/1.538, allocations: 7.955 MB / 0.6505 GB, free: 3.734 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006636/1.539, allocations: 427.2 kB / 0.6509 GB, free: 3.316 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004027/1.543, allocations: 0.57 MB / 0.6515 GB, free: 2.746 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05244/1.595, allocations: 15.05 MB / 0.6662 GB, free: 2.977 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004231/1.596, allocations: 67.36 kB / 0.6662 GB, free: 2.91 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003397/1.599, allocations: 259.8 kB / 0.6665 GB, free: 2.656 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004438/1.604, allocations: 1.655 MB / 0.6681 GB, free: 0.9961 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04962/1.653, allocations: 14.38 MB / 0.6822 GB, free: 2.602 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.519/2.172, allocations: 55.44 MB / 0.7363 GB, free: 85.65 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03007/2.203, allocations: 7.928 MB / 0.744 GB, free: 84.46 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00941/2.212, allocations: 4.69 MB / 0.7486 GB, free: 84.43 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002626/2.215, allocations: 2.218 MB / 0.7508 GB, free: 82.44 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.631e-05/2.215, allocations: 66.2 kB / 0.7508 GB, free: 82.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=367): time 8.025e-06/2.215, allocations: 0 / 0.7508 GB, free: 82.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=419): time 0.1514/2.366, allocations: 33.17 MB / 0.7832 GB, free: 79.82 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.234e-05/2.366, allocations: 114.9 kB / 0.7833 GB, free: 79.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008885/2.375, allocations: 3.76 MB / 0.787 GB, free: 78.41 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00109/2.376, allocations: 85.83 kB / 0.7871 GB, free: 78.34 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003079/2.379, allocations: 3.708 MB / 0.7907 GB, free: 75.78 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00249/2.382, allocations: 1.488 MB / 0.7922 GB, free: 74.66 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001284/2.383, allocations: 151.8 kB / 0.7923 GB, free: 74.55 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006676/2.384, allocations: 0.6396 MB / 0.7929 GB, free: 74.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009264/2.393, allocations: 3.812 MB / 0.7967 GB, free: 72.86 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01216/2.405, allocations: 7.526 MB / 0.804 GB, free: 66.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01226/2.418, allocations: 5.399 MB / 0.8093 GB, free: 65.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000133/2.418, allocations: 38.22 kB / 0.8093 GB, free: 65.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.04104/2.459, allocations: 13.38 MB / 0.8224 GB, free: 56.11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/2.459, allocations: 60 kB / 0.8225 GB, free: 56.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001969/2.459, allocations: 130.1 kB / 0.8226 GB, free: 55.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01333/2.473, allocations: 2.629 MB / 0.8251 GB, free: 54.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01386/2.487, allocations: 1.927 MB / 0.827 GB, free: 52.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02939/2.516, allocations: 13.61 MB / 0.8403 GB, free: 40.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009685/2.526, allocations: 479.2 kB / 0.8408 GB, free: 40.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002103/2.528, allocations: 427.7 kB / 0.8412 GB, free: 40.06 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 50 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,axis.color[3],axis.color[2],axis.color[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 (914): * Single equations (assignments): 906 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003583/2.532, allocations: 0.6542 MB / 0.8418 GB, free: 39.41 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001675/2.533, allocations: 462 kB / 0.8423 GB, free: 38.96 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03338/2.567, allocations: 10.36 MB / 0.8524 GB, free: 30.78 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001198/2.567, allocations: 60.45 kB / 0.8524 GB, free: 30.72 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.398e-05/2.567, allocations: 11.28 kB / 0.8524 GB, free: 30.71 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001043/2.567, allocations: 21.06 kB / 0.8525 GB, free: 30.71 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06366/2.631, allocations: 20.87 MB / 0.8728 GB, free: 12.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.214e-05/2.631, allocations: 8 kB / 0.8728 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007445/2.638, allocations: 0.7897 MB / 0.8736 GB, free: 12.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01291/2.651, allocations: 2.407 MB / 0.876 GB, free: 9.617 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001162/2.652, allocations: 83.98 kB / 0.876 GB, free: 9.535 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02806/2.681, allocations: 12.36 MB / 0.8881 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.951e-05/2.681, allocations: 15.94 kB / 0.8881 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04591/2.727, allocations: 16.13 MB / 0.9039 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001752/2.728, allocations: 495.1 kB / 0.9044 GB, free: 11.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002279/2.731, allocations: 75.98 kB / 0.9044 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006371/2.737, allocations: 299.2 kB / 0.9047 GB, free: 11.26 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001787/2.739, allocations: 258 kB / 0.905 GB, free: 11 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008086/2.74, allocations: 112 kB / 0.9051 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.007618/2.747, allocations: 2.627 MB / 0.9076 GB, free: 8.262 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.41e-07/2.747, allocations: 0 / 0.9076 GB, free: 8.262 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01141/2.759, allocations: 1.641 MB / 0.9092 GB, free: 6.629 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4339/3.193, allocations: 19.34 MB / 0.9281 GB, free: 133.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02296/3.216, allocations: 9.348 MB / 0.9373 GB, free: 133.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.848e-05/3.216, allocations: 0 / 0.9373 GB, free: 133.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01074/3.227, allocations: 4.143 MB / 0.9413 GB, free: 133 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006017/3.233, allocations: 0.645 MB / 0.9419 GB, free: 133 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05058/3.283, allocations: 15.81 MB / 0.9574 GB, free: 130.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01099/3.294, allocations: 4.678 MB / 0.9619 GB, free: 128.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008172/3.303, allocations: 2.91 MB / 0.9648 GB, free: 126.4 MB / 0.5417 GB Notification: Performance of SimCode: time 1.453e-06/3.303, allocations: 3.938 kB / 0.9648 GB, free: 126.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.484/8.787, allocations: 170.1 MB / 1.131 GB, free: 124.9 MB / 0.5417 GB