Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.257/2.257, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.014e-05/3.007e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1154, allocations: 48.7 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4387/0.5542, allocations: 95.55 MB / 411.9 MB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/0.5545, allocations: 76.56 kB / 411.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7617/1.316, allocations: 115.6 MB / 0.5151 GB, free: 84.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.316, allocations: 0 / 0.5151 GB, free: 84.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004374/1.317, allocations: 119.4 kB / 0.5153 GB, free: 84.72 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: 2023 * Number of variables: 2023 Notification: Performance of Generate backend data structure: time 0.025/1.342, allocations: 5.941 MB / 0.5211 GB, free: 82.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/1.342, allocations: 9.531 kB / 0.5211 GB, free: 82.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0504/1.392, allocations: 6.995 MB / 0.5279 GB, free: 81.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02953/1.422, allocations: 7.774 MB / 0.5355 GB, free: 81.03 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005713/1.423, allocations: 190.8 kB / 0.5357 GB, free: 81.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003894/1.426, allocations: 345.4 kB / 0.536 GB, free: 81.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0274/1.454, allocations: 8.198 MB / 0.544 GB, free: 78.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04191/1.496, allocations: 12.4 MB / 0.5561 GB, free: 70.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005345/1.496, allocations: 86.92 kB / 0.5562 GB, free: 70.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003028/1.499, allocations: 39.95 kB / 0.5562 GB, free: 70.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003632/1.503, allocations: 1.314 MB / 0.5575 GB, free: 69.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.117/1.62, allocations: 59.37 MB / 0.6155 GB, free: 9.539 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01219/1.633, allocations: 4.898 MB / 0.6203 GB, free: 4.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008786/1.641, allocations: 3.211 MB / 0.6234 GB, free: 1.281 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001393/1.643, allocations: 0.6844 MB / 0.6241 GB, free: 0.5039 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.169e-05/1.643, allocations: 68.5 kB / 0.6242 GB, free: 436 kB / 410.7 MB Notification: Performance of pre-optimization done (n=254): time 1.087e-05/1.643, allocations: 0 / 0.6242 GB, free: 436 kB / 410.7 MB Notification: Performance of matching and sorting (n=321): time 0.5424/2.185, allocations: 29.91 MB / 0.6534 GB, free: 86.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/2.186, allocations: 268.1 kB / 0.6536 GB, free: 86.69 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01194/2.198, allocations: 3.918 MB / 0.6574 GB, free: 86.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009042/2.199, allocations: 26.89 kB / 0.6575 GB, free: 86.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003937/2.202, allocations: 3.995 MB / 0.6614 GB, free: 84.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002179/2.205, allocations: 1.158 MB / 0.6625 GB, free: 83.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001259/2.206, allocations: 0 / 0.6625 GB, free: 83.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008687/2.207, allocations: 0.6447 MB / 0.6631 GB, free: 83.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008036/2.215, allocations: 3.148 MB / 0.6662 GB, free: 83.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01104/2.226, allocations: 7.497 MB / 0.6735 GB, free: 77.31 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01063/2.237, allocations: 4.818 MB / 0.6782 GB, free: 75.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001841/2.237, allocations: 44.16 kB / 0.6783 GB, free: 75.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=1032) (initialization): time 0.03424/2.271, allocations: 11.46 MB / 0.6895 GB, free: 72.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001385/2.271, allocations: 69.16 kB / 0.6895 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002771/2.272, allocations: 156.9 kB / 0.6897 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009307/2.281, allocations: 2.164 MB / 0.6918 GB, free: 71.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01194/2.293, allocations: 1.803 MB / 0.6936 GB, free: 71.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04487/2.338, allocations: 13.59 MB / 0.7068 GB, free: 64.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01057/2.349, allocations: 299.9 kB / 0.7071 GB, free: 64.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002184/2.351, allocations: 470.1 kB / 0.7076 GB, free: 64.47 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 700 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (956): * Single equations (assignments): 951 * 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 {(7,46.9%) 20,(7,46.9%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003345/2.354, allocations: 0.4909 MB / 0.708 GB, free: 64.06 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02015/2.374, allocations: 6.84 MB / 0.7147 GB, free: 61.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002071/2.377, allocations: 461.7 kB / 0.7152 GB, free: 61.37 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02115/2.398, allocations: 6.751 MB / 0.7217 GB, free: 58.89 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-05/2.398, allocations: 38.5 kB / 0.7218 GB, free: 58.89 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.784e-05/2.398, allocations: 11.39 kB / 0.7218 GB, free: 58.88 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001021/2.398, allocations: 18.86 kB / 0.7218 GB, free: 58.88 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04551/2.444, allocations: 14.7 MB / 0.7362 GB, free: 49.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.624e-05/2.444, allocations: 7.188 kB / 0.7362 GB, free: 49.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005722/2.449, allocations: 0.5084 MB / 0.7367 GB, free: 49.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008445/2.458, allocations: 1.853 MB / 0.7385 GB, free: 47.67 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008597/2.459, allocations: 23.23 kB / 0.7385 GB, free: 47.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02544/2.484, allocations: 11.93 MB / 0.7502 GB, free: 37.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.579e-05/2.484, allocations: 11.94 kB / 0.7502 GB, free: 37.11 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02653/2.511, allocations: 11.74 MB / 0.7616 GB, free: 26.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004019/2.515, allocations: 0.9986 MB / 0.7626 GB, free: 25.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002042/2.517, allocations: 15.61 kB / 0.7626 GB, free: 25.51 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00531/2.522, allocations: 165.6 kB / 0.7628 GB, free: 25.42 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001319/2.524, allocations: 203 kB / 0.763 GB, free: 25.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004643/2.524, allocations: 87.05 kB / 0.7631 GB, free: 25.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006794/2.531, allocations: 2.656 MB / 0.7656 GB, free: 22.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.012e-06/2.531, allocations: 0 / 0.7656 GB, free: 22.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01114/2.542, allocations: 1.287 MB / 0.7669 GB, free: 21.62 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (260): * Single equations (assignments): 255 * 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 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02819/2.571, allocations: 13.77 MB / 0.7803 GB, free: 9.035 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02438/2.595, allocations: 8.461 MB / 0.7886 GB, free: 0.7383 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/2.595, allocations: 4 kB / 0.7886 GB, free: 0.7344 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01343/2.608, allocations: 3.773 MB / 0.7923 GB, free: 12.94 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005821/2.614, allocations: 0.5058 MB / 0.7928 GB, free: 12.45 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4163/3.031, allocations: 14.46 MB / 0.8069 GB, free: 96.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01841/3.049, allocations: 4.524 MB / 0.8113 GB, free: 95.92 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007859/3.057, allocations: 2.828 MB / 0.8141 GB, free: 95.92 MB / 442.7 MB Notification: Performance of SimCode: time 1.913e-06/3.057, allocations: 0.5469 kB / 0.8141 GB, free: 95.92 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.377/8.434, allocations: 163.6 MB / 0.9739 GB, free: 97.07 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat