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 2.226/2.226, allocations: 209.3 MB / 221.5 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.721e-05/4.737e-05, allocations: 4 kB / 273.2 MB, free: 168 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.138, allocations: 48.71 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5897/0.7278, allocations: 94.87 MB / 416.7 MB, free: 10.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.7281, allocations: 82.91 kB / 416.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7502/1.478, allocations: 97.46 MB / 0.5022 GB, free: 95.49 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.114e-06/1.478, allocations: 0 / 0.5022 GB, free: 95.49 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002671/1.479, allocations: 91.73 kB / 0.5023 GB, free: 95.48 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.0269/1.506, allocations: 4.638 MB / 0.5068 GB, free: 93.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/1.506, allocations: 9.125 kB / 0.5068 GB, free: 93.71 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005197/1.511, allocations: 0.945 MB / 0.5078 GB, free: 93.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02893/1.54, allocations: 3.621 MB / 0.5113 GB, free: 93.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02131/1.561, allocations: 4.894 MB / 0.5161 GB, free: 92.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006734/1.562, allocations: 375.3 kB / 0.5164 GB, free: 92.73 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003842/1.566, allocations: 494 kB / 0.5169 GB, free: 92.72 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03979/1.606, allocations: 12.11 MB / 0.5287 GB, free: 91.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003226/1.606, allocations: 37.88 kB / 0.5288 GB, free: 91.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003296/1.609, allocations: 224.6 kB / 0.529 GB, free: 91.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002969/1.612, allocations: 1.313 MB / 0.5303 GB, free: 91.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03352/1.646, allocations: 11.35 MB / 0.5414 GB, free: 90.12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08436/1.73, allocations: 41.9 MB / 0.5823 GB, free: 64.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01571/1.746, allocations: 4.921 MB / 0.5871 GB, free: 60.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005026/1.751, allocations: 2.348 MB / 0.5894 GB, free: 58.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01641/1.768, allocations: 6.569 MB / 0.5958 GB, free: 52.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.165e-05/1.768, allocations: 48.56 kB / 0.5958 GB, free: 52.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=228): time 7.624e-06/1.768, allocations: 4 kB / 0.5958 GB, free: 52.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=237): time 0.07489/1.843, allocations: 13.61 MB / 0.6091 GB, free: 41.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/1.843, allocations: 69.41 kB / 0.6092 GB, free: 40.97 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008085/1.851, allocations: 2.819 MB / 0.6119 GB, free: 38.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007029/1.852, allocations: 57.38 kB / 0.612 GB, free: 38.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003805/1.856, allocations: 3.271 MB / 0.6152 GB, free: 35.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001892/1.858, allocations: 0.8881 MB / 0.6161 GB, free: 34.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008905/1.858, allocations: 123.9 kB / 0.6162 GB, free: 34.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006391/1.859, allocations: 0.5654 MB / 0.6167 GB, free: 34.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008719/1.868, allocations: 2.329 MB / 0.619 GB, free: 31.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009013/1.877, allocations: 5.695 MB / 0.6246 GB, free: 24.94 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009332/1.886, allocations: 3.679 MB / 0.6282 GB, free: 21.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001213/1.887, allocations: 32 kB / 0.6282 GB, free: 21.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.03365/1.92, allocations: 8.815 MB / 0.6368 GB, free: 12.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001316/1.92, allocations: 59.94 kB / 0.6368 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000213/1.921, allocations: 124 kB / 0.637 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008105/1.929, allocations: 1.161 MB / 0.6381 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01156/1.94, allocations: 1.376 MB / 0.6394 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/1.952, allocations: 4.576 MB / 0.6439 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008787/1.961, allocations: 323.7 kB / 0.6442 GB, free: 5.164 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00172/1.963, allocations: 356 kB / 0.6446 GB, free: 4.816 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.002452/1.965, allocations: 0.5438 MB / 0.6451 GB, free: 4.266 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008854/1.966, allocations: 299.7 kB / 0.6454 GB, free: 3.973 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/1.979, allocations: 4.394 MB / 0.6497 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001165/1.979, allocations: 40 kB / 0.6497 GB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/1.979, allocations: 4 kB / 0.6497 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-05/1.979, allocations: 15.95 kB / 0.6497 GB, free: 15.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03483/2.014, allocations: 10.4 MB / 0.6599 GB, free: 5.004 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.061e-05/2.014, allocations: 7.984 kB / 0.6599 GB, free: 4.996 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00382/2.018, allocations: 387.4 kB / 0.6603 GB, free: 4.617 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003759/2.022, allocations: 0.6702 MB / 0.6609 GB, free: 3.938 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006274/2.022, allocations: 43.98 kB / 0.661 GB, free: 3.895 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004668/2.027, allocations: 2.424 MB / 0.6633 GB, free: 1.336 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/2.027, allocations: 4 kB / 0.6633 GB, free: 1.332 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3202/2.347, allocations: 7.117 MB / 0.6703 GB, free: 99.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/2.348, allocations: 352.8 kB / 0.6706 GB, free: 99.47 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001307/2.35, allocations: 48.77 kB / 0.6707 GB, free: 99.47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003162/2.353, allocations: 133.5 kB / 0.6708 GB, free: 99.47 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007159/2.354, allocations: 134.1 kB / 0.6709 GB, free: 99.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000272/2.354, allocations: 66.62 kB / 0.671 GB, free: 99.47 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005389/2.359, allocations: 1.897 MB / 0.6728 GB, free: 99.31 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.81e-07/2.359, allocations: 0 / 0.6728 GB, free: 99.31 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007267/2.367, allocations: 1.073 MB / 0.6739 GB, free: 99.31 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.01969/2.387, allocations: 8.911 MB / 0.6826 GB, free: 96.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01398/2.401, allocations: 5.739 MB / 0.6882 GB, free: 96.66 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/2.401, allocations: 3.094 kB / 0.6882 GB, free: 96.66 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007043/2.408, allocations: 2.392 MB / 0.6905 GB, free: 96.33 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003561/2.411, allocations: 431 kB / 0.6909 GB, free: 96.32 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03443/2.446, allocations: 11.05 MB / 0.7017 GB, free: 94.36 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008578/2.454, allocations: 3.827 MB / 0.7055 GB, free: 93.5 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.009105/2.464, allocations: 2.055 MB / 0.7075 GB, free: 93.43 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005133/2.469, allocations: 2.113 MB / 0.7095 GB, free: 91.68 MB / 442.7 MB Notification: Performance of SimCode: time 1.273e-06/2.469, allocations: 0 / 0.7095 GB, free: 91.68 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1773/2.646, allocations: 76.7 MB / 0.7844 GB, free: 42.66 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/2.646, allocations: 187.7 kB / 0.7846 GB, free: 42.44 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.308/7.954, allocations: 3.938 kB / 0.7846 GB, free: 42.43 MB / 442.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