Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.351/2.351, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.74e-05/3.752e-05, allocations: 4.938 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.4097, allocations: 54.86 MB / 359.9 MB, free: 2.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1891/0.5989, allocations: 104.8 MB / 464.7 MB, free: 7.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/0.5993, allocations: 71.97 kB / 464.8 MB, free: 7.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8068/1.406, allocations: 110.7 MB / 0.562 GB, free: 103.5 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.004e-06/1.406, allocations: 0 / 0.562 GB, free: 103.5 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004215/1.407, allocations: 111.5 kB / 0.5621 GB, free: 103.5 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: 1937 * Number of variables: 1937 Notification: Performance of Generate backend data structure: time 0.02569/1.432, allocations: 5.883 MB / 0.5679 GB, free: 101.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/1.432, allocations: 10.03 kB / 0.5679 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004688/1.437, allocations: 0.967 MB / 0.5688 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05026/1.487, allocations: 6.9 MB / 0.5756 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02611/1.513, allocations: 7.068 MB / 0.5825 GB, free: 98.47 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005126/1.514, allocations: 412.5 kB / 0.5829 GB, free: 98.32 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003176/1.517, allocations: 0.5374 MB / 0.5834 GB, free: 98.16 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04406/1.561, allocations: 13.96 MB / 0.597 GB, free: 90.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003791/1.562, allocations: 75.03 kB / 0.5971 GB, free: 90.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002602/1.564, allocations: 257.6 kB / 0.5973 GB, free: 90.01 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002911/1.567, allocations: 1.36 MB / 0.5987 GB, free: 88.65 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03784/1.605, allocations: 11.35 MB / 0.6098 GB, free: 77.29 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09303/1.698, allocations: 60.62 MB / 0.669 GB, free: 15.18 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02729/1.726, allocations: 5.754 MB / 0.6746 GB, free: 9.273 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006569/1.732, allocations: 3.247 MB / 0.6777 GB, free: 6.016 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03646/1.769, allocations: 14.74 MB / 0.6921 GB, free: 6.809 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.38e-05/1.769, allocations: 56.56 kB / 0.6922 GB, free: 6.746 MB / 474.7 MB Notification: Performance of pre-optimization done (n=226): time 5.42e-06/1.769, allocations: 0 / 0.6922 GB, free: 6.746 MB / 474.7 MB Notification: Performance of matching and sorting (n=263): time 0.4609/2.23, allocations: 21.9 MB / 0.7136 GB, free: 108.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/2.23, allocations: 261.4 kB / 0.7138 GB, free: 107.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01279/2.243, allocations: 4.398 MB / 0.7181 GB, free: 107.4 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007307/2.244, allocations: 62.05 kB / 0.7182 GB, free: 107.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003766/2.247, allocations: 3.824 MB / 0.7219 GB, free: 105.3 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001761/2.249, allocations: 0.985 MB / 0.7229 GB, free: 104.7 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009975/2.25, allocations: 144.7 kB / 0.723 GB, free: 104.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006376/2.251, allocations: 0.6231 MB / 0.7236 GB, free: 104.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006496/2.257, allocations: 2.519 MB / 0.7261 GB, free: 104.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009517/2.267, allocations: 6.792 MB / 0.7327 GB, free: 98.28 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009214/2.276, allocations: 4.11 MB / 0.7367 GB, free: 97.11 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001636/2.276, allocations: 42.41 kB / 0.7368 GB, free: 97.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02499/2.301, allocations: 8.985 MB / 0.7455 GB, free: 94.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/2.302, allocations: 67.38 kB / 0.7456 GB, free: 94.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002685/2.302, allocations: 152 kB / 0.7458 GB, free: 94.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002262/2.304, allocations: 0.5844 MB / 0.7463 GB, free: 94.11 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0113/2.316, allocations: 1.734 MB / 0.748 GB, free: 93.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008889/2.325, allocations: 5.621 MB / 0.7535 GB, free: 90 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009171/2.334, allocations: 396.4 kB / 0.7539 GB, free: 89.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001794/2.336, allocations: 444.5 kB / 0.7543 GB, free: 89.8 MB / 474.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.00273/2.338, allocations: 0.6706 MB / 0.755 GB, free: 89.25 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001541/2.34, allocations: 475.3 kB / 0.7554 GB, free: 89 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/2.351, allocations: 3.972 MB / 0.7593 GB, free: 87.43 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.964e-05/2.352, allocations: 27.94 kB / 0.7593 GB, free: 87.43 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.078e-05/2.352, allocations: 10.75 kB / 0.7593 GB, free: 87.43 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-05/2.352, allocations: 15.36 kB / 0.7594 GB, free: 87.43 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03164/2.383, allocations: 10.23 MB / 0.7693 GB, free: 83.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.644e-05/2.383, allocations: 3.281 kB / 0.7693 GB, free: 83.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00474/2.388, allocations: 468.5 kB / 0.7698 GB, free: 83.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001741/2.39, allocations: 347.4 kB / 0.7701 GB, free: 83.55 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005877/2.391, allocations: 43.2 kB / 0.7702 GB, free: 83.52 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007471/2.398, allocations: 4.951 MB / 0.775 GB, free: 79.84 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/2.398, allocations: 0 / 0.775 GB, free: 79.84 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01637/2.415, allocations: 7.08 MB / 0.7819 GB, free: 76.18 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003397/2.418, allocations: 0.8204 MB / 0.7827 GB, free: 75.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001716/2.42, allocations: 48.44 kB / 0.7828 GB, free: 75.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004647/2.424, allocations: 168.9 kB / 0.7829 GB, free: 75.25 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000809/2.425, allocations: 136.2 kB / 0.783 GB, free: 75.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002883/2.426, allocations: 66.53 kB / 0.7831 GB, free: 75.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007766/2.433, allocations: 3.077 MB / 0.7861 GB, free: 72.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.062e-06/2.433, allocations: 0 / 0.7861 GB, free: 72.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009823/2.443, allocations: 1.29 MB / 0.7874 GB, free: 71.11 MB / 474.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.01674/2.46, allocations: 7.91 MB / 0.7951 GB, free: 63.89 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01411/2.474, allocations: 6.131 MB / 0.8011 GB, free: 58.29 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/2.474, allocations: 0 / 0.8011 GB, free: 58.29 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004666/2.479, allocations: 2.157 MB / 0.8032 GB, free: 56.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005164/2.484, allocations: 0.5545 MB / 0.8037 GB, free: 55.82 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03954/2.524, allocations: 12.49 MB / 0.8159 GB, free: 45.04 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009012/2.533, allocations: 4.235 MB / 0.8201 GB, free: 41.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006475/2.539, allocations: 2.679 MB / 0.8227 GB, free: 39.42 MB / 474.7 MB Notification: Performance of SimCode: time 1.332e-06/2.539, allocations: 0 / 0.8227 GB, free: 39.42 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.713/8.253, allocations: 150.8 MB / 0.97 GB, free: 65.89 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat does not exist to compare? outputFormat=mat