Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.966/1.966, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.545e-05/4.56e-05, allocations: 7.984 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1282, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4345/0.5628, allocations: 92.68 MB / 414.5 MB, free: 13.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5631, allocations: 75.02 kB / 414.6 MB, free: 13.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8698/1.433, allocations: 136.9 MB / 0.5386 GB, free: 88.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.433, allocations: 0 / 0.5386 GB, free: 88.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004834/1.433, allocations: 134.2 kB / 0.5387 GB, free: 88.09 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2364 * Number of variables: 2364 Notification: Performance of Generate backend data structure: time 0.02755/1.461, allocations: 6.641 MB / 0.5452 GB, free: 85.42 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.546e-05/1.461, allocations: 14.3 kB / 0.5452 GB, free: 85.42 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006435/1.468, allocations: 1.18 MB / 0.5463 GB, free: 85.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06877/1.536, allocations: 9.499 MB / 0.5556 GB, free: 84.83 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0312/1.568, allocations: 8.724 MB / 0.5641 GB, free: 82.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000697/1.568, allocations: 0.5089 MB / 0.5646 GB, free: 82.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003901/1.572, allocations: 0.675 MB / 0.5653 GB, free: 82.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04816/1.621, allocations: 15.96 MB / 0.5809 GB, free: 72.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005807/1.621, allocations: 103.1 kB / 0.581 GB, free: 72.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003335/1.625, allocations: 322.6 kB / 0.5813 GB, free: 72.22 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003219/1.628, allocations: 1.452 MB / 0.5827 GB, free: 70.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03887/1.667, allocations: 12.65 MB / 0.5951 GB, free: 58.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1095/1.776, allocations: 70.66 MB / 0.6641 GB, free: 1.859 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3528/2.129, allocations: 5.835 MB / 0.6698 GB, free: 95.47 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006952/2.136, allocations: 3.03 MB / 0.6727 GB, free: 95.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003428/2.136, allocations: 44.59 kB / 0.6728 GB, free: 95.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.69e-05/2.137, allocations: 68.92 kB / 0.6728 GB, free: 95.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=242): time 6.533e-06/2.137, allocations: 0 / 0.6728 GB, free: 95.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=260): time 0.08639/2.223, allocations: 18.98 MB / 0.6914 GB, free: 90.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/2.223, allocations: 257.2 kB / 0.6916 GB, free: 90.42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01648/2.24, allocations: 6.09 MB / 0.6976 GB, free: 89.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007541/2.24, allocations: 64.88 kB / 0.6976 GB, free: 89.88 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004882/2.245, allocations: 4.603 MB / 0.7021 GB, free: 87.47 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001722/2.247, allocations: 1.009 MB / 0.7031 GB, free: 86.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001164/2.248, allocations: 170.8 kB / 0.7033 GB, free: 86.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007188/2.249, allocations: 0.6616 MB / 0.7039 GB, free: 86.57 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007486/2.257, allocations: 2.788 MB / 0.7066 GB, free: 85.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01085/2.267, allocations: 7.915 MB / 0.7144 GB, free: 77.98 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01076/2.278, allocations: 4.66 MB / 0.7189 GB, free: 76.66 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002114/2.279, allocations: 50 kB / 0.719 GB, free: 76.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.02847/2.307, allocations: 10.78 MB / 0.7295 GB, free: 73.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000143/2.307, allocations: 81.75 kB / 0.7296 GB, free: 73.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000291/2.308, allocations: 182.9 kB / 0.7297 GB, free: 73.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003209/2.311, allocations: 0.8103 MB / 0.7305 GB, free: 72.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01214/2.323, allocations: 1.927 MB / 0.7324 GB, free: 72.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01313/2.336, allocations: 8.3 MB / 0.7405 GB, free: 66.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01046/2.347, allocations: 455.1 kB / 0.741 GB, free: 66.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002063/2.349, allocations: 0.5014 MB / 0.7414 GB, free: 66.69 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 54 (worldForce2.color[3],worldForce2.color[2],worldForce2.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],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.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],fixed1.color[3],fixed1.color[2],fixed1.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 (1033): * Single equations (assignments): 1027 * 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%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003289/2.352, allocations: 0.7698 MB / 0.7422 GB, free: 66.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001822/2.354, allocations: 0.5828 MB / 0.7428 GB, free: 65.75 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01319/2.367, allocations: 4.271 MB / 0.7469 GB, free: 64.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.156e-05/2.367, allocations: 26.59 kB / 0.747 GB, free: 64.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.58e-05/2.367, allocations: 7.875 kB / 0.747 GB, free: 64.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.968e-05/2.367, allocations: 11.77 kB / 0.747 GB, free: 64.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03497/2.402, allocations: 11.16 MB / 0.7579 GB, free: 58.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.642e-05/2.402, allocations: 6.438 kB / 0.7579 GB, free: 58.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004168/2.407, allocations: 407.3 kB / 0.7583 GB, free: 57.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002555/2.409, allocations: 0.5048 MB / 0.7588 GB, free: 57.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006391/2.41, allocations: 47.8 kB / 0.7588 GB, free: 57.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01127/2.421, allocations: 7.374 MB / 0.766 GB, free: 50.28 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/2.421, allocations: 0 / 0.766 GB, free: 50.28 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01786/2.439, allocations: 7.637 MB / 0.7735 GB, free: 43.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004161/2.443, allocations: 0.9938 MB / 0.7744 GB, free: 42.47 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002063/2.446, allocations: 40 kB / 0.7745 GB, free: 42.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005472/2.451, allocations: 140.4 kB / 0.7746 GB, free: 42.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009631/2.452, allocations: 160 kB / 0.7748 GB, free: 42.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003106/2.452, allocations: 72.7 kB / 0.7748 GB, free: 42.17 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01181/2.464, allocations: 4.333 MB / 0.7791 GB, free: 38.36 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.372e-06/2.464, allocations: 0 / 0.7791 GB, free: 38.36 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01095/2.475, allocations: 1.514 MB / 0.7805 GB, free: 36.85 MB / 442.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,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 209 * 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%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01882/2.494, allocations: 8.463 MB / 0.7888 GB, free: 29.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0161/2.51, allocations: 7.117 MB / 0.7958 GB, free: 22.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.739e-06/2.51, allocations: 4 kB / 0.7958 GB, free: 22.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005358/2.516, allocations: 2.4 MB / 0.7981 GB, free: 20.41 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006545/2.522, allocations: 0.7438 MB / 0.7988 GB, free: 19.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04934/2.572, allocations: 14.99 MB / 0.8135 GB, free: 6.824 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01202/2.584, allocations: 5.034 MB / 0.8184 GB, free: 3.129 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008421/2.592, allocations: 3.294 MB / 0.8216 GB, free: 68 kB / 442.7 MB Notification: Performance of SimCode: time 1.733e-06/2.592, allocations: 3.938 kB / 0.8216 GB, free: 64 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.918/8.51, allocations: 213.6 MB / 1.03 GB, free: 124 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat