Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.079/2.079, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.888e-05/2.902e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1073, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4426/0.5499, allocations: 94.46 MB / 410.8 MB, free: 14.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/0.5503, allocations: 74.77 kB / 410.8 MB, free: 14.08 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6669/1.217, allocations: 95.6 MB / 0.4946 GB, free: 89.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.217, allocations: 0.9688 kB / 0.4946 GB, free: 89.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002576/1.218, allocations: 94.62 kB / 0.4947 GB, free: 89.36 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: 1869 * Number of variables: 1869 Notification: Performance of Generate backend data structure: time 0.02513/1.243, allocations: 4.638 MB / 0.4992 GB, free: 87.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/1.243, allocations: 9.5 kB / 0.4992 GB, free: 87.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.029/1.272, allocations: 3.623 MB / 0.5027 GB, free: 87.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02288/1.295, allocations: 4.899 MB / 0.5075 GB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005991/1.295, allocations: 160.6 kB / 0.5077 GB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003939/1.299, allocations: 290.6 kB / 0.508 GB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03018/1.33, allocations: 8.421 MB / 0.5162 GB, free: 86.51 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04253/1.372, allocations: 11.12 MB / 0.527 GB, free: 84.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002579/1.373, allocations: 34.59 kB / 0.5271 GB, free: 84.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002554/1.375, allocations: 21.02 kB / 0.5271 GB, free: 84.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002878/1.378, allocations: 1.315 MB / 0.5284 GB, free: 84.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0802/1.458, allocations: 39.4 MB / 0.5669 GB, free: 58.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007335/1.466, allocations: 4.289 MB / 0.571 GB, free: 54.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004439/1.47, allocations: 2.286 MB / 0.5733 GB, free: 52.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001529/1.472, allocations: 1.331 MB / 0.5746 GB, free: 51.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.825e-05/1.472, allocations: 56.56 kB / 0.5746 GB, free: 51.15 MB / 410.7 MB Notification: Performance of pre-optimization done (n=262): time 7.855e-06/1.472, allocations: 4 kB / 0.5746 GB, free: 51.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=271): time 0.04729/1.519, allocations: 14.34 MB / 0.5886 GB, free: 38.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/1.519, allocations: 99.11 kB / 0.5887 GB, free: 38.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005506/1.525, allocations: 2.584 MB / 0.5913 GB, free: 35.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005825/1.525, allocations: 25.7 kB / 0.5913 GB, free: 35.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002448/1.528, allocations: 3.296 MB / 0.5945 GB, free: 32.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001477/1.529, allocations: 0.9721 MB / 0.5954 GB, free: 32.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007879/1.53, allocations: 4 kB / 0.5955 GB, free: 32.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005913/1.531, allocations: 0.5854 MB / 0.596 GB, free: 31.51 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005487/1.536, allocations: 2.344 MB / 0.5983 GB, free: 29.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008026/1.544, allocations: 5.938 MB / 0.6041 GB, free: 21.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008212/1.553, allocations: 3.76 MB / 0.6078 GB, free: 17.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001266/1.553, allocations: 36 kB / 0.6078 GB, free: 17.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=861) (initialization): time 0.0244/1.577, allocations: 8.432 MB / 0.6161 GB, free: 9.199 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.937e-05/1.577, allocations: 60 kB / 0.6161 GB, free: 9.141 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001767/1.578, allocations: 128 kB / 0.6162 GB, free: 9.016 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005914/1.584, allocations: 1.141 MB / 0.6173 GB, free: 7.867 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00917/1.593, allocations: 1.489 MB / 0.6188 GB, free: 6.375 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008253/1.601, allocations: 4.478 MB / 0.6232 GB, free: 1.766 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006422/1.608, allocations: 223.6 kB / 0.6234 GB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001608/1.609, allocations: 380 kB / 0.6237 GB, free: 1.176 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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 (801): * Single equations (assignments): 793 * Array equations: 6 * 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: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.002251/1.612, allocations: 420.8 kB / 0.6241 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01283/1.624, allocations: 4.194 MB / 0.6282 GB, free: 12.51 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/1.626, allocations: 311.9 kB / 0.6285 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01546/1.641, allocations: 4.759 MB / 0.6332 GB, free: 7.371 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001488/1.641, allocations: 55.81 kB / 0.6332 GB, free: 7.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/1.642, allocations: 0 / 0.6332 GB, free: 7.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.638e-05/1.642, allocations: 11.95 kB / 0.6333 GB, free: 7.309 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3276/1.969, allocations: 10.6 MB / 0.6436 GB, free: 91.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.792e-05/1.969, allocations: 10.78 kB / 0.6436 GB, free: 91.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004268/1.974, allocations: 448.6 kB / 0.644 GB, free: 91.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003879/1.978, allocations: 0.6577 MB / 0.6447 GB, free: 91.51 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006712/1.978, allocations: 30.98 kB / 0.6447 GB, free: 91.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004494/1.983, allocations: 2.338 MB / 0.647 GB, free: 90.33 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-05/1.983, allocations: 14.19 kB / 0.647 GB, free: 90.33 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01965/2.003, allocations: 8.02 MB / 0.6548 GB, free: 88.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/2.004, allocations: 348.7 kB / 0.6552 GB, free: 88.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001321/2.005, allocations: 16.84 kB / 0.6552 GB, free: 88.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003318/2.008, allocations: 109.4 kB / 0.6553 GB, free: 88.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008478/2.009, allocations: 169.4 kB / 0.6555 GB, free: 88.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002872/2.01, allocations: 81.22 kB / 0.6555 GB, free: 88.51 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004735/2.014, allocations: 1.687 MB / 0.6572 GB, free: 88.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.613e-06/2.014, allocations: 0 / 0.6572 GB, free: 88.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007992/2.022, allocations: 0.9405 MB / 0.6581 GB, free: 88.37 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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,body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 213 * 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.01799/2.04, allocations: 10.91 MB / 0.6688 GB, free: 84.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01358/2.054, allocations: 5.767 MB / 0.6744 GB, free: 83.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.828e-05/2.054, allocations: 3.438 kB / 0.6744 GB, free: 83.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007053/2.061, allocations: 2.516 MB / 0.6769 GB, free: 83.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003544/2.065, allocations: 324.5 kB / 0.6772 GB, free: 83.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03806/2.103, allocations: 11.84 MB / 0.6887 GB, free: 80.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008815/2.112, allocations: 3.844 MB / 0.6925 GB, free: 78.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005975/2.118, allocations: 2.198 MB / 0.6946 GB, free: 77.1 MB / 426.7 MB Notification: Performance of SimCode: time 2.264e-06/2.118, allocations: 0 / 0.6946 GB, free: 77.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.95/7.068, allocations: 139.3 MB / 0.8306 GB, free: 105.3 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat