Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.404/2.404, allocations: 235 MB / 247.2 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.257e-05/3.262e-05, allocations: 0 / 305 MB, free: 5.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4083/0.4084, allocations: 54.86 MB / 359.9 MB, free: 3.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1839/0.5923, allocations: 98.92 MB / 458.8 MB, free: 13.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002943/0.5927, allocations: 71.97 kB / 458.9 MB, free: 13.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3298/0.9225, allocations: 72.93 MB / 0.5193 GB, free: 4.5 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.9226, allocations: 0 / 0.5193 GB, free: 4.5 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002134/0.9228, allocations: 64 kB / 0.5194 GB, free: 4.438 MB / 458.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.01311/0.9359, allocations: 3.266 MB / 0.5226 GB, free: 1.109 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.103e-05/0.936, allocations: 16.02 kB / 0.5226 GB, free: 1.094 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002764/0.9388, allocations: 0.6143 MB / 0.5232 GB, free: 480 kB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3686/1.307, allocations: 4.241 MB / 0.5274 GB, free: 107.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01711/1.325, allocations: 4.197 MB / 0.5314 GB, free: 107.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003942/1.325, allocations: 247.7 kB / 0.5317 GB, free: 107.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001941/1.327, allocations: 333.6 kB / 0.532 GB, free: 107.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02272/1.35, allocations: 8.179 MB / 0.54 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002654/1.35, allocations: 55.36 kB / 0.54 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001296/1.351, allocations: 164.3 kB / 0.5402 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001846/1.353, allocations: 0.8135 MB / 0.541 GB, free: 104.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01815/1.371, allocations: 6.425 MB / 0.5473 GB, free: 104.5 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05567/1.427, allocations: 39.76 MB / 0.5861 GB, free: 74.28 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007347/1.435, allocations: 2.235 MB / 0.5883 GB, free: 73.14 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002181/1.437, allocations: 1.063 MB / 0.5893 GB, free: 72.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005504/1.437, allocations: 328.2 kB / 0.5896 GB, free: 72.39 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/1.437, allocations: 47.56 kB / 0.5897 GB, free: 72.34 MB / 458.7 MB Notification: Performance of pre-optimization done (n=117): time 5.491e-06/1.437, allocations: 0 / 0.5897 GB, free: 72.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=141): time 0.04277/1.48, allocations: 9.405 MB / 0.5989 GB, free: 68.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.585e-05/1.48, allocations: 194 kB / 0.599 GB, free: 68.36 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007461/1.488, allocations: 3.254 MB / 0.6022 GB, free: 67.15 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003216/1.488, allocations: 45.48 kB / 0.6023 GB, free: 67.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002403/1.491, allocations: 2.69 MB / 0.6049 GB, free: 65.01 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007911/1.491, allocations: 0.5607 MB / 0.6054 GB, free: 64.61 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004793/1.492, allocations: 107.2 kB / 0.6055 GB, free: 64.53 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003305/1.492, allocations: 0.5307 MB / 0.6061 GB, free: 64.13 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003668/1.496, allocations: 1.591 MB / 0.6076 GB, free: 63.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005811/1.502, allocations: 4.971 MB / 0.6125 GB, free: 58.33 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006263/1.508, allocations: 2.834 MB / 0.6152 GB, free: 57.28 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001545/1.508, allocations: 32.12 kB / 0.6153 GB, free: 57.28 MB / 458.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01679/1.525, allocations: 6.193 MB / 0.6213 GB, free: 53.54 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.481e-05/1.525, allocations: 62.45 kB / 0.6214 GB, free: 53.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001538/1.526, allocations: 125.8 kB / 0.6215 GB, free: 53.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/1.527, allocations: 351.6 kB / 0.6218 GB, free: 53.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007505/1.534, allocations: 1.235 MB / 0.623 GB, free: 51.97 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004151/1.538, allocations: 2.707 MB / 0.6257 GB, free: 49.37 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006144/1.545, allocations: 286.5 kB / 0.626 GB, free: 49.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00117/1.546, allocations: 335.8 kB / 0.6263 GB, free: 48.79 MB / 458.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.001099/1.547, allocations: 0.5199 MB / 0.6268 GB, free: 48.27 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008074/1.548, allocations: 312 kB / 0.6271 GB, free: 47.96 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004544/1.552, allocations: 1.683 MB / 0.6287 GB, free: 46.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.955e-05/1.552, allocations: 17.5 kB / 0.6287 GB, free: 46.52 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/1.552, allocations: 7.469 kB / 0.6287 GB, free: 46.52 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.26e-05/1.552, allocations: 3.562 kB / 0.6287 GB, free: 46.52 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01489/1.567, allocations: 5.378 MB / 0.634 GB, free: 42.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-05/1.567, allocations: 0 / 0.634 GB, free: 42.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002224/1.57, allocations: 225.8 kB / 0.6342 GB, free: 41.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008073/1.571, allocations: 156.8 kB / 0.6344 GB, free: 41.78 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001944/1.571, allocations: 25.33 kB / 0.6344 GB, free: 41.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00305/1.574, allocations: 2.151 MB / 0.6365 GB, free: 39.65 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.574, allocations: 5.344 kB / 0.6365 GB, free: 39.65 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007435/1.581, allocations: 3.755 MB / 0.6402 GB, free: 36.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001821/1.583, allocations: 0.5361 MB / 0.6407 GB, free: 35.68 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005693/1.584, allocations: 25.48 kB / 0.6407 GB, free: 35.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002077/1.586, allocations: 64.78 kB / 0.6408 GB, free: 35.62 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/1.586, allocations: 80.72 kB / 0.6408 GB, free: 35.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001408/1.586, allocations: 37.33 kB / 0.6409 GB, free: 35.53 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005053/1.591, allocations: 2.269 MB / 0.6431 GB, free: 33.54 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.032e-06/1.591, allocations: 0 / 0.6431 GB, free: 33.54 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006167/1.598, allocations: 0.8036 MB / 0.6439 GB, free: 32.74 MB / 458.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.008248/1.606, allocations: 4.69 MB / 0.6485 GB, free: 28.38 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008647/1.615, allocations: 3.741 MB / 0.6521 GB, free: 24.98 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.615, allocations: 0 / 0.6521 GB, free: 24.98 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002239/1.617, allocations: 1.045 MB / 0.6531 GB, free: 24.01 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003166/1.62, allocations: 350.4 kB / 0.6535 GB, free: 23.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02308/1.643, allocations: 6.998 MB / 0.6603 GB, free: 17.62 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005456/1.649, allocations: 2.827 MB / 0.6631 GB, free: 15.34 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.008288/1.657, allocations: 1.745 MB / 0.6648 GB, free: 13.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003752/1.661, allocations: 1.499 MB / 0.6662 GB, free: 12.1 MB / 458.7 MB Notification: Performance of SimCode: time 3.096e-06/1.661, allocations: 0 / 0.6662 GB, free: 12.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5042/2.165, allocations: 62.34 MB / 0.7271 GB, free: 120.2 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002583/2.166, allocations: 164.8 kB / 0.7273 GB, free: 120 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.716/6.881, allocations: 0 / 0.7273 GB, free: 120 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat