Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.983/1.983, allocations: 209.4 MB / 216.5 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.625e-05/2.627e-05, allocations: 7.938 kB / 267.6 MB, free: 4.941 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1204, allocations: 48.7 MB / 316.3 MB, free: 4.141 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4401/0.5606, allocations: 94.42 MB / 410.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.5609, allocations: 76.64 kB / 410.8 MB, free: 14.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6801/1.241, allocations: 95.61 MB / 0.4946 GB, free: 89.76 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.054e-06/1.241, allocations: 0 / 0.4946 GB, free: 89.76 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002392/1.241, allocations: 91.25 kB / 0.4947 GB, free: 89.76 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.025/1.266, allocations: 4.642 MB / 0.4992 GB, free: 87.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/1.266, allocations: 9.625 kB / 0.4992 GB, free: 87.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02917/1.296, allocations: 3.617 MB / 0.5027 GB, free: 87.51 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01982/1.315, allocations: 4.886 MB / 0.5075 GB, free: 86.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003253/1.316, allocations: 162 kB / 0.5077 GB, free: 86.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003264/1.319, allocations: 297 kB / 0.5079 GB, free: 86.94 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01996/1.339, allocations: 8.418 MB / 0.5162 GB, free: 86.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03613/1.375, allocations: 11.12 MB / 0.527 GB, free: 84.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003007/1.376, allocations: 37.5 kB / 0.5271 GB, free: 84.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002785/1.378, allocations: 18.16 kB / 0.5271 GB, free: 84.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003921/1.382, allocations: 1.314 MB / 0.5284 GB, free: 84.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09167/1.474, allocations: 39.41 MB / 0.5668 GB, free: 58.97 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00715/1.481, allocations: 4.286 MB / 0.571 GB, free: 54.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004464/1.486, allocations: 2.285 MB / 0.5733 GB, free: 52.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001468/1.487, allocations: 1.326 MB / 0.5746 GB, free: 51.26 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.036e-05/1.487, allocations: 64.59 kB / 0.5746 GB, free: 51.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=262): time 6.172e-06/1.487, allocations: 0 / 0.5746 GB, free: 51.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=271): time 0.04446/1.532, allocations: 14.34 MB / 0.5886 GB, free: 38.37 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/1.532, allocations: 106.9 kB / 0.5887 GB, free: 38.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004871/1.537, allocations: 2.58 MB / 0.5912 GB, free: 35.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005944/1.538, allocations: 29.7 kB / 0.5913 GB, free: 35.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00235/1.54, allocations: 3.291 MB / 0.5945 GB, free: 32.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001468/1.541, allocations: 0.9747 MB / 0.5954 GB, free: 32.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000658/1.542, allocations: 3.188 kB / 0.5954 GB, free: 32.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005186/1.543, allocations: 0.583 MB / 0.596 GB, free: 31.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006797/1.549, allocations: 2.34 MB / 0.5983 GB, free: 29.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00992/1.559, allocations: 5.934 MB / 0.6041 GB, free: 21.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01132/1.571, allocations: 3.768 MB / 0.6078 GB, free: 17.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000138/1.571, allocations: 36 kB / 0.6078 GB, free: 17.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=861) (initialization): time 0.0317/1.603, allocations: 8.488 MB / 0.6161 GB, free: 9.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.994e-05/1.603, allocations: 60 kB / 0.6161 GB, free: 9.012 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001426/1.603, allocations: 128 kB / 0.6163 GB, free: 8.887 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005874/1.609, allocations: 1.133 MB / 0.6174 GB, free: 7.746 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009185/1.618, allocations: 1.489 MB / 0.6188 GB, free: 6.254 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008309/1.626, allocations: 4.481 MB / 0.6232 GB, free: 1.637 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00679/1.633, allocations: 211.8 kB / 0.6234 GB, free: 1.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001726/1.635, allocations: 387.7 kB / 0.6238 GB, free: 1.055 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.002208/1.637, allocations: 430.8 kB / 0.6242 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01313/1.65, allocations: 4.195 MB / 0.6283 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001267/1.652, allocations: 300.1 kB / 0.6286 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01565/1.667, allocations: 4.77 MB / 0.6332 GB, free: 7.242 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000144/1.668, allocations: 47.98 kB / 0.6333 GB, free: 7.195 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/1.668, allocations: 4 kB / 0.6333 GB, free: 7.191 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.028e-05/1.668, allocations: 7.969 kB / 0.6333 GB, free: 7.184 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3274/1.995, allocations: 10.61 MB / 0.6436 GB, free: 91.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.405e-05/1.995, allocations: 9.078 kB / 0.6437 GB, free: 91.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004181/1.999, allocations: 448.1 kB / 0.6441 GB, free: 91.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003726/2.003, allocations: 0.657 MB / 0.6447 GB, free: 91.93 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005859/2.004, allocations: 27.23 kB / 0.6447 GB, free: 91.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004183/2.008, allocations: 2.346 MB / 0.647 GB, free: 90.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.792e-05/2.008, allocations: 16.84 kB / 0.6471 GB, free: 90.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01868/2.027, allocations: 8.017 MB / 0.6549 GB, free: 89.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001116/2.028, allocations: 341.6 kB / 0.6552 GB, free: 88.94 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001479/2.03, allocations: 19.3 kB / 0.6552 GB, free: 88.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003169/2.033, allocations: 109.1 kB / 0.6553 GB, free: 88.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008922/2.034, allocations: 167.4 kB / 0.6555 GB, free: 88.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003211/2.034, allocations: 78.84 kB / 0.6556 GB, free: 88.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004858/2.039, allocations: 1.684 MB / 0.6572 GB, free: 88.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.973e-06/2.039, allocations: 2.594 kB / 0.6572 GB, free: 88.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008018/2.047, allocations: 0.9504 MB / 0.6581 GB, free: 88.79 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.01862/2.066, allocations: 10.91 MB / 0.6688 GB, free: 84.48 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01351/2.079, allocations: 5.771 MB / 0.6744 GB, free: 84.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.072e-05/2.079, allocations: 0 / 0.6744 GB, free: 84.34 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006955/2.086, allocations: 2.52 MB / 0.6769 GB, free: 84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003641/2.09, allocations: 312.3 kB / 0.6772 GB, free: 83.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03671/2.127, allocations: 11.3 MB / 0.6882 GB, free: 80.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008657/2.135, allocations: 3.833 MB / 0.692 GB, free: 79.39 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01/2.145, allocations: 2.273 MB / 0.6942 GB, free: 79.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00548/2.151, allocations: 2.15 MB / 0.6963 GB, free: 77.47 MB / 426.7 MB Notification: Performance of SimCode: time 1.783e-06/2.151, allocations: 0 / 0.6963 GB, free: 77.47 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1811/2.332, allocations: 73.76 MB / 0.7683 GB, free: 21.87 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002897/2.332, allocations: 147.3 kB / 0.7685 GB, free: 21.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.109/7.441, allocations: 0 / 0.7685 GB, free: 21.68 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat