Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Force,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.358/2.358, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.767e-05/4.783e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4098/0.4099, allocations: 54.86 MB / 359.9 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1889/0.5988, allocations: 101.4 MB / 461.3 MB, free: 11.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.5991, allocations: 79.95 kB / 461.3 MB, free: 11.35 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8584/1.458, allocations: 128.8 MB / 0.5764 GB, free: 99.55 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.577e-06/1.458, allocations: 3.375 kB / 0.5764 GB, free: 99.55 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004785/1.458, allocations: 134.3 kB / 0.5765 GB, free: 99.54 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: 2320 * Number of variables: 2320 Notification: Performance of Generate backend data structure: time 0.02731/1.485, allocations: 6.558 MB / 0.5829 GB, free: 96.4 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/1.485, allocations: 9.719 kB / 0.5829 GB, free: 96.4 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005417/1.491, allocations: 1.16 MB / 0.584 GB, free: 95.85 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05143/1.542, allocations: 7.119 MB / 0.591 GB, free: 93.88 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02621/1.569, allocations: 7.381 MB / 0.5982 GB, free: 89.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006288/1.569, allocations: 497.7 kB / 0.5987 GB, free: 89.65 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003752/1.573, allocations: 0.6499 MB / 0.5993 GB, free: 89.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04901/1.622, allocations: 16.09 MB / 0.615 GB, free: 72.35 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000476/1.623, allocations: 91.17 kB / 0.6151 GB, free: 72.26 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003323/1.626, allocations: 320.4 kB / 0.6154 GB, free: 71.99 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003455/1.63, allocations: 1.545 MB / 0.6169 GB, free: 70.44 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0409/1.67, allocations: 12.88 MB / 0.6295 GB, free: 57.54 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4584/2.129, allocations: 72.51 MB / 0.7003 GB, free: 94.52 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03483/2.164, allocations: 7.393 MB / 0.7075 GB, free: 93.84 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008479/2.172, allocations: 3.82 MB / 0.7113 GB, free: 93.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02644/2.199, allocations: 9.652 MB / 0.7207 GB, free: 92.37 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.729e-05/2.199, allocations: 66.47 kB / 0.7207 GB, free: 92.33 MB / 474.7 MB Notification: Performance of pre-optimization done (n=273): time 7.213e-06/2.199, allocations: 1 kB / 0.7207 GB, free: 92.33 MB / 474.7 MB Notification: Performance of matching and sorting (n=315): time 0.1763/2.375, allocations: 27.63 MB / 0.7477 GB, free: 85.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/2.376, allocations: 238.9 kB / 0.748 GB, free: 85.64 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02188/2.397, allocations: 6.017 MB / 0.7538 GB, free: 83.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001141/2.399, allocations: 75.64 kB / 0.7539 GB, free: 83.43 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005883/2.405, allocations: 4.452 MB / 0.7582 GB, free: 79.88 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002338/2.407, allocations: 1.181 MB / 0.7594 GB, free: 79.01 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001454/2.409, allocations: 179.2 kB / 0.7596 GB, free: 78.88 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007061/2.409, allocations: 0.6849 MB / 0.7602 GB, free: 78.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009039/2.418, allocations: 3.479 MB / 0.7636 GB, free: 77.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01247/2.431, allocations: 8.554 MB / 0.772 GB, free: 69.18 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01228/2.443, allocations: 5.424 MB / 0.7773 GB, free: 67.57 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001935/2.443, allocations: 53.91 kB / 0.7773 GB, free: 67.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.03594/2.479, allocations: 12.6 MB / 0.7896 GB, free: 62.94 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001301/2.48, allocations: 80 kB / 0.7897 GB, free: 62.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00026/2.48, allocations: 180 kB / 0.7899 GB, free: 62.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006897/2.487, allocations: 1.68 MB / 0.7915 GB, free: 61.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01369/2.5, allocations: 2.109 MB / 0.7936 GB, free: 59.63 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02042/2.521, allocations: 11.22 MB / 0.8045 GB, free: 49.53 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01129/2.532, allocations: 0.5263 MB / 0.8051 GB, free: 49.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002211/2.535, allocations: 0.5232 MB / 0.8056 GB, free: 48.58 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 824 * Number of states: 0 () * Number of discrete variables: 60 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.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],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1084): * Single equations (assignments): 1079 * 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 {(2,100.0%) 22,(2,100.0%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003497/2.538, allocations: 0.7774 MB / 0.8063 GB, free: 47.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001664/2.54, allocations: 0.5862 MB / 0.8069 GB, free: 47.21 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02076/2.561, allocations: 6.732 MB / 0.8135 GB, free: 41.75 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.872e-05/2.561, allocations: 37.41 kB / 0.8135 GB, free: 41.71 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.188e-05/2.561, allocations: 8 kB / 0.8135 GB, free: 41.71 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.137e-05/2.561, allocations: 12.33 kB / 0.8135 GB, free: 41.71 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04521/2.606, allocations: 15.13 MB / 0.8283 GB, free: 28.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.783e-05/2.606, allocations: 4 kB / 0.8283 GB, free: 28.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006025/2.612, allocations: 0.5987 MB / 0.8289 GB, free: 28.17 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006425/2.619, allocations: 1.39 MB / 0.8302 GB, free: 26.77 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009147/2.62, allocations: 63.98 kB / 0.8303 GB, free: 26.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02038/2.64, allocations: 10.42 MB / 0.8405 GB, free: 16.04 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/2.64, allocations: 5.125 kB / 0.8405 GB, free: 16.04 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02702/2.667, allocations: 11.81 MB / 0.852 GB, free: 3.992 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004605/2.672, allocations: 1.165 MB / 0.8532 GB, free: 2.801 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002364/2.674, allocations: 56 kB / 0.8532 GB, free: 2.746 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006094/2.68, allocations: 218.8 kB / 0.8534 GB, free: 2.535 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001221/2.682, allocations: 190 kB / 0.8536 GB, free: 2.344 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006922/2.682, allocations: 87.98 kB / 0.8537 GB, free: 2.258 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01237/2.695, allocations: 4.287 MB / 0.8579 GB, free: 13.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.81e-07/2.695, allocations: 0 / 0.8579 GB, free: 13.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01243/2.707, allocations: 1.629 MB / 0.8595 GB, free: 12.36 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (260): * Single equations (assignments): 255 * 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%) 17,(4,75.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03352/2.741, allocations: 13.19 MB / 0.8723 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02271/2.763, allocations: 8.346 MB / 0.8805 GB, free: 6.609 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/2.764, allocations: 0 / 0.8805 GB, free: 6.609 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.3498/3.113, allocations: 3.366 MB / 0.8838 GB, free: 129.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00671/3.12, allocations: 0.6918 MB / 0.8845 GB, free: 129.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06273/3.183, allocations: 15.91 MB / 0.9 GB, free: 127.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01345/3.196, allocations: 4.931 MB / 0.9048 GB, free: 126.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009209/3.206, allocations: 3.219 MB / 0.908 GB, free: 126.3 MB / 0.4948 GB Notification: Performance of SimCode: time 2.615e-06/3.206, allocations: 0 / 0.908 GB, free: 126.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.866/9.071, allocations: 184.1 MB / 1.088 GB, free: 118 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Force_res.mat does not exist to compare? outputFormat=mat