Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Worldtorque,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Worldtorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.388/2.388, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.342e-05/4.36e-05, allocations: 4.938 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4099/0.4099, allocations: 54.86 MB / 359.9 MB, free: 2.703 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2121/0.622, allocations: 99.67 MB / 459.5 MB, free: 13.28 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.6224, allocations: 75.94 kB / 459.6 MB, free: 13.21 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9058/1.528, allocations: 142.9 MB / 0.5884 GB, free: 94.74 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.977e-06/1.528, allocations: 0 / 0.5884 GB, free: 94.74 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004758/1.529, allocations: 143.9 kB / 0.5885 GB, free: 94.74 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2470 * Number of variables: 2470 Notification: Performance of Generate backend data structure: time 0.02829/1.557, allocations: 6.839 MB / 0.5952 GB, free: 90.29 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/1.557, allocations: 14 kB / 0.5952 GB, free: 90.28 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00577/1.563, allocations: 1.229 MB / 0.5964 GB, free: 89.46 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06915/1.632, allocations: 9.537 MB / 0.6057 GB, free: 82.86 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02967/1.662, allocations: 8.836 MB / 0.6143 GB, free: 74.06 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005277/1.662, allocations: 0.5224 MB / 0.6148 GB, free: 73.58 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003611/1.666, allocations: 0.711 MB / 0.6155 GB, free: 72.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09161/1.758, allocations: 16.44 MB / 0.6316 GB, free: 55.02 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006434/1.758, allocations: 107 kB / 0.6317 GB, free: 54.92 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003564/1.762, allocations: 343.8 kB / 0.632 GB, free: 54.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008647/1.771, allocations: 1.515 MB / 0.6335 GB, free: 53.06 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0587/1.829, allocations: 12.83 MB / 0.646 GB, free: 40.21 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7167/2.546, allocations: 72.57 MB / 0.7169 GB, free: 52.55 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0368/2.583, allocations: 5.837 MB / 0.7226 GB, free: 51.86 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009886/2.593, allocations: 3.068 MB / 0.7256 GB, free: 51.81 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00045/2.594, allocations: 49.27 kB / 0.7256 GB, free: 51.81 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.783e-05/2.594, allocations: 64.59 kB / 0.7257 GB, free: 51.77 MB / 474.7 MB Notification: Performance of pre-optimization done (n=249): time 1.14e-05/2.594, allocations: 2.406 kB / 0.7257 GB, free: 51.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=267): time 0.1254/2.719, allocations: 19.48 MB / 0.7447 GB, free: 46.48 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/2.719, allocations: 266 kB / 0.745 GB, free: 46.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02327/2.743, allocations: 6.13 MB / 0.751 GB, free: 45.69 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008921/2.744, allocations: 66.05 kB / 0.751 GB, free: 45.66 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006611/2.75, allocations: 4.793 MB / 0.7557 GB, free: 42.96 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002372/2.753, allocations: 1.024 MB / 0.7567 GB, free: 42.38 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001743/2.754, allocations: 174.7 kB / 0.7569 GB, free: 42.38 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00122/2.756, allocations: 0.6699 MB / 0.7575 GB, free: 42.05 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01121/2.767, allocations: 2.876 MB / 0.7603 GB, free: 42.02 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0168/2.784, allocations: 8.081 MB / 0.7682 GB, free: 34.18 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01528/2.799, allocations: 4.8 MB / 0.7729 GB, free: 32.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003485/2.8, allocations: 58.91 kB / 0.773 GB, free: 32.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.04271/2.842, allocations: 10.6 MB / 0.7833 GB, free: 29.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002374/2.843, allocations: 88.05 kB / 0.7834 GB, free: 29.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004866/2.843, allocations: 185.8 kB / 0.7836 GB, free: 29.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004849/2.848, allocations: 0.8354 MB / 0.7844 GB, free: 29.76 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01813/2.866, allocations: 1.991 MB / 0.7863 GB, free: 29.52 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01832/2.885, allocations: 8.49 MB / 0.7946 GB, free: 23.63 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01105/2.896, allocations: 472.3 kB / 0.7951 GB, free: 23.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002305/2.898, allocations: 0.5183 MB / 0.7956 GB, free: 23.39 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 849 * Number of states: 0 () * Number of discrete variables: 54 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (1056): * Single equations (assignments): 1050 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003054/2.901, allocations: 0.7675 MB / 0.7963 GB, free: 22.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001779/2.903, allocations: 0.5898 MB / 0.7969 GB, free: 22.45 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0127/2.916, allocations: 4.464 MB / 0.8013 GB, free: 20.09 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.325e-05/2.916, allocations: 29.17 kB / 0.8013 GB, free: 20.06 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/2.916, allocations: 8 kB / 0.8013 GB, free: 20.05 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.481e-05/2.916, allocations: 12.72 kB / 0.8013 GB, free: 20.05 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0349/2.951, allocations: 11.6 MB / 0.8127 GB, free: 10.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.379e-05/2.951, allocations: 0 / 0.8127 GB, free: 10.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004648/2.956, allocations: 437.1 kB / 0.8131 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002642/2.958, allocations: 0.5292 MB / 0.8136 GB, free: 9.855 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006303/2.959, allocations: 43.47 kB / 0.8136 GB, free: 9.816 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01148/2.97, allocations: 7.571 MB / 0.821 GB, free: 2.523 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/2.97, allocations: 0 / 0.821 GB, free: 2.523 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02046/2.991, allocations: 7.877 MB / 0.8287 GB, free: 11.44 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004715/2.996, allocations: 1.003 MB / 0.8297 GB, free: 10.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002493/2.998, allocations: 44 kB / 0.8297 GB, free: 10.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005897/3.004, allocations: 153 kB / 0.8299 GB, free: 10.35 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001084/3.005, allocations: 158.5 kB / 0.83 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003457/3.006, allocations: 71.02 kB / 0.8301 GB, free: 10.18 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01416/3.02, allocations: 4.359 MB / 0.8344 GB, free: 6.352 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.092e-06/3.02, allocations: 0 / 0.8344 GB, free: 6.352 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01318/3.033, allocations: 1.561 MB / 0.8359 GB, free: 4.801 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,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 (219): * Single equations (assignments): 213 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(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.0235/3.057, allocations: 8.741 MB / 0.8444 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02/3.077, allocations: 7.054 MB / 0.8513 GB, free: 6.492 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/3.077, allocations: 0 / 0.8513 GB, free: 6.492 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006761/3.084, allocations: 2.45 MB / 0.8537 GB, free: 4.246 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007506/3.091, allocations: 0.7732 MB / 0.8545 GB, free: 3.598 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05993/3.151, allocations: 15.46 MB / 0.8695 GB, free: 6.137 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01532/3.167, allocations: 5.205 MB / 0.8746 GB, free: 0.9258 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01004/3.177, allocations: 3.425 MB / 0.878 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of SimCode: time 1.372e-06/3.177, allocations: 4 kB / 0.878 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.866/9.043, allocations: 219.6 MB / 1.092 GB, free: 28.64 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Worldtorque_res.mat does not exist to compare? outputFormat=mat