Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.083/2.083, allocations: 209.3 MB / 221.5 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.965e-05/4.022e-05, allocations: 4 kB / 273.2 MB, free: 168 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 48.71 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4533/0.5648, allocations: 92.08 MB / 413.9 MB, free: 13.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/0.5651, allocations: 76 kB / 414 MB, free: 13.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3389/0.904, allocations: 72.91 MB / 486.9 MB, free: 4.031 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.9041, allocations: 0 / 486.9 MB, free: 4.031 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002946/0.9044, allocations: 60 kB / 487 MB, free: 3.973 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: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.01704/0.9215, allocations: 3.267 MB / 490.3 MB, free: 0.6445 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.78e-05/0.9216, allocations: 12.02 kB / 490.3 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003465/0.9251, allocations: 0.6144 MB / 490.9 MB, free: 8 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04415/0.9693, allocations: 4.25 MB / 495.1 MB, free: 11.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01813/0.9875, allocations: 4.212 MB / 499.4 MB, free: 7.48 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003794/0.9879, allocations: 246.5 kB / 499.6 MB, free: 7.238 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00207/0.99, allocations: 331.8 kB / 499.9 MB, free: 6.914 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3088/1.299, allocations: 8.205 MB / 0.4962 GB, free: 99.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002945/1.299, allocations: 54.36 kB / 0.4963 GB, free: 99.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001356/1.301, allocations: 166 kB / 0.4964 GB, free: 99.27 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002184/1.303, allocations: 0.8161 MB / 0.4972 GB, free: 99.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0206/1.323, allocations: 6.579 MB / 0.5036 GB, free: 99.24 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05781/1.381, allocations: 39.76 MB / 0.5425 GB, free: 72.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007356/1.389, allocations: 2.258 MB / 0.5447 GB, free: 71.59 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002254/1.391, allocations: 1.057 MB / 0.5457 GB, free: 71.14 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005585/1.392, allocations: 320.2 kB / 0.546 GB, free: 70.85 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/1.392, allocations: 53.45 kB / 0.5461 GB, free: 70.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 5.46e-06/1.392, allocations: 0 / 0.5461 GB, free: 70.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.04398/1.436, allocations: 9.386 MB / 0.5552 GB, free: 67.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.346e-05/1.436, allocations: 200.6 kB / 0.5554 GB, free: 66.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007673/1.444, allocations: 3.259 MB / 0.5586 GB, free: 65.74 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003279/1.444, allocations: 45.3 kB / 0.5587 GB, free: 65.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002415/1.446, allocations: 2.688 MB / 0.5613 GB, free: 63.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008324/1.447, allocations: 0.5564 MB / 0.5618 GB, free: 63.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006137/1.448, allocations: 106.4 kB / 0.5619 GB, free: 63.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003551/1.448, allocations: 0.5303 MB / 0.5624 GB, free: 62.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004025/1.452, allocations: 1.591 MB / 0.564 GB, free: 62.35 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006307/1.459, allocations: 5.007 MB / 0.5689 GB, free: 57.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006286/1.465, allocations: 2.826 MB / 0.5716 GB, free: 56.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001315/1.465, allocations: 36.3 kB / 0.5717 GB, free: 56.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01724/1.482, allocations: 6.547 MB / 0.5781 GB, free: 53.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.777e-05/1.483, allocations: 57.12 kB / 0.5781 GB, free: 53.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001788/1.483, allocations: 124.2 kB / 0.5782 GB, free: 53.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/1.484, allocations: 353.6 kB / 0.5786 GB, free: 53.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007716/1.492, allocations: 1.243 MB / 0.5798 GB, free: 53.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004228/1.496, allocations: 2.695 MB / 0.5824 GB, free: 51.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00617/1.502, allocations: 290.4 kB / 0.5827 GB, free: 51.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001249/1.504, allocations: 336.4 kB / 0.583 GB, free: 51.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 24 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (664): * Single equations (assignments): 660 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001373/1.505, allocations: 0.5161 MB / 0.5835 GB, free: 51 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000817/1.506, allocations: 312.9 kB / 0.5838 GB, free: 50.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004656/1.51, allocations: 1.688 MB / 0.5855 GB, free: 50.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.174e-05/1.511, allocations: 16.17 kB / 0.5855 GB, free: 50.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/1.511, allocations: 3.938 kB / 0.5855 GB, free: 50.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.391e-05/1.511, allocations: 8.391 kB / 0.5855 GB, free: 50.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01471/1.525, allocations: 5.368 MB / 0.5907 GB, free: 48.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.856e-05/1.525, allocations: 7.5 kB / 0.5908 GB, free: 48.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00214/1.528, allocations: 217.4 kB / 0.591 GB, free: 48.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007892/1.528, allocations: 159.7 kB / 0.5911 GB, free: 47.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001949/1.529, allocations: 22.56 kB / 0.5911 GB, free: 47.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003052/1.532, allocations: 2.148 MB / 0.5932 GB, free: 46.31 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.532, allocations: 0 / 0.5932 GB, free: 46.31 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007509/1.539, allocations: 3.766 MB / 0.5969 GB, free: 44.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001875/1.541, allocations: 0.5347 MB / 0.5974 GB, free: 43.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006736/1.542, allocations: 24 kB / 0.5975 GB, free: 43.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002165/1.544, allocations: 66.33 kB / 0.5975 GB, free: 43.53 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/1.544, allocations: 82.41 kB / 0.5976 GB, free: 43.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001461/1.545, allocations: 40.94 kB / 0.5976 GB, free: 43.44 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005314/1.55, allocations: 2.265 MB / 0.5998 GB, free: 41.45 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.323e-06/1.55, allocations: 0 / 0.5998 GB, free: 41.45 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005826/1.556, allocations: 0.8022 MB / 0.6006 GB, free: 40.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007947/1.564, allocations: 4.69 MB / 0.6052 GB, free: 36.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009069/1.573, allocations: 3.924 MB / 0.609 GB, free: 32.69 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/1.573, allocations: 0 / 0.609 GB, free: 32.69 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002238/1.575, allocations: 1.059 MB / 0.6101 GB, free: 31.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002996/1.578, allocations: 335.8 kB / 0.6104 GB, free: 31.42 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02025/1.599, allocations: 7.018 MB / 0.6173 GB, free: 25.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003985/1.603, allocations: 2.824 MB / 0.62 GB, free: 23.14 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.007682/1.61, allocations: 1.741 MB / 0.6217 GB, free: 22.04 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003453/1.614, allocations: 1.496 MB / 0.6232 GB, free: 20.66 MB / 426.7 MB Notification: Performance of SimCode: time 1.473e-06/1.614, allocations: 3.938 kB / 0.6232 GB, free: 20.65 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4765/2.09, allocations: 62.86 MB / 0.6846 GB, free: 97.44 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002451/2.091, allocations: 169.5 kB / 0.6847 GB, free: 97.21 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.85/6.94, allocations: 0 / 0.6847 GB, free: 97.21 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat