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.996/1.996, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.926e-05/3.938e-05, allocations: 4 kB / 273.1 MB, free: 0.6562 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1055, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4421/0.5477, allocations: 92.68 MB / 414.5 MB, free: 13.13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002996/0.5481, allocations: 71.97 kB / 414.6 MB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8989/1.447, allocations: 136.9 MB / 0.5386 GB, free: 87.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.447, allocations: 0 / 0.5386 GB, free: 87.71 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005204/1.448, allocations: 132.9 kB / 0.5387 GB, free: 87.71 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.02857/1.476, allocations: 6.644 MB / 0.5452 GB, free: 85.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.752e-05/1.476, allocations: 7.594 kB / 0.5452 GB, free: 85.05 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006173/1.482, allocations: 1.191 MB / 0.5464 GB, free: 84.95 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07022/1.553, allocations: 9.493 MB / 0.5556 GB, free: 84.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03241/1.585, allocations: 8.72 MB / 0.5642 GB, free: 82.31 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008475/1.586, allocations: 0.5067 MB / 0.5647 GB, free: 82.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004146/1.59, allocations: 0.6752 MB / 0.5653 GB, free: 81.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04996/1.64, allocations: 15.88 MB / 0.5808 GB, free: 72.51 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005571/1.641, allocations: 99.11 kB / 0.5809 GB, free: 72.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003284/1.644, allocations: 330.3 kB / 0.5812 GB, free: 72.13 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003131/1.647, allocations: 1.455 MB / 0.5827 GB, free: 70.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03884/1.686, allocations: 12.38 MB / 0.5947 GB, free: 58.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1167/1.803, allocations: 70.66 MB / 0.6638 GB, free: 2.031 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3799/2.183, allocations: 5.803 MB / 0.6694 GB, free: 95.16 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009763/2.193, allocations: 3.04 MB / 0.6724 GB, free: 95.12 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003473/2.193, allocations: 48.67 kB / 0.6724 GB, free: 95.12 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.103e-05/2.193, allocations: 57.3 kB / 0.6725 GB, free: 95.08 MB / 442.7 MB Notification: Performance of pre-optimization done (n=242): time 9.458e-06/2.193, allocations: 3.906 kB / 0.6725 GB, free: 95.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=260): time 0.08905/2.283, allocations: 18.96 MB / 0.691 GB, free: 90.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/2.283, allocations: 267.4 kB / 0.6913 GB, free: 90.12 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01614/2.299, allocations: 6.084 MB / 0.6972 GB, free: 89.61 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000756/2.3, allocations: 65.05 kB / 0.6973 GB, free: 89.58 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004576/2.304, allocations: 4.611 MB / 0.7018 GB, free: 87.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001745/2.306, allocations: 1.001 MB / 0.7027 GB, free: 86.6 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001108/2.307, allocations: 169.2 kB / 0.7029 GB, free: 86.6 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005967/2.308, allocations: 0.6624 MB / 0.7036 GB, free: 86.27 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00727/2.315, allocations: 2.786 MB / 0.7063 GB, free: 85.71 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01098/2.326, allocations: 7.859 MB / 0.714 GB, free: 77.91 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/2.337, allocations: 4.669 MB / 0.7185 GB, free: 76.58 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002187/2.337, allocations: 53.34 kB / 0.7186 GB, free: 76.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.02896/2.366, allocations: 10.28 MB / 0.7286 GB, free: 73.43 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001523/2.367, allocations: 81.62 kB / 0.7287 GB, free: 73.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002645/2.367, allocations: 184.1 kB / 0.7289 GB, free: 73.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003194/2.37, allocations: 0.8143 MB / 0.7296 GB, free: 73.28 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01199/2.382, allocations: 1.921 MB / 0.7315 GB, free: 73.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01264/2.395, allocations: 8.303 MB / 0.7396 GB, free: 67.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01075/2.406, allocations: 455 kB / 0.7401 GB, free: 67.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00201/2.408, allocations: 0.5011 MB / 0.7406 GB, free: 67 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.001875/2.409, allocations: 0.7659 MB / 0.7413 GB, free: 66.38 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001609/2.411, allocations: 0.5817 MB / 0.7419 GB, free: 66.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01179/2.423, allocations: 4.266 MB / 0.746 GB, free: 64.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-05/2.423, allocations: 32.86 kB / 0.7461 GB, free: 64.43 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.717e-05/2.423, allocations: 7.438 kB / 0.7461 GB, free: 64.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.104e-05/2.423, allocations: 12.52 kB / 0.7461 GB, free: 64.43 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03185/2.455, allocations: 11.16 MB / 0.757 GB, free: 58.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.321e-05/2.455, allocations: 0 / 0.757 GB, free: 58.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004036/2.459, allocations: 416.9 kB / 0.7574 GB, free: 58.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002434/2.462, allocations: 0.4947 MB / 0.7579 GB, free: 58.13 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004651/2.462, allocations: 48.8 kB / 0.7579 GB, free: 58.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01074/2.473, allocations: 7.378 MB / 0.7651 GB, free: 50.96 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/2.473, allocations: 0 / 0.7651 GB, free: 50.96 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0159/2.489, allocations: 7.621 MB / 0.7726 GB, free: 44.08 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003766/2.493, allocations: 1 MB / 0.7735 GB, free: 43.14 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001359/2.494, allocations: 43.81 kB / 0.7736 GB, free: 43.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004081/2.498, allocations: 138.5 kB / 0.7737 GB, free: 43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005282/2.499, allocations: 158 kB / 0.7739 GB, free: 42.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002612/2.499, allocations: 72.39 kB / 0.7739 GB, free: 42.84 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0102/2.509, allocations: 4.33 MB / 0.7782 GB, free: 39.03 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.91e-07/2.509, allocations: 0 / 0.7782 GB, free: 39.03 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01102/2.52, allocations: 1.509 MB / 0.7796 GB, free: 37.53 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.01639/2.537, allocations: 8.467 MB / 0.7879 GB, free: 29.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01532/2.552, allocations: 6.84 MB / 0.7946 GB, free: 23.58 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/2.552, allocations: 4 kB / 0.7946 GB, free: 23.58 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005041/2.557, allocations: 2.355 MB / 0.7969 GB, free: 21.41 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006651/2.564, allocations: 0.7565 MB / 0.7976 GB, free: 20.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04857/2.613, allocations: 14.98 MB / 0.8123 GB, free: 7.84 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01155/2.624, allocations: 5.039 MB / 0.8172 GB, free: 4.141 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007877/2.632, allocations: 3.29 MB / 0.8204 GB, free: 1.082 MB / 442.7 MB Notification: Performance of SimCode: time 2.585e-06/2.632, allocations: 0 / 0.8204 GB, free: 1.082 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.101/8.734, allocations: 211.9 MB / 1.027 GB, free: 121.9 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