Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.001/2.001, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.349e-05/4.366e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4353/0.5397, allocations: 91.16 MB / 413 MB, free: 14.76 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/0.5401, allocations: 75.97 kB / 413.1 MB, free: 14.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4106/0.9508, allocations: 90.59 MB / 0.4919 GB, free: 3.395 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.9508, allocations: 0 / 0.4919 GB, free: 3.395 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002281/0.9511, allocations: 83.98 kB / 0.4919 GB, free: 3.312 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: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.3309/1.282, allocations: 4.253 MB / 0.4961 GB, free: 96.94 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.709e-05/1.282, allocations: 9.766 kB / 0.4961 GB, free: 96.94 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004459/1.287, allocations: 0.8553 MB / 0.4969 GB, free: 96.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02854/1.315, allocations: 3.56 MB / 0.5004 GB, free: 96.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02029/1.336, allocations: 4.667 MB / 0.505 GB, free: 96.31 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005151/1.336, allocations: 334 kB / 0.5053 GB, free: 96.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003202/1.339, allocations: 437.5 kB / 0.5057 GB, free: 96.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03541/1.375, allocations: 10.95 MB / 0.5164 GB, free: 94.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000253/1.375, allocations: 25.66 kB / 0.5164 GB, free: 94.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0024/1.377, allocations: 195.7 kB / 0.5166 GB, free: 94.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00264/1.38, allocations: 1.231 MB / 0.5178 GB, free: 94.94 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02898/1.409, allocations: 10.52 MB / 0.5281 GB, free: 94.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07757/1.487, allocations: 37.33 MB / 0.5645 GB, free: 72.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01224/1.499, allocations: 4.366 MB / 0.5688 GB, free: 70.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004627/1.504, allocations: 2.127 MB / 0.5709 GB, free: 69.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00164/1.506, allocations: 1.326 MB / 0.5722 GB, free: 68.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.899e-05/1.506, allocations: 52 kB / 0.5722 GB, free: 68.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 6.752e-06/1.506, allocations: 0 / 0.5722 GB, free: 68.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=265): time 0.05785/1.564, allocations: 11.16 MB / 0.5831 GB, free: 62.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/1.564, allocations: 81.17 kB / 0.5832 GB, free: 62.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005143/1.569, allocations: 2.492 MB / 0.5856 GB, free: 59.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005653/1.569, allocations: 58.64 kB / 0.5857 GB, free: 59.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002102/1.572, allocations: 2.924 MB / 0.5885 GB, free: 57.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001449/1.573, allocations: 0.9629 MB / 0.5895 GB, free: 56.42 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007203/1.574, allocations: 116 kB / 0.5896 GB, free: 56.31 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000506/1.574, allocations: 0.5609 MB / 0.5901 GB, free: 55.81 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005878/1.58, allocations: 2.285 MB / 0.5924 GB, free: 53.74 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007836/1.588, allocations: 5.417 MB / 0.5977 GB, free: 47.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007911/1.596, allocations: 3.578 MB / 0.6012 GB, free: 44.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001175/1.596, allocations: 32 kB / 0.6012 GB, free: 44.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.02552/1.622, allocations: 8.376 MB / 0.6094 GB, free: 36.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.969e-05/1.622, allocations: 52 kB / 0.6094 GB, free: 36.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001658/1.622, allocations: 115.8 kB / 0.6095 GB, free: 36.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006614/1.629, allocations: 1.047 MB / 0.6105 GB, free: 36.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008392/1.637, allocations: 1.331 MB / 0.6118 GB, free: 34.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003865/1.641, allocations: 2.464 MB / 0.6143 GB, free: 32.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005752/1.647, allocations: 326.1 kB / 0.6146 GB, free: 32.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001265/1.648, allocations: 338.7 kB / 0.6149 GB, free: 32.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (719): * Single equations (assignments): 710 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001591/1.65, allocations: 0.5118 MB / 0.6154 GB, free: 31.51 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000701/1.651, allocations: 284.3 kB / 0.6157 GB, free: 31.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01571/1.666, allocations: 5.02 MB / 0.6206 GB, free: 27.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001028/1.667, allocations: 44 kB / 0.6206 GB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/1.667, allocations: 4 kB / 0.6206 GB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.146e-05/1.667, allocations: 15.91 kB / 0.6206 GB, free: 26.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03505/1.702, allocations: 11.56 MB / 0.6319 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.813e-05/1.702, allocations: 16.83 kB / 0.6319 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005008/1.707, allocations: 419.4 kB / 0.6323 GB, free: 14.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008391/1.715, allocations: 0.9148 MB / 0.6332 GB, free: 13.94 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000776/1.716, allocations: 63.34 kB / 0.6333 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005379/1.722, allocations: 2.276 MB / 0.6355 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.56e-05/1.722, allocations: 15.94 kB / 0.6355 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02755/1.749, allocations: 8.075 MB / 0.6434 GB, free: 3.043 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/1.75, allocations: 333.3 kB / 0.6437 GB, free: 2.695 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001412/1.752, allocations: 55.98 kB / 0.6438 GB, free: 2.641 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004067/1.756, allocations: 139.7 kB / 0.6439 GB, free: 2.508 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009593/1.757, allocations: 165.6 kB / 0.6441 GB, free: 2.348 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000458/1.757, allocations: 71.98 kB / 0.6441 GB, free: 2.277 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005746/1.763, allocations: 1.682 MB / 0.6458 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.763, allocations: 4 kB / 0.6458 GB, free: 0.582 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009562/1.773, allocations: 1.007 MB / 0.6468 GB, free: 15.57 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (216): * Single equations (assignments): 207 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02809/1.801, allocations: 10.69 MB / 0.6572 GB, free: 4.594 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3074/2.108, allocations: 6.069 MB / 0.6631 GB, free: 102.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.439e-05/2.109, allocations: 3.156 kB / 0.6631 GB, free: 102.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008662/2.117, allocations: 2.569 MB / 0.6656 GB, free: 102.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0034/2.121, allocations: 393.5 kB / 0.666 GB, free: 102.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04156/2.162, allocations: 11.3 MB / 0.6771 GB, free: 100.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009685/2.172, allocations: 3.602 MB / 0.6806 GB, free: 99.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005658/2.178, allocations: 2.027 MB / 0.6826 GB, free: 99.67 MB / 442.7 MB Notification: Performance of SimCode: time 2.856e-06/2.178, allocations: 0 / 0.6826 GB, free: 99.67 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.35/6.527, allocations: 140 MB / 0.8193 GB, free: 4.188 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat does not exist to compare? outputFormat=mat