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 1.92/1.92, allocations: 209.3 MB / 221.9 MB, free: 1.949 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.094e-05/5.104e-05, allocations: 7.938 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1211, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4456/0.5668, allocations: 98 MB / 419.8 MB, free: 7.805 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.5671, allocations: 78.48 kB / 419.9 MB, free: 7.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7881/1.355, allocations: 110.6 MB / 0.5181 GB, free: 92.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.355, allocations: 0 / 0.5181 GB, free: 92.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004452/1.356, allocations: 115.7 kB / 0.5182 GB, free: 92.25 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.02512/1.381, allocations: 5.874 MB / 0.524 GB, free: 90.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/1.381, allocations: 11.03 kB / 0.524 GB, free: 90.02 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0043/1.385, allocations: 0.9695 MB / 0.5249 GB, free: 89.94 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04908/1.434, allocations: 6.898 MB / 0.5316 GB, free: 89.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02552/1.46, allocations: 7.058 MB / 0.5385 GB, free: 88.72 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005104/1.46, allocations: 410.5 kB / 0.5389 GB, free: 88.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003013/1.464, allocations: 0.5412 MB / 0.5395 GB, free: 88.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04433/1.508, allocations: 14 MB / 0.5531 GB, free: 84.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000392/1.508, allocations: 76.86 kB / 0.5532 GB, free: 84.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002612/1.511, allocations: 262.3 kB / 0.5535 GB, free: 83.96 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003021/1.514, allocations: 1.36 MB / 0.5548 GB, free: 83.72 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03745/1.552, allocations: 11.56 MB / 0.5661 GB, free: 80.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09415/1.646, allocations: 60.61 MB / 0.6253 GB, free: 25.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02698/1.673, allocations: 5.758 MB / 0.6309 GB, free: 19.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006468/1.679, allocations: 3.247 MB / 0.6341 GB, free: 16.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03741/1.717, allocations: 14.74 MB / 0.6485 GB, free: 1.141 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.932e-05/1.717, allocations: 64.5 kB / 0.6485 GB, free: 1.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=226): time 9.127e-06/1.717, allocations: 4 kB / 0.6485 GB, free: 1.066 MB / 426.7 MB Notification: Performance of matching and sorting (n=263): time 0.4569/2.174, allocations: 21.9 MB / 0.6699 GB, free: 98.67 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/2.174, allocations: 263.5 kB / 0.6702 GB, free: 98.39 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01797/2.192, allocations: 4.394 MB / 0.6745 GB, free: 97.97 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007685/2.193, allocations: 70.58 kB / 0.6745 GB, free: 97.94 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005327/2.198, allocations: 3.81 MB / 0.6782 GB, free: 96.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00229/2.201, allocations: 0.9814 MB / 0.6792 GB, free: 95.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0014/2.202, allocations: 150.5 kB / 0.6793 GB, free: 95.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009944/2.203, allocations: 0.618 MB / 0.6799 GB, free: 95.36 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01061/2.214, allocations: 2.517 MB / 0.6824 GB, free: 95.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0149/2.229, allocations: 6.843 MB / 0.6891 GB, free: 89.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01061/2.239, allocations: 4.111 MB / 0.6931 GB, free: 89.77 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003335/2.24, allocations: 48.14 kB / 0.6931 GB, free: 89.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02634/2.266, allocations: 9.409 MB / 0.7023 GB, free: 88.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000152/2.266, allocations: 67.66 kB / 0.7024 GB, free: 88.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002531/2.267, allocations: 158.5 kB / 0.7026 GB, free: 88.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002296/2.269, allocations: 0.5804 MB / 0.7031 GB, free: 88.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01149/2.28, allocations: 1.733 MB / 0.7048 GB, free: 88.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008947/2.289, allocations: 5.623 MB / 0.7103 GB, free: 84.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009182/2.299, allocations: 397.2 kB / 0.7107 GB, free: 84.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001882/2.301, allocations: 445.5 kB / 0.7111 GB, free: 84.15 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.002903/2.303, allocations: 0.6703 MB / 0.7118 GB, free: 83.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001586/2.305, allocations: 474.5 kB / 0.7122 GB, free: 83.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01273/2.318, allocations: 3.972 MB / 0.7161 GB, free: 81.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.078e-05/2.318, allocations: 29.22 kB / 0.7161 GB, free: 81.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.31e-05/2.318, allocations: 3.938 kB / 0.7161 GB, free: 81.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-05/2.318, allocations: 15.41 kB / 0.7161 GB, free: 81.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04184/2.36, allocations: 10.23 MB / 0.7261 GB, free: 78.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.242e-05/2.36, allocations: 0 / 0.7261 GB, free: 78.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006172/2.366, allocations: 468.5 kB / 0.7266 GB, free: 78.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00232/2.369, allocations: 343.5 kB / 0.7269 GB, free: 77.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006304/2.369, allocations: 50.78 kB / 0.727 GB, free: 77.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01008/2.379, allocations: 4.953 MB / 0.7318 GB, free: 74.24 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/2.379, allocations: 3.938 kB / 0.7318 GB, free: 74.24 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02106/2.4, allocations: 7.077 MB / 0.7387 GB, free: 71.16 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003553/2.404, allocations: 0.8211 MB / 0.7395 GB, free: 70.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001791/2.406, allocations: 47.31 kB / 0.7396 GB, free: 70.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004862/2.411, allocations: 166.6 kB / 0.7397 GB, free: 70.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008507/2.412, allocations: 137.9 kB / 0.7398 GB, free: 70.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002903/2.412, allocations: 68.69 kB / 0.7399 GB, free: 70.57 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008185/2.42, allocations: 3.072 MB / 0.7429 GB, free: 69.52 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.91e-07/2.42, allocations: 0 / 0.7429 GB, free: 69.52 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009585/2.43, allocations: 1.294 MB / 0.7442 GB, free: 69.36 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.01716/2.447, allocations: 7.903 MB / 0.7519 GB, free: 65.58 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01481/2.462, allocations: 6.366 MB / 0.7581 GB, free: 61.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/2.462, allocations: 0 / 0.7581 GB, free: 61.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004802/2.467, allocations: 2.186 MB / 0.7602 GB, free: 59.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005181/2.472, allocations: 0.5667 MB / 0.7608 GB, free: 59.12 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03988/2.512, allocations: 12.5 MB / 0.773 GB, free: 48.32 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009658/2.522, allocations: 4.217 MB / 0.7771 GB, free: 45.19 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00661/2.528, allocations: 2.682 MB / 0.7797 GB, free: 42.71 MB / 442.7 MB Notification: Performance of SimCode: time 1.303e-06/2.528, allocations: 0 / 0.7797 GB, free: 42.71 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.304/7.833, allocations: 151.9 MB / 0.9281 GB, free: 38.41 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