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.005/2.005, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.065e-05/4.068e-05, allocations: 7.984 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1056, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.44/0.5456, allocations: 98 MB / 419.9 MB, free: 7.785 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.5459, allocations: 75.95 kB / 419.9 MB, free: 7.711 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8019/1.348, allocations: 110.6 MB / 0.5181 GB, free: 92.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.946e-06/1.348, allocations: 2.906 kB / 0.5181 GB, free: 92.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004623/1.348, allocations: 112.8 kB / 0.5182 GB, free: 92.34 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: 1935 * Number of variables: 1935 Notification: Performance of Generate backend data structure: time 0.02641/1.375, allocations: 5.873 MB / 0.524 GB, free: 90.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/1.375, allocations: 10.62 kB / 0.524 GB, free: 90.11 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00462/1.38, allocations: 0.9714 MB / 0.5249 GB, free: 90.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04971/1.429, allocations: 6.902 MB / 0.5317 GB, free: 89.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02693/1.456, allocations: 7.056 MB / 0.5386 GB, free: 88.79 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005224/1.457, allocations: 410.4 kB / 0.539 GB, free: 88.78 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003092/1.46, allocations: 0.5403 MB / 0.5395 GB, free: 88.78 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04403/1.504, allocations: 13.93 MB / 0.5531 GB, free: 84.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003933/1.504, allocations: 75.47 kB / 0.5532 GB, free: 84.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002667/1.507, allocations: 260.8 kB / 0.5534 GB, free: 84.09 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003192/1.51, allocations: 1.364 MB / 0.5547 GB, free: 83.85 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03794/1.548, allocations: 11.35 MB / 0.5658 GB, free: 80.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09064/1.639, allocations: 60.61 MB / 0.625 GB, free: 25.76 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02703/1.666, allocations: 5.744 MB / 0.6306 GB, free: 19.86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006404/1.673, allocations: 3.243 MB / 0.6338 GB, free: 16.62 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03168/1.704, allocations: 14.73 MB / 0.6482 GB, free: 1.414 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.038e-05/1.705, allocations: 64.5 kB / 0.6482 GB, free: 1.344 MB / 426.7 MB Notification: Performance of pre-optimization done (n=226): time 7.033e-06/1.705, allocations: 4 kB / 0.6482 GB, free: 1.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=263): time 0.4338/2.138, allocations: 21.9 MB / 0.6696 GB, free: 98.78 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/2.139, allocations: 261.1 kB / 0.6699 GB, free: 98.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01383/2.152, allocations: 4.393 MB / 0.6742 GB, free: 98.08 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007111/2.153, allocations: 64.94 kB / 0.6742 GB, free: 98.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004182/2.157, allocations: 3.813 MB / 0.678 GB, free: 96.32 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001873/2.159, allocations: 0.9902 MB / 0.6789 GB, free: 95.81 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001075/2.16, allocations: 146.8 kB / 0.6791 GB, free: 95.81 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007631/2.161, allocations: 0.6184 MB / 0.6797 GB, free: 95.49 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007895/2.169, allocations: 2.521 MB / 0.6821 GB, free: 95.47 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01131/2.18, allocations: 6.791 MB / 0.6888 GB, free: 89.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01039/2.191, allocations: 4.113 MB / 0.6928 GB, free: 89.91 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002677/2.191, allocations: 41.69 kB / 0.6928 GB, free: 89.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02619/2.217, allocations: 8.99 MB / 0.7016 GB, free: 89.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001575/2.218, allocations: 68.62 kB / 0.7017 GB, free: 89.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002616/2.218, allocations: 156.1 kB / 0.7018 GB, free: 89.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002269/2.22, allocations: 0.59 MB / 0.7024 GB, free: 88.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01147/2.232, allocations: 1.733 MB / 0.7041 GB, free: 88.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00986/2.242, allocations: 5.613 MB / 0.7096 GB, free: 84.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009258/2.251, allocations: 399.9 kB / 0.7099 GB, free: 84.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001793/2.253, allocations: 439.4 kB / 0.7104 GB, free: 84.63 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * 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 (912): * Single equations (assignments): 907 * 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.002602/2.255, allocations: 0.6746 MB / 0.711 GB, free: 84.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001472/2.257, allocations: 468 kB / 0.7115 GB, free: 83.83 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01058/2.268, allocations: 3.976 MB / 0.7154 GB, free: 82.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.653e-05/2.268, allocations: 27.5 kB / 0.7154 GB, free: 82.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.652e-05/2.268, allocations: 7.438 kB / 0.7154 GB, free: 82.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.675e-05/2.268, allocations: 12.36 kB / 0.7154 GB, free: 82.27 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03295/2.301, allocations: 10.23 MB / 0.7254 GB, free: 78.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-05/2.301, allocations: 3.625 kB / 0.7254 GB, free: 78.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004612/2.305, allocations: 472.4 kB / 0.7258 GB, free: 78.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001691/2.307, allocations: 345.4 kB / 0.7262 GB, free: 78.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000522/2.308, allocations: 47.34 kB / 0.7262 GB, free: 78.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007226/2.315, allocations: 4.951 MB / 0.7311 GB, free: 74.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/2.315, allocations: 3.609 kB / 0.7311 GB, free: 74.71 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01531/2.33, allocations: 7.081 MB / 0.738 GB, free: 71.63 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003428/2.334, allocations: 0.8185 MB / 0.7388 GB, free: 71.14 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001541/2.335, allocations: 45.12 kB / 0.7388 GB, free: 71.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004607/2.34, allocations: 163.1 kB / 0.739 GB, free: 71.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007418/2.341, allocations: 143.7 kB / 0.7391 GB, free: 71.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002795/2.341, allocations: 69.09 kB / 0.7392 GB, free: 71.04 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007741/2.349, allocations: 3.073 MB / 0.7422 GB, free: 69.99 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.72e-07/2.349, allocations: 0 / 0.7422 GB, free: 69.99 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009375/2.358, allocations: 1.291 MB / 0.7434 GB, free: 69.83 MB / 442.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 (224): * Single equations (assignments): 219 * 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.01671/2.375, allocations: 7.907 MB / 0.7512 GB, free: 66.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01413/2.389, allocations: 6.127 MB / 0.7571 GB, free: 62.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/2.389, allocations: 4 kB / 0.7571 GB, free: 62.45 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004285/2.394, allocations: 2.152 MB / 0.7592 GB, free: 60.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004827/2.398, allocations: 0.5568 MB / 0.7598 GB, free: 60 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0405/2.439, allocations: 12.49 MB / 0.772 GB, free: 49.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009406/2.448, allocations: 4.219 MB / 0.7761 GB, free: 46.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006429/2.455, allocations: 2.683 MB / 0.7787 GB, free: 43.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.443e-06/2.455, allocations: 0 / 0.7787 GB, free: 43.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.454/7.909, allocations: 150.7 MB / 0.9259 GB, free: 40.37 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