Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Worldtorque,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Worldtorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.177/2.177, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.757e-05/2.755e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 48.7 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4496/0.5524, allocations: 92.45 MB / 408.7 MB, free: 348 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/0.5528, allocations: 67.66 kB / 408.8 MB, free: 316 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9426/1.495, allocations: 139.7 MB / 0.5357 GB, free: 81.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.336e-06/1.495, allocations: 2.438 kB / 0.5357 GB, free: 81.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005549/1.496, allocations: 145.8 kB / 0.5358 GB, free: 81.49 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: 2467 * Number of variables: 2467 Notification: Performance of Generate backend data structure: time 0.03104/1.527, allocations: 6.84 MB / 0.5425 GB, free: 78.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.916e-05/1.527, allocations: 9.5 kB / 0.5425 GB, free: 78.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07746/1.605, allocations: 9.536 MB / 0.5518 GB, free: 74.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03074/1.635, allocations: 8.823 MB / 0.5605 GB, free: 68.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004414/1.636, allocations: 228 kB / 0.5607 GB, free: 68.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003631/1.64, allocations: 423.8 kB / 0.5611 GB, free: 68.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02982/1.669, allocations: 9.42 MB / 0.5703 GB, free: 58.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04447/1.714, allocations: 14.57 MB / 0.5845 GB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004041/1.714, allocations: 95.11 kB / 0.5846 GB, free: 42.56 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001841/1.716, allocations: 55.89 kB / 0.5846 GB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003048/1.719, allocations: 1.518 MB / 0.5861 GB, free: 40.99 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4569/2.176, allocations: 69.39 MB / 0.6539 GB, free: 47.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009954/2.186, allocations: 4.636 MB / 0.6584 GB, free: 46.57 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006492/2.193, allocations: 3 MB / 0.6613 GB, free: 46.53 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003021/2.193, allocations: 51.11 kB / 0.6614 GB, free: 46.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.148e-05/2.193, allocations: 63.97 kB / 0.6615 GB, free: 46.49 MB / 426.7 MB Notification: Performance of pre-optimization done (n=249): time 7.664e-06/2.193, allocations: 1.312 kB / 0.6615 GB, free: 46.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=268): time 0.0715/2.265, allocations: 24.43 MB / 0.6853 GB, free: 41.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.495e-05/2.265, allocations: 261.7 kB / 0.6856 GB, free: 41.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0102/2.275, allocations: 4.921 MB / 0.6904 GB, free: 39.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007007/2.276, allocations: 30.86 kB / 0.6904 GB, free: 39.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004456/2.28, allocations: 4.977 MB / 0.6953 GB, free: 35.63 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001839/2.282, allocations: 1.006 MB / 0.6962 GB, free: 34.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001076/2.283, allocations: 0 / 0.6962 GB, free: 34.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006688/2.284, allocations: 0.6914 MB / 0.6969 GB, free: 34.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007012/2.291, allocations: 2.783 MB / 0.6996 GB, free: 33.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01023/2.301, allocations: 8.231 MB / 0.7077 GB, free: 25.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/2.312, allocations: 4.734 MB / 0.7123 GB, free: 23.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000219/2.312, allocations: 55.72 kB / 0.7124 GB, free: 23.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.02843/2.341, allocations: 10.23 MB / 0.7223 GB, free: 20.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001498/2.341, allocations: 88.69 kB / 0.7224 GB, free: 20.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002645/2.341, allocations: 197.7 kB / 0.7226 GB, free: 20.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003056/2.344, allocations: 0.8419 MB / 0.7234 GB, free: 20.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01273/2.357, allocations: 2.071 MB / 0.7255 GB, free: 20.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01234/2.369, allocations: 8.202 MB / 0.7335 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01033/2.38, allocations: 311.8 kB / 0.7338 GB, free: 12.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001995/2.382, allocations: 0.5368 MB / 0.7343 GB, free: 12.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 891 * 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 (1099): * Single equations (assignments): 1093 * 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.001643/2.383, allocations: 0.5891 MB / 0.7349 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01053/2.394, allocations: 4.372 MB / 0.7391 GB, free: 7.902 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001474/2.395, allocations: 0.5168 MB / 0.7396 GB, free: 7.379 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01077/2.406, allocations: 4.215 MB / 0.7438 GB, free: 3.891 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.909e-05/2.406, allocations: 28 kB / 0.7438 GB, free: 3.863 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/2.406, allocations: 8 kB / 0.7438 GB, free: 3.855 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.28e-05/2.406, allocations: 14.53 kB / 0.7438 GB, free: 3.855 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03345/2.44, allocations: 10.48 MB / 0.754 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-05/2.44, allocations: 2.625 kB / 0.754 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004786/2.445, allocations: 447.2 kB / 0.7545 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002752/2.447, allocations: 0.5201 MB / 0.755 GB, free: 11.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000646/2.448, allocations: 14.7 kB / 0.755 GB, free: 11.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01309/2.461, allocations: 7.267 MB / 0.7621 GB, free: 4.18 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.718e-06/2.461, allocations: 4.094 kB / 0.7621 GB, free: 4.176 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01989/2.481, allocations: 7.632 MB / 0.7695 GB, free: 13.35 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003788/2.485, allocations: 0.8951 MB / 0.7704 GB, free: 12.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001445/2.487, allocations: 4 kB / 0.7704 GB, free: 12.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004075/2.491, allocations: 113.8 kB / 0.7705 GB, free: 12.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006992/2.491, allocations: 166.7 kB / 0.7707 GB, free: 12.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003044/2.492, allocations: 70.53 kB / 0.7708 GB, free: 12.26 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008338/2.5, allocations: 3.332 MB / 0.774 GB, free: 9.359 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.22e-07/2.5, allocations: 4 kB / 0.774 GB, free: 9.355 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01163/2.512, allocations: 1.341 MB / 0.7753 GB, free: 8.02 MB / 458.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 (220): * Single equations (assignments): 214 * 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.01841/2.53, allocations: 8.446 MB / 0.7836 GB, free: 388 kB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02081/2.551, allocations: 7.224 MB / 0.7906 GB, free: 10.61 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/2.551, allocations: 4 kB / 0.7906 GB, free: 10.61 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005382/2.556, allocations: 2.404 MB / 0.793 GB, free: 8.406 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005178/2.562, allocations: 0.6147 MB / 0.7936 GB, free: 7.887 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05299/2.615, allocations: 15.14 MB / 0.8084 GB, free: 10.48 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0141/2.629, allocations: 5.215 MB / 0.8135 GB, free: 5.262 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009217/2.638, allocations: 3.409 MB / 0.8168 GB, free: 1.852 MB / 490.7 MB Notification: Performance of SimCode: time 1.724e-06/2.638, allocations: 0 / 0.8168 GB, free: 1.852 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.879/8.517, allocations: 215 MB / 1.027 GB, free: 140.9 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Worldtorque_res.mat does not exist to compare? outputFormat=mat