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.097/2.097, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.99e-05/4.002e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1036, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4605/0.5641, allocations: 94.88 MB / 416.7 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.5645, allocations: 67.97 kB / 416.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7059/1.27, allocations: 97.47 MB / 0.5022 GB, free: 95.81 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.27, allocations: 1.375 kB / 0.5022 GB, free: 95.81 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002477/1.271, allocations: 90.91 kB / 0.5023 GB, free: 95.8 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: 1869 * Number of variables: 1869 Notification: Performance of Generate backend data structure: time 0.02616/1.297, allocations: 4.65 MB / 0.5068 GB, free: 94.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.794e-05/1.297, allocations: 9.812 kB / 0.5068 GB, free: 94.05 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005018/1.302, allocations: 0.9408 MB / 0.5077 GB, free: 93.96 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02855/1.331, allocations: 3.618 MB / 0.5113 GB, free: 93.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02117/1.352, allocations: 4.889 MB / 0.5161 GB, free: 93.08 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006571/1.352, allocations: 377.6 kB / 0.5164 GB, free: 93.07 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003546/1.356, allocations: 0.4884 MB / 0.5169 GB, free: 93.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03956/1.396, allocations: 12.1 MB / 0.5287 GB, free: 91.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003543/1.396, allocations: 41.08 kB / 0.5287 GB, free: 91.54 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003069/1.399, allocations: 220.2 kB / 0.529 GB, free: 91.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002962/1.402, allocations: 1.316 MB / 0.5302 GB, free: 91.53 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03323/1.435, allocations: 11.35 MB / 0.5413 GB, free: 90.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08618/1.522, allocations: 41.91 MB / 0.5822 GB, free: 64.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01554/1.537, allocations: 4.904 MB / 0.587 GB, free: 61.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004792/1.542, allocations: 2.356 MB / 0.5893 GB, free: 59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01549/1.558, allocations: 6.565 MB / 0.5957 GB, free: 53.17 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/1.558, allocations: 52.56 kB / 0.5958 GB, free: 53.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=228): time 6.833e-06/1.558, allocations: 4 kB / 0.5958 GB, free: 53.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=237): time 0.05412/1.612, allocations: 13.6 MB / 0.6091 GB, free: 41.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/1.612, allocations: 77.34 kB / 0.6092 GB, free: 41.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005931/1.618, allocations: 2.817 MB / 0.6119 GB, free: 38.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005426/1.619, allocations: 65.14 kB / 0.612 GB, free: 38.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002423/1.621, allocations: 3.261 MB / 0.6152 GB, free: 35.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001348/1.622, allocations: 0.8894 MB / 0.616 GB, free: 35.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007593/1.623, allocations: 116 kB / 0.6161 GB, free: 34.93 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004645/1.624, allocations: 0.5701 MB / 0.6167 GB, free: 34.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005823/1.63, allocations: 2.33 MB / 0.619 GB, free: 32.31 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008049/1.638, allocations: 5.693 MB / 0.6245 GB, free: 25.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00823/1.646, allocations: 3.674 MB / 0.6281 GB, free: 22.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001027/1.646, allocations: 36 kB / 0.6281 GB, free: 22.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.02503/1.671, allocations: 8.745 MB / 0.6367 GB, free: 13.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.992e-05/1.671, allocations: 56 kB / 0.6367 GB, free: 13.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001498/1.671, allocations: 123.9 kB / 0.6369 GB, free: 13.28 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006252/1.678, allocations: 1.17 MB / 0.638 GB, free: 12.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008764/1.687, allocations: 1.372 MB / 0.6393 GB, free: 10.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008585/1.695, allocations: 4.579 MB / 0.6438 GB, free: 6.008 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006348/1.702, allocations: 323.8 kB / 0.6441 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00144/1.703, allocations: 356 kB / 0.6445 GB, free: 5.344 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 538 * 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 (742): * Single equations (assignments): 734 * 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.00199/1.705, allocations: 0.5399 MB / 0.645 GB, free: 4.797 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007496/1.706, allocations: 304 kB / 0.6453 GB, free: 4.496 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01267/1.719, allocations: 4.394 MB / 0.6496 GB, free: 80 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001025/1.719, allocations: 43.98 kB / 0.6496 GB, free: 36 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/1.719, allocations: 4 kB / 0.6496 GB, free: 32 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.412e-05/1.719, allocations: 11.95 kB / 0.6496 GB, free: 20 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03457/1.753, allocations: 10.4 MB / 0.6598 GB, free: 5.523 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.825e-05/1.753, allocations: 12.03 kB / 0.6598 GB, free: 5.512 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003841/1.757, allocations: 387.5 kB / 0.6602 GB, free: 5.133 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003766/1.761, allocations: 0.6695 MB / 0.6608 GB, free: 4.453 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006053/1.762, allocations: 59.33 kB / 0.6609 GB, free: 4.406 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004555/1.766, allocations: 2.404 MB / 0.6632 GB, free: 1.859 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/1.766, allocations: 4 kB / 0.6632 GB, free: 1.855 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3207/2.087, allocations: 7.129 MB / 0.6702 GB, free: 99.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/2.088, allocations: 348.8 kB / 0.6705 GB, free: 99.44 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001328/2.09, allocations: 42.52 kB / 0.6706 GB, free: 99.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003396/2.093, allocations: 140.5 kB / 0.6707 GB, free: 99.44 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000857/2.094, allocations: 130.5 kB / 0.6708 GB, free: 99.44 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003757/2.094, allocations: 65.77 kB / 0.6709 GB, free: 99.44 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005761/2.1, allocations: 1.903 MB / 0.6727 GB, free: 99.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.072e-06/2.1, allocations: 0 / 0.6727 GB, free: 99.28 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007499/2.108, allocations: 1.07 MB / 0.6738 GB, free: 99.28 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (191): * Single equations (assignments): 182 * 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.02032/2.128, allocations: 8.912 MB / 0.6825 GB, free: 96.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01422/2.142, allocations: 5.738 MB / 0.6881 GB, free: 96.63 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/2.143, allocations: 6.438 kB / 0.6881 GB, free: 96.63 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01003/2.153, allocations: 2.396 MB / 0.6904 GB, free: 96.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005442/2.158, allocations: 410.8 kB / 0.6908 GB, free: 96.28 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04225/2.2, allocations: 11.6 MB / 0.7022 GB, free: 94.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008619/2.209, allocations: 3.828 MB / 0.7059 GB, free: 93.11 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005619/2.215, allocations: 2.167 MB / 0.708 GB, free: 91.37 MB / 442.7 MB Notification: Performance of SimCode: time 2.254e-06/2.215, allocations: 3.844 kB / 0.708 GB, free: 91.37 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.827/7.042, allocations: 140 MB / 0.8448 GB, free: 94.18 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