Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.959/2.959, allocations: 235.2 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.876e-05/2.879e-05, allocations: 4 kB / 299.6 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4868/0.4868, allocations: 54.86 MB / 354.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2154/0.7022, allocations: 100.9 MB / 455.4 MB, free: 13.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003262/0.7026, allocations: 75.97 kB / 455.5 MB, free: 13.13 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8527/1.555, allocations: 95.63 MB / 0.5382 GB, free: 89.69 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.555, allocations: 0 / 0.5382 GB, free: 89.69 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002331/1.556, allocations: 91.91 kB / 0.5382 GB, free: 89.61 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.02703/1.583, allocations: 4.645 MB / 0.5428 GB, free: 84.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.14e-05/1.583, allocations: 8.031 kB / 0.5428 GB, free: 84.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03388/1.617, allocations: 3.62 MB / 0.5463 GB, free: 81.27 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02235/1.639, allocations: 4.882 MB / 0.5511 GB, free: 76.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003852/1.64, allocations: 164.5 kB / 0.5513 GB, free: 76.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003446/1.643, allocations: 288.2 kB / 0.5515 GB, free: 75.92 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02336/1.666, allocations: 8.422 MB / 0.5598 GB, free: 67.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03486/1.701, allocations: 11.12 MB / 0.5706 GB, free: 55.85 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003094/1.702, allocations: 35.66 kB / 0.5707 GB, free: 55.81 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00295/1.705, allocations: 16 kB / 0.5707 GB, free: 55.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003399/1.708, allocations: 1.321 MB / 0.572 GB, free: 54.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09425/1.802, allocations: 39.39 MB / 0.6104 GB, free: 14.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009123/1.812, allocations: 4.28 MB / 0.6146 GB, free: 10.02 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005511/1.817, allocations: 2.28 MB / 0.6168 GB, free: 7.734 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001879/1.819, allocations: 1.333 MB / 0.6181 GB, free: 6.195 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.047e-05/1.819, allocations: 60.52 kB / 0.6182 GB, free: 6.125 MB / 426.7 MB Notification: Performance of pre-optimization done (n=262): time 8.446e-06/1.819, allocations: 0 / 0.6182 GB, free: 6.125 MB / 426.7 MB Notification: Performance of matching and sorting (n=271): time 0.06182/1.881, allocations: 14.36 MB / 0.6322 GB, free: 7.543 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/1.881, allocations: 103.1 kB / 0.6323 GB, free: 7.422 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008396/1.89, allocations: 2.585 MB / 0.6348 GB, free: 4.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006865/1.89, allocations: 25.7 kB / 0.6349 GB, free: 4.789 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004424/1.895, allocations: 3.285 MB / 0.6381 GB, free: 1.453 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002233/1.897, allocations: 0.9788 MB / 0.639 GB, free: 472 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001122/1.898, allocations: 0 / 0.639 GB, free: 472 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001067/1.899, allocations: 0.583 MB / 0.6396 GB, free: 15.87 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007862/1.907, allocations: 2.336 MB / 0.6419 GB, free: 13.53 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01258/1.92, allocations: 5.938 MB / 0.6477 GB, free: 5.797 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01207/1.932, allocations: 3.779 MB / 0.6514 GB, free: 2.016 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001607/1.932, allocations: 36 kB / 0.6514 GB, free: 1.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=861) (initialization): time 0.03448/1.967, allocations: 8.472 MB / 0.6597 GB, free: 9.496 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001488/1.967, allocations: 60 kB / 0.6597 GB, free: 9.438 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002916/1.967, allocations: 128 kB / 0.6598 GB, free: 9.312 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007974/1.975, allocations: 1.14 MB / 0.661 GB, free: 8.168 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01192/1.987, allocations: 1.486 MB / 0.6624 GB, free: 6.68 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/2, allocations: 4.483 MB / 0.6668 GB, free: 2.055 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007671/2.008, allocations: 215.7 kB / 0.667 GB, free: 1.844 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002053/2.01, allocations: 383.1 kB / 0.6674 GB, free: 1.473 MB / 474.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.002946/2.013, allocations: 437.1 kB / 0.6678 GB, free: 1.035 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.4042/2.417, allocations: 4.182 MB / 0.6719 GB, free: 121 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001248/2.418, allocations: 307.3 kB / 0.6722 GB, free: 121 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01556/2.434, allocations: 4.767 MB / 0.6768 GB, free: 120.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001247/2.434, allocations: 54.27 kB / 0.6769 GB, free: 120.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/2.434, allocations: 2.938 kB / 0.6769 GB, free: 120.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.29e-05/2.434, allocations: 11.34 kB / 0.6769 GB, free: 120.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03254/2.467, allocations: 10.6 MB / 0.6872 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.303e-05/2.467, allocations: 9.812 kB / 0.6872 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004726/2.471, allocations: 449.4 kB / 0.6877 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004182/2.476, allocations: 0.6602 MB / 0.6883 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005674/2.476, allocations: 28.97 kB / 0.6883 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004369/2.481, allocations: 2.346 MB / 0.6906 GB, free: 118.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.837e-05/2.481, allocations: 17.39 kB / 0.6906 GB, free: 118.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01937/2.5, allocations: 8.02 MB / 0.6985 GB, free: 116.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/2.501, allocations: 345.5 kB / 0.6988 GB, free: 116.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001305/2.502, allocations: 14.28 kB / 0.6988 GB, free: 116.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003463/2.506, allocations: 107.1 kB / 0.6989 GB, free: 116.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008184/2.507, allocations: 168.5 kB / 0.6991 GB, free: 116.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003576/2.507, allocations: 77.34 kB / 0.6992 GB, free: 116.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004407/2.512, allocations: 1.689 MB / 0.7008 GB, free: 115.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.032e-06/2.512, allocations: 0 / 0.7008 GB, free: 115.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008555/2.52, allocations: 0.9435 MB / 0.7017 GB, free: 115.6 MB / 474.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.02063/2.541, allocations: 10.92 MB / 0.7124 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01603/2.557, allocations: 5.768 MB / 0.718 GB, free: 107.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.67e-05/2.557, allocations: 0 / 0.718 GB, free: 107.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008776/2.566, allocations: 2.516 MB / 0.7205 GB, free: 106.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003784/2.57, allocations: 319.7 kB / 0.7208 GB, free: 106.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03993/2.61, allocations: 11.29 MB / 0.7318 GB, free: 98.16 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009439/2.619, allocations: 3.836 MB / 0.7355 GB, free: 95.23 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01242/2.632, allocations: 2.269 MB / 0.7378 GB, free: 93.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005922/2.638, allocations: 2.15 MB / 0.7399 GB, free: 91.81 MB / 474.7 MB Notification: Performance of SimCode: time 2.535e-06/2.638, allocations: 0 / 0.7399 GB, free: 91.81 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2008/2.839, allocations: 73.76 MB / 0.8119 GB, free: 23.96 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002927/2.839, allocations: 166.9 kB / 0.812 GB, free: 23.75 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.736/8.575, allocations: 0 / 0.812 GB, free: 23.75 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat