Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.021/2.021, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.952e-05/2.974e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4774/0.5839, allocations: 97.59 MB / 413.9 MB, free: 10.99 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.5842, allocations: 79.62 kB / 414 MB, free: 10.95 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.755/1.339, allocations: 108.2 MB / 0.51 GB, free: 86.26 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.339, allocations: 4 kB / 0.51 GB, free: 86.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004219/1.34, allocations: 114.1 kB / 0.5101 GB, free: 86.25 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: 1935 * Number of variables: 1935 Notification: Performance of Generate backend data structure: time 0.02489/1.365, allocations: 5.869 MB / 0.5158 GB, free: 84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/1.365, allocations: 9.875 kB / 0.5158 GB, free: 84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04975/1.415, allocations: 6.891 MB / 0.5225 GB, free: 83.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02633/1.441, allocations: 7.051 MB / 0.5294 GB, free: 82.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003985/1.441, allocations: 177.2 kB / 0.5296 GB, free: 82.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00314/1.445, allocations: 326 kB / 0.5299 GB, free: 82.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02044/1.465, allocations: 8.102 MB / 0.5378 GB, free: 81.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03132/1.496, allocations: 12.03 MB / 0.5496 GB, free: 74.81 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004092/1.497, allocations: 72.75 kB / 0.5496 GB, free: 74.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002747/1.5, allocations: 40.67 kB / 0.5497 GB, free: 74.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003026/1.503, allocations: 1.358 MB / 0.551 GB, free: 74.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09109/1.594, allocations: 60.59 MB / 0.6102 GB, free: 15.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007835/1.602, allocations: 4.358 MB / 0.6144 GB, free: 10.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005657/1.607, allocations: 3.048 MB / 0.6174 GB, free: 7.539 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0302/1.638, allocations: 12.37 MB / 0.6295 GB, free: 10.91 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.349e-05/1.638, allocations: 60.55 kB / 0.6295 GB, free: 10.85 MB / 426.7 MB Notification: Performance of pre-optimization done (n=226): time 6.422e-06/1.638, allocations: 0 / 0.6295 GB, free: 10.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=264): time 0.4016/2.039, allocations: 24.82 MB / 0.6538 GB, free: 91.26 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/2.04, allocations: 264 kB / 0.654 GB, free: 90.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01136/2.051, allocations: 3.852 MB / 0.6578 GB, free: 90.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006919/2.052, allocations: 28.27 kB / 0.6578 GB, free: 90.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003774/2.056, allocations: 3.916 MB / 0.6616 GB, free: 88.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001775/2.057, allocations: 0.9651 MB / 0.6626 GB, free: 87.83 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001045/2.058, allocations: 0 / 0.6626 GB, free: 87.83 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007497/2.059, allocations: 0.6331 MB / 0.6632 GB, free: 87.51 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006296/2.066, allocations: 2.43 MB / 0.6656 GB, free: 87.49 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009473/2.075, allocations: 6.874 MB / 0.6723 GB, free: 81.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009202/2.084, allocations: 4.042 MB / 0.6762 GB, free: 81.67 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002323/2.085, allocations: 46.62 kB / 0.6763 GB, free: 81.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=993) (initialization): time 0.02467/2.109, allocations: 8.635 MB / 0.6847 GB, free: 79.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001383/2.11, allocations: 78.84 kB / 0.6848 GB, free: 79.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002738/2.11, allocations: 161.5 kB / 0.6849 GB, free: 79.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002287/2.112, allocations: 0.5855 MB / 0.6855 GB, free: 78.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01172/2.124, allocations: 1.79 MB / 0.6873 GB, free: 78.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008568/2.133, allocations: 5.414 MB / 0.6926 GB, free: 75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009059/2.142, allocations: 265.5 kB / 0.6928 GB, free: 74.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001941/2.144, allocations: 452.5 kB / 0.6932 GB, free: 74.92 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 723 * Number of states: 0 () * Number of discrete variables: 54 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.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 (943): * Single equations (assignments): 938 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003051/2.147, allocations: 0.5037 MB / 0.6937 GB, free: 74.51 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01118/2.158, allocations: 3.934 MB / 0.6976 GB, free: 73.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001842/2.16, allocations: 445.4 kB / 0.698 GB, free: 72.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0111/2.171, allocations: 3.781 MB / 0.7017 GB, free: 71.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.128e-05/2.171, allocations: 27.94 kB / 0.7017 GB, free: 71.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.991e-05/2.171, allocations: 7.406 kB / 0.7017 GB, free: 71.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.179e-05/2.171, allocations: 19.7 kB / 0.7017 GB, free: 71.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02921/2.2, allocations: 9.012 MB / 0.7105 GB, free: 68.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.121e-05/2.2, allocations: 3.75 kB / 0.7105 GB, free: 68.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004812/2.205, allocations: 469.5 kB / 0.711 GB, free: 68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001706/2.207, allocations: 335.7 kB / 0.7113 GB, free: 67.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006037/2.208, allocations: 12.17 kB / 0.7113 GB, free: 67.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007133/2.215, allocations: 4.757 MB / 0.716 GB, free: 64.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/2.215, allocations: 3.469 kB / 0.716 GB, free: 64.39 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01566/2.231, allocations: 6.886 MB / 0.7227 GB, free: 61.37 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003302/2.234, allocations: 0.785 MB / 0.7235 GB, free: 60.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001834/2.236, allocations: 7.812 kB / 0.7235 GB, free: 60.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004557/2.24, allocations: 123.2 kB / 0.7236 GB, free: 60.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009079/2.241, allocations: 142.7 kB / 0.7237 GB, free: 60.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003008/2.242, allocations: 63.31 kB / 0.7238 GB, free: 60.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007054/2.249, allocations: 2.588 MB / 0.7263 GB, free: 59.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.092e-06/2.249, allocations: 0 / 0.7263 GB, free: 59.15 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01002/2.259, allocations: 1.109 MB / 0.7274 GB, free: 58.05 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (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 (225): * Single equations (assignments): 220 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.01603/2.275, allocations: 7.68 MB / 0.7349 GB, free: 51.06 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01358/2.289, allocations: 6.068 MB / 0.7408 GB, free: 45.54 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/2.289, allocations: 4 kB / 0.7408 GB, free: 45.54 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004523/2.293, allocations: 2.121 MB / 0.7429 GB, free: 43.58 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004701/2.298, allocations: 474.9 kB / 0.7433 GB, free: 43.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04022/2.338, allocations: 12.2 MB / 0.7553 GB, free: 32.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009759/2.348, allocations: 4.22 MB / 0.7594 GB, free: 29.56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006738/2.355, allocations: 2.66 MB / 0.762 GB, free: 27.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.262e-06/2.355, allocations: 0 / 0.762 GB, free: 27.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.193/7.548, allocations: 149.2 MB / 0.9077 GB, free: 32.7 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat does not exist to compare? outputFormat=mat