Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.068/2.068, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.12e-05/3.122e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1051, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4701/0.5753, allocations: 95.59 MB / 411.9 MB, free: 13.28 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.5756, allocations: 79.02 kB / 412 MB, free: 13.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8663/1.442, allocations: 135.1 MB / 0.5342 GB, free: 82.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.442, allocations: 0 / 0.5342 GB, free: 82.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004398/1.442, allocations: 133.6 kB / 0.5344 GB, free: 82.06 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: 2484 * Number of variables: 2484 Notification: Performance of Generate backend data structure: time 0.02801/1.47, allocations: 6.793 MB / 0.541 GB, free: 78.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/1.471, allocations: 7.656 kB / 0.541 GB, free: 78.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05248/1.523, allocations: 7.184 MB / 0.548 GB, free: 77.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02714/1.55, allocations: 7.527 MB / 0.5554 GB, free: 72.87 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004664/1.551, allocations: 225.7 kB / 0.5556 GB, free: 72.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00382/1.555, allocations: 410 kB / 0.556 GB, free: 72.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02445/1.579, allocations: 9.8 MB / 0.5655 GB, free: 64.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0387/1.618, allocations: 14.8 MB / 0.58 GB, free: 47.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004582/1.618, allocations: 87.22 kB / 0.5801 GB, free: 47.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003254/1.622, allocations: 40 kB / 0.5801 GB, free: 47.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003589/1.625, allocations: 1.624 MB / 0.5817 GB, free: 46.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4514/2.077, allocations: 69.43 MB / 0.6495 GB, free: 51.05 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01155/2.088, allocations: 5.575 MB / 0.655 GB, free: 50.37 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007949/2.096, allocations: 3.751 MB / 0.6586 GB, free: 50.32 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004353/2.097, allocations: 59.06 kB / 0.6587 GB, free: 50.32 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.862e-05/2.097, allocations: 75.78 kB / 0.6587 GB, free: 50.28 MB / 426.7 MB Notification: Performance of pre-optimization done (n=296): time 7.815e-06/2.097, allocations: 0 / 0.6587 GB, free: 50.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.1001/2.197, allocations: 28.73 MB / 0.6868 GB, free: 44.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/2.197, allocations: 239.8 kB / 0.687 GB, free: 43.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01152/2.209, allocations: 4.546 MB / 0.6915 GB, free: 42.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009828/2.21, allocations: 25.7 kB / 0.6915 GB, free: 42.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004108/2.214, allocations: 4.795 MB / 0.6962 GB, free: 38.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002206/2.216, allocations: 1.233 MB / 0.6974 GB, free: 37.54 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001596/2.218, allocations: 3.875 kB / 0.6974 GB, free: 37.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009136/2.219, allocations: 0.7024 MB / 0.6981 GB, free: 37.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009075/2.228, allocations: 3.564 MB / 0.7016 GB, free: 35.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01298/2.241, allocations: 8.807 MB / 0.7102 GB, free: 27.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01264/2.254, allocations: 5.53 MB / 0.7156 GB, free: 25.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002358/2.254, allocations: 52.81 kB / 0.7156 GB, free: 25.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=1210) (initialization): time 0.0366/2.29, allocations: 12.58 MB / 0.7279 GB, free: 20 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/2.291, allocations: 87.95 kB / 0.728 GB, free: 19.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002934/2.291, allocations: 186.1 kB / 0.7282 GB, free: 19.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007109/2.298, allocations: 1.716 MB / 0.7298 GB, free: 18.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01471/2.313, allocations: 2.2 MB / 0.732 GB, free: 16.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02096/2.334, allocations: 10.79 MB / 0.7425 GB, free: 6.961 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01119/2.345, allocations: 364.2 kB / 0.7429 GB, free: 6.688 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002546/2.348, allocations: 0.5457 MB / 0.7434 GB, free: 6.164 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 848 * Number of states: 0 () * Number of discrete variables: 54 (FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[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 (1138): * Single equations (assignments): 1133 * 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 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003902/2.352, allocations: 0.574 MB / 0.744 GB, free: 5.59 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02081/2.372, allocations: 6.944 MB / 0.7507 GB, free: 15.83 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002308/2.375, allocations: 0.5006 MB / 0.7512 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02339/2.398, allocations: 6.932 MB / 0.758 GB, free: 9.746 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001104/2.398, allocations: 40.89 kB / 0.758 GB, free: 9.707 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.675e-05/2.398, allocations: 8 kB / 0.758 GB, free: 9.699 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.36e-05/2.399, allocations: 20.83 kB / 0.7581 GB, free: 9.695 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05318/2.452, allocations: 14.99 MB / 0.7727 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.986e-05/2.452, allocations: 8.031 kB / 0.7727 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006932/2.459, allocations: 0.6121 MB / 0.7733 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007023/2.466, allocations: 1.4 MB / 0.7747 GB, free: 12.68 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001057/2.467, allocations: 23.89 kB / 0.7747 GB, free: 12.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02319/2.49, allocations: 9.903 MB / 0.7844 GB, free: 3.066 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.407e-05/2.49, allocations: 7.938 kB / 0.7844 GB, free: 3.059 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03297/2.523, allocations: 12.11 MB / 0.7962 GB, free: 6.766 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004788/2.528, allocations: 1.076 MB / 0.7972 GB, free: 5.664 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002422/2.531, allocations: 7.984 kB / 0.7973 GB, free: 5.656 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006083/2.537, allocations: 179.7 kB / 0.7974 GB, free: 5.48 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001553/2.538, allocations: 206.2 kB / 0.7976 GB, free: 5.277 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008732/2.539, allocations: 93.39 kB / 0.7977 GB, free: 5.188 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009243/2.548, allocations: 3.046 MB / 0.8007 GB, free: 2.164 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.453e-06/2.549, allocations: 0 / 0.8007 GB, free: 2.164 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01347/2.562, allocations: 1.469 MB / 0.8021 GB, free: 0.6992 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.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 (285): * Single equations (assignments): 280 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03562/2.598, allocations: 13.53 MB / 0.8153 GB, free: 2.98 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02944/2.627, allocations: 8.979 MB / 0.8241 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.575e-05/2.627, allocations: 4 kB / 0.8241 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01217/2.639, allocations: 3.56 MB / 0.8276 GB, free: 6.438 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005772/2.645, allocations: 0.5133 MB / 0.8281 GB, free: 5.934 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3652/3.011, allocations: 16.29 MB / 0.844 GB, free: 157 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01457/3.025, allocations: 5.192 MB / 0.8491 GB, free: 156.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009347/3.035, allocations: 3.327 MB / 0.8523 GB, free: 156.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.984e-06/3.035, allocations: 0 / 0.8523 GB, free: 156.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.531/8.565, allocations: 188.8 MB / 1.037 GB, free: 148.1 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques_res.mat does not exist to compare? outputFormat=mat