Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.074/2.074, allocations: 209.4 MB / 216.9 MB, free: 6.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.57e-05/2.584e-05, allocations: 2.109 kB / 267.6 MB, free: 5.355 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1042, allocations: 48.7 MB / 316.3 MB, free: 4.566 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4539/0.5582, allocations: 95.3 MB / 411.6 MB, free: 13.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003686/0.5586, allocations: 77.34 kB / 411.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.944/1.503, allocations: 148.4 MB / 0.5469 GB, free: 77.33 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.084e-06/1.503, allocations: 0 / 0.5469 GB, free: 77.33 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005121/1.503, allocations: 150.8 kB / 0.5471 GB, free: 77.33 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: 2698 * Number of variables: 2698 Notification: Performance of Generate backend data structure: time 0.03106/1.534, allocations: 7.373 MB / 0.5543 GB, free: 72.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/1.534, allocations: 11.22 kB / 0.5543 GB, free: 72.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09427/1.629, allocations: 9.635 MB / 0.5637 GB, free: 65.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05988/1.689, allocations: 9.107 MB / 0.5726 GB, free: 56.71 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004754/1.689, allocations: 252 kB / 0.5728 GB, free: 56.47 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004141/1.693, allocations: 459.8 kB / 0.5733 GB, free: 56.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02651/1.72, allocations: 10.42 MB / 0.5834 GB, free: 45.6 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04139/1.761, allocations: 16.1 MB / 0.5992 GB, free: 27.85 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005019/1.762, allocations: 111 kB / 0.5993 GB, free: 27.74 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003131/1.765, allocations: 55.94 kB / 0.5993 GB, free: 27.69 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00363/1.769, allocations: 1.691 MB / 0.601 GB, free: 25.99 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.472/2.241, allocations: 77.56 MB / 0.6767 GB, free: 38.81 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/2.253, allocations: 5.867 MB / 0.6824 GB, free: 38.09 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008208/2.261, allocations: 3.977 MB / 0.6863 GB, free: 38.04 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004303/2.262, allocations: 62.2 kB / 0.6864 GB, free: 38.04 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.816e-05/2.262, allocations: 70.56 kB / 0.6864 GB, free: 38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=307): time 8.977e-06/2.262, allocations: 0 / 0.6864 GB, free: 38 MB / 426.7 MB Notification: Performance of matching and sorting (n=340): time 0.09813/2.36, allocations: 30.07 MB / 0.7158 GB, free: 28.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/2.36, allocations: 292.4 kB / 0.7161 GB, free: 28.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01313/2.373, allocations: 5.114 MB / 0.7211 GB, free: 26.57 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009967/2.374, allocations: 25.7 kB / 0.7211 GB, free: 26.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004742/2.379, allocations: 5.284 MB / 0.7263 GB, free: 22.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002269/2.381, allocations: 1.249 MB / 0.7275 GB, free: 21.46 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001638/2.383, allocations: 0 / 0.7275 GB, free: 21.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000966/2.384, allocations: 0.7304 MB / 0.7282 GB, free: 20.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008944/2.393, allocations: 3.478 MB / 0.7316 GB, free: 19.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01403/2.407, allocations: 9.269 MB / 0.7407 GB, free: 10.65 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01346/2.421, allocations: 5.612 MB / 0.7461 GB, free: 8.906 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003485/2.421, allocations: 57.59 kB / 0.7462 GB, free: 8.906 MB / 426.7 MB Notification: Performance of matching and sorting (n=1289) (initialization): time 0.03729/2.458, allocations: 12.46 MB / 0.7584 GB, free: 15.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002041/2.459, allocations: 96 kB / 0.7584 GB, free: 15.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004258/2.459, allocations: 204.1 kB / 0.7586 GB, free: 15.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006184/2.465, allocations: 1.389 MB / 0.76 GB, free: 14.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01637/2.482, allocations: 2.317 MB / 0.7623 GB, free: 12.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02265/2.504, allocations: 10.66 MB / 0.7727 GB, free: 2.492 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01184/2.516, allocations: 362 kB / 0.773 GB, free: 2.207 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00302/2.519, allocations: 0.5904 MB / 0.7736 GB, free: 1.637 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 941 * Number of states: 0 () * Number of discrete variables: 60 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[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],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],worldForce.color[3],worldForce.color[2],worldForce.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],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 (1214): * Single equations (assignments): 1208 * 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%) 13,(1,100.0%) 14,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004361/2.524, allocations: 0.6275 MB / 0.7742 GB, free: 1.008 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02705/2.551, allocations: 6.634 MB / 0.7807 GB, free: 12.63 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002656/2.554, allocations: 0.5515 MB / 0.7812 GB, free: 12.07 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02143/2.575, allocations: 6.257 MB / 0.7873 GB, free: 6.969 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001349/2.575, allocations: 36 kB / 0.7874 GB, free: 6.934 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.533e-05/2.575, allocations: 8 kB / 0.7874 GB, free: 6.926 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001496/2.576, allocations: 24.86 kB / 0.7874 GB, free: 6.922 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05377/2.629, allocations: 14.24 MB / 0.8013 GB, free: 12.47 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.051e-05/2.629, allocations: 0 / 0.8013 GB, free: 12.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006402/2.636, allocations: 0.5804 MB / 0.8019 GB, free: 12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005339/2.641, allocations: 1.041 MB / 0.8029 GB, free: 11.25 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000975/2.642, allocations: 11.19 kB / 0.8029 GB, free: 11.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02068/2.663, allocations: 9.725 MB / 0.8124 GB, free: 1.777 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/2.663, allocations: 3.938 kB / 0.8124 GB, free: 1.773 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3917/3.055, allocations: 10.76 MB / 0.8229 GB, free: 119.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004956/3.06, allocations: 1.077 MB / 0.824 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002691/3.062, allocations: 4.156 kB / 0.824 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006554/3.069, allocations: 152.9 kB / 0.8241 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001576/3.071, allocations: 195.7 kB / 0.8243 GB, free: 119.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005375/3.071, allocations: 90.8 kB / 0.8244 GB, free: 119.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01114/3.082, allocations: 3.448 MB / 0.8277 GB, free: 118.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.755e-06/3.082, allocations: 4.906 kB / 0.8278 GB, free: 118.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01502/3.097, allocations: 1.546 MB / 0.8293 GB, free: 118.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (286): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02806/3.126, allocations: 11.63 MB / 0.8406 GB, free: 117.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0206/3.146, allocations: 8.767 MB / 0.8492 GB, free: 116.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.385e-06/3.146, allocations: 3.5 kB / 0.8492 GB, free: 116.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008708/3.155, allocations: 3.385 MB / 0.8525 GB, free: 115.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007166/3.162, allocations: 0.6144 MB / 0.8531 GB, free: 115.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05991/3.222, allocations: 17.17 MB / 0.8699 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0153/3.238, allocations: 5.615 MB / 0.8753 GB, free: 107.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01014/3.248, allocations: 3.663 MB / 0.8789 GB, free: 104.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.543e-06/3.248, allocations: 0 / 0.8789 GB, free: 104.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.796/9.044, allocations: 235.5 MB / 1.109 GB, free: 40.79 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat does not exist to compare? outputFormat=mat