Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.331/2.331, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.945e-05/3.949e-05, allocations: 4 kB / 305 MB, free: 5.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5309/0.531, allocations: 54.84 MB / 359.9 MB, free: 2.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1845/0.7155, allocations: 99.48 MB / 459.3 MB, free: 13.36 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003489/0.7159, allocations: 75.97 kB / 459.4 MB, free: 13.28 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9341/1.65, allocations: 137 MB / 0.5825 GB, free: 97.03 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.686e-06/1.65, allocations: 3.938 kB / 0.5825 GB, free: 97.02 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004792/1.651, allocations: 133.2 kB / 0.5826 GB, free: 97.02 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: 2367 * Number of variables: 2367 Notification: Performance of Generate backend data structure: time 0.02847/1.679, allocations: 6.633 MB / 0.5891 GB, free: 93.33 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/1.679, allocations: 11.22 kB / 0.5891 GB, free: 93.33 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005858/1.685, allocations: 1.19 MB / 0.5902 GB, free: 92.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06956/1.755, allocations: 9.491 MB / 0.5995 GB, free: 87.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0303/1.785, allocations: 8.734 MB / 0.608 GB, free: 80.01 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000635/1.786, allocations: 0.5022 MB / 0.6085 GB, free: 79.55 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003873/1.79, allocations: 0.6807 MB / 0.6092 GB, free: 78.91 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0484/1.838, allocations: 15.89 MB / 0.6247 GB, free: 61.67 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005015/1.839, allocations: 95.12 kB / 0.6248 GB, free: 61.58 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002708/1.841, allocations: 329.7 kB / 0.6251 GB, free: 61.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003213/1.845, allocations: 1.459 MB / 0.6265 GB, free: 59.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03905/1.884, allocations: 12.39 MB / 0.6386 GB, free: 47.44 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5453/2.429, allocations: 70.68 MB / 0.7077 GB, free: 54.57 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02907/2.458, allocations: 5.815 MB / 0.7133 GB, free: 53.87 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008217/2.466, allocations: 3.03 MB / 0.7163 GB, free: 53.83 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003848/2.467, allocations: 48 kB / 0.7164 GB, free: 53.82 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000102/2.467, allocations: 68.02 kB / 0.7164 GB, free: 53.79 MB / 474.7 MB Notification: Performance of pre-optimization done (n=242): time 3.846e-05/2.467, allocations: 0 / 0.7164 GB, free: 53.79 MB / 474.7 MB Notification: Performance of matching and sorting (n=260): time 0.08592/2.553, allocations: 18.97 MB / 0.7349 GB, free: 48.78 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/2.553, allocations: 268.1 kB / 0.7352 GB, free: 48.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01456/2.568, allocations: 6.078 MB / 0.7411 GB, free: 47.99 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006651/2.568, allocations: 64.8 kB / 0.7412 GB, free: 47.96 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004804/2.573, allocations: 4.6 MB / 0.7457 GB, free: 45.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001858/2.575, allocations: 1.012 MB / 0.7467 GB, free: 44.83 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00116/2.576, allocations: 165.8 kB / 0.7468 GB, free: 44.83 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005761/2.577, allocations: 0.6678 MB / 0.7475 GB, free: 44.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006922/2.584, allocations: 2.786 MB / 0.7502 GB, free: 44.48 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01081/2.595, allocations: 7.861 MB / 0.7579 GB, free: 37.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01228/2.607, allocations: 4.668 MB / 0.7624 GB, free: 36.17 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002786/2.607, allocations: 53.66 kB / 0.7625 GB, free: 36.17 MB / 474.7 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.03895/2.646, allocations: 10.27 MB / 0.7725 GB, free: 33.43 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001993/2.647, allocations: 84.78 kB / 0.7726 GB, free: 33.43 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003223/2.647, allocations: 181.1 kB / 0.7728 GB, free: 33.43 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004331/2.651, allocations: 0.8117 MB / 0.7736 GB, free: 33.28 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01592/2.667, allocations: 1.927 MB / 0.7755 GB, free: 33.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01729/2.685, allocations: 8.286 MB / 0.7835 GB, free: 27.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01068/2.695, allocations: 462.5 kB / 0.784 GB, free: 27.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001793/2.697, allocations: 0.5006 MB / 0.7845 GB, free: 27.02 MB / 474.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.001793/2.699, allocations: 0.7686 MB / 0.7852 GB, free: 26.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001527/2.701, allocations: 0.5851 MB / 0.7858 GB, free: 26.08 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01181/2.712, allocations: 4.264 MB / 0.79 GB, free: 24.47 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-05/2.713, allocations: 28.72 kB / 0.79 GB, free: 24.47 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.029e-05/2.713, allocations: 7.156 kB / 0.79 GB, free: 24.47 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.385e-05/2.713, allocations: 11.91 kB / 0.79 GB, free: 24.47 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03642/2.749, allocations: 11.16 MB / 0.8009 GB, free: 17.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4e-05/2.749, allocations: 0.75 kB / 0.8009 GB, free: 17.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004302/2.753, allocations: 418.8 kB / 0.8013 GB, free: 16.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002639/2.756, allocations: 0.4978 MB / 0.8018 GB, free: 16.38 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007113/2.757, allocations: 47.52 kB / 0.8018 GB, free: 16.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0109/2.768, allocations: 7.385 MB / 0.809 GB, free: 9.195 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/2.768, allocations: 0 / 0.809 GB, free: 9.195 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01674/2.785, allocations: 7.62 MB / 0.8165 GB, free: 2.324 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004049/2.789, allocations: 0.9919 MB / 0.8175 GB, free: 1.391 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001926/2.791, allocations: 44 kB / 0.8175 GB, free: 1.348 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004705/2.795, allocations: 138.4 kB / 0.8176 GB, free: 1.258 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008208/2.796, allocations: 155 kB / 0.8178 GB, free: 1.164 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002848/2.797, allocations: 71.52 kB / 0.8178 GB, free: 1.098 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.02591/2.823, allocations: 5.102 MB / 0.8228 GB, free: 15.12 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.152e-06/2.823, allocations: 0 / 0.8228 GB, free: 15.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01198/2.835, allocations: 1.516 MB / 0.8243 GB, free: 13.61 MB / 490.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.02086/2.856, allocations: 8.467 MB / 0.8326 GB, free: 5.902 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01883/2.874, allocations: 6.836 MB / 0.8393 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/2.874, allocations: 0 / 0.8393 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005771/2.88, allocations: 2.354 MB / 0.8416 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006031/2.886, allocations: 0.7529 MB / 0.8423 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04935/2.936, allocations: 14.99 MB / 0.8569 GB, free: 15.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01078/2.947, allocations: 5.021 MB / 0.8618 GB, free: 10.06 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007978/2.955, allocations: 3.299 MB / 0.8651 GB, free: 6.758 MB / 0.5105 GB Notification: Performance of SimCode: time 1.463e-06/2.955, allocations: 0 / 0.8651 GB, free: 6.758 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.734/8.689, allocations: 211.9 MB / 1.072 GB, free: 43.8 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat