Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.921/1.921, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.871e-05/1.894e-05, allocations: 0 / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1208, allocations: 48.7 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4509/0.5717, allocations: 93.54 MB / 409.8 MB, free: 15.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/0.5721, allocations: 74.47 kB / 409.9 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.889/1.461, allocations: 112 MB / 0.5097 GB, free: 84.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.595e-06/1.461, allocations: 7.562 kB / 0.5097 GB, free: 84.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003843/1.462, allocations: 104 kB / 0.5098 GB, free: 84.22 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1954 * Number of variables: 1954 Notification: Performance of Generate backend data structure: time 0.02215/1.484, allocations: 5.465 MB / 0.5151 GB, free: 81.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/1.484, allocations: 15.53 kB / 0.5151 GB, free: 81.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05034/1.534, allocations: 6.956 MB / 0.5219 GB, free: 81.58 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02506/1.559, allocations: 6.838 MB / 0.5286 GB, free: 80.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003949/1.56, allocations: 178.9 kB / 0.5288 GB, free: 80.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003088/1.563, allocations: 333 kB / 0.5291 GB, free: 80.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01902/1.582, allocations: 7.448 MB / 0.5364 GB, free: 79.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03058/1.613, allocations: 11.73 MB / 0.5478 GB, free: 72.99 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000402/1.613, allocations: 73.5 kB / 0.5479 GB, free: 72.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002735/1.616, allocations: 40.88 kB / 0.5479 GB, free: 72.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002792/1.619, allocations: 1.25 MB / 0.5492 GB, free: 72.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0844/1.703, allocations: 57.39 MB / 0.6052 GB, free: 20.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005991/1.709, allocations: 3.441 MB / 0.6086 GB, free: 16.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003905/1.713, allocations: 2.097 MB / 0.6106 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002338/1.713, allocations: 36.77 kB / 0.6106 GB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.101e-05/1.713, allocations: 51.69 kB / 0.6107 GB, free: 14.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=185): time 5.811e-06/1.713, allocations: 0 / 0.6107 GB, free: 14.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=198): time 0.0555/1.769, allocations: 17.54 MB / 0.6278 GB, free: 12.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001482/1.769, allocations: 223 kB / 0.628 GB, free: 12.26 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01121/1.78, allocations: 4.125 MB / 0.6321 GB, free: 8.133 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005103/1.781, allocations: 25.7 kB / 0.6321 GB, free: 8.102 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004812/1.786, allocations: 4.115 MB / 0.6361 GB, free: 3.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001499/1.787, allocations: 0.7638 MB / 0.6368 GB, free: 3.156 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000908/1.788, allocations: 0 / 0.6368 GB, free: 3.156 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007032/1.789, allocations: 0.625 MB / 0.6375 GB, free: 2.523 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006272/1.795, allocations: 2.197 MB / 0.6396 GB, free: 336 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3133/2.109, allocations: 6.852 MB / 0.6463 GB, free: 85.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009944/2.119, allocations: 3.853 MB / 0.6501 GB, free: 85.79 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003317/2.119, allocations: 48.56 kB / 0.6501 GB, free: 85.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=977) (initialization): time 0.02662/2.146, allocations: 8.246 MB / 0.6582 GB, free: 85.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002139/2.146, allocations: 80.53 kB / 0.6582 GB, free: 85.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003574/2.146, allocations: 171.5 kB / 0.6584 GB, free: 85.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002481/2.149, allocations: 0.6135 MB / 0.659 GB, free: 85.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01089/2.16, allocations: 1.719 MB / 0.6607 GB, free: 85.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008393/2.168, allocations: 5.534 MB / 0.6661 GB, free: 82.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008522/2.177, allocations: 248.7 kB / 0.6663 GB, free: 82.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001995/2.179, allocations: 462.4 kB / 0.6668 GB, free: 82.48 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 764 * Number of states: 0 () * Number of discrete variables: 42 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (925): * Single equations (assignments): 920 * Array equations: 3 * 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%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003029/2.182, allocations: 0.5126 MB / 0.6673 GB, free: 82.21 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00834/2.19, allocations: 3.146 MB / 0.6703 GB, free: 82.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001385/2.192, allocations: 427.7 kB / 0.6707 GB, free: 82.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008531/2.2, allocations: 2.916 MB / 0.6736 GB, free: 81.92 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.799e-05/2.2, allocations: 23.88 kB / 0.6736 GB, free: 81.92 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-05/2.2, allocations: 13.48 kB / 0.6736 GB, free: 81.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.46e-05/2.2, allocations: 9.703 kB / 0.6736 GB, free: 81.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02264/2.223, allocations: 7.538 MB / 0.681 GB, free: 79.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.279e-05/2.223, allocations: 3.688 kB / 0.681 GB, free: 79.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003054/2.226, allocations: 304.8 kB / 0.6813 GB, free: 79.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001719/2.228, allocations: 348.1 kB / 0.6816 GB, free: 79.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004327/2.228, allocations: 9.891 kB / 0.6816 GB, free: 79.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008465/2.237, allocations: 4.847 MB / 0.6864 GB, free: 76.37 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/2.237, allocations: 3.375 kB / 0.6864 GB, free: 76.37 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01108/2.248, allocations: 5.693 MB / 0.6919 GB, free: 73.78 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002482/2.251, allocations: 0.71 MB / 0.6926 GB, free: 73.35 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001096/2.252, allocations: 6.156 kB / 0.6926 GB, free: 73.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002949/2.255, allocations: 72.05 kB / 0.6927 GB, free: 73.35 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004735/2.255, allocations: 112.8 kB / 0.6928 GB, free: 73.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000199/2.255, allocations: 51.7 kB / 0.6928 GB, free: 73.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006682/2.262, allocations: 2.793 MB / 0.6956 GB, free: 72.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.663e-06/2.262, allocations: 3.938 kB / 0.6956 GB, free: 72.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009318/2.271, allocations: 1.054 MB / 0.6966 GB, free: 72.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (155): * Single equations (assignments): 150 * Array equations: 3 * 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%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01234/2.284, allocations: 6.658 MB / 0.7031 GB, free: 68.81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01209/2.296, allocations: 5.414 MB / 0.7084 GB, free: 66.79 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/2.296, allocations: 0 / 0.7084 GB, free: 66.79 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003368/2.299, allocations: 1.672 MB / 0.71 GB, free: 66.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00413/2.304, allocations: 480.2 kB / 0.7105 GB, free: 65.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03894/2.343, allocations: 11.75 MB / 0.722 GB, free: 59.52 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009594/2.352, allocations: 4.247 MB / 0.7261 GB, free: 56.37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006188/2.359, allocations: 2.584 MB / 0.7286 GB, free: 53.97 MB / 426.7 MB Notification: Performance of SimCode: time 1.593e-06/2.359, allocations: 0 / 0.7286 GB, free: 53.97 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.061/7.42, allocations: 147.8 MB / 0.873 GB, free: 73.72 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat does not exist to compare? outputFormat=mat