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 1.922/1.922, allocations: 209.3 MB / 221.5 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.209e-05/4.232e-05, allocations: 3.984 kB / 273.2 MB, free: 152 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1248, allocations: 48.7 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4732/0.598, allocations: 92.1 MB / 414 MB, free: 13.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.5984, allocations: 75.95 kB / 414.1 MB, free: 13.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3709/0.9693, allocations: 72.92 MB / 487 MB, free: 3.879 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.9694, allocations: 0 / 487 MB, free: 3.879 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000314/0.9697, allocations: 60 kB / 487 MB, free: 3.82 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.01941/0.9891, allocations: 3.259 MB / 490.3 MB, free: 0.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.898e-05/0.9892, allocations: 12.03 kB / 490.3 MB, free: 500 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004118/0.9934, allocations: 0.6182 MB / 490.9 MB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04897/1.042, allocations: 4.25 MB / 495.2 MB, free: 11.6 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02484/1.067, allocations: 4.208 MB / 499.4 MB, free: 7.336 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007008/1.068, allocations: 246.5 kB / 499.6 MB, free: 7.094 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002993/1.071, allocations: 331.8 kB / 499.9 MB, free: 6.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4003/1.472, allocations: 8.169 MB / 0.4962 GB, free: 98.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000507/1.472, allocations: 58.84 kB / 0.4963 GB, free: 98.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002234/1.474, allocations: 163.1 kB / 0.4964 GB, free: 98.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002406/1.477, allocations: 0.8137 MB / 0.4972 GB, free: 98.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02117/1.498, allocations: 6.425 MB / 0.5035 GB, free: 98.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05798/1.556, allocations: 39.76 MB / 0.5423 GB, free: 72.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007899/1.564, allocations: 2.244 MB / 0.5445 GB, free: 71.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003002/1.567, allocations: 1.059 MB / 0.5455 GB, free: 70.86 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006874/1.568, allocations: 319.8 kB / 0.5458 GB, free: 70.56 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.964e-05/1.568, allocations: 53.31 kB / 0.5459 GB, free: 70.51 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 7.034e-06/1.568, allocations: 0 / 0.5459 GB, free: 70.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.05803/1.626, allocations: 9.381 MB / 0.5551 GB, free: 66.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.766e-05/1.626, allocations: 199.2 kB / 0.5552 GB, free: 66.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007509/1.634, allocations: 3.259 MB / 0.5584 GB, free: 65.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003564/1.634, allocations: 48.92 kB / 0.5585 GB, free: 65.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002589/1.637, allocations: 2.69 MB / 0.5611 GB, free: 63.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009044/1.638, allocations: 0.5575 MB / 0.5616 GB, free: 63.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006263/1.638, allocations: 102.9 kB / 0.5617 GB, free: 62.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003533/1.639, allocations: 0.5271 MB / 0.5623 GB, free: 62.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003897/1.643, allocations: 1.601 MB / 0.5638 GB, free: 62.06 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006197/1.649, allocations: 4.968 MB / 0.5687 GB, free: 56.89 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006281/1.655, allocations: 2.831 MB / 0.5714 GB, free: 55.85 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001706/1.655, allocations: 36.03 kB / 0.5715 GB, free: 55.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01659/1.672, allocations: 6.206 MB / 0.5775 GB, free: 53.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.136e-05/1.672, allocations: 57.16 kB / 0.5776 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/1.672, allocations: 126.1 kB / 0.5777 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/1.673, allocations: 341 kB / 0.578 GB, free: 53.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007199/1.681, allocations: 1.242 MB / 0.5792 GB, free: 53.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004165/1.685, allocations: 2.704 MB / 0.5819 GB, free: 51.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006195/1.691, allocations: 289.9 kB / 0.5822 GB, free: 51.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001314/1.692, allocations: 340.8 kB / 0.5825 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.001387/1.694, allocations: 0.5055 MB / 0.583 GB, free: 51 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000859/1.695, allocations: 315.3 kB / 0.5833 GB, free: 50.83 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004904/1.7, allocations: 1.693 MB / 0.5849 GB, free: 50.15 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.3e-05/1.7, allocations: 14.47 kB / 0.5849 GB, free: 50.15 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/1.7, allocations: 7.906 kB / 0.585 GB, free: 50.15 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.451e-05/1.7, allocations: 7.172 kB / 0.585 GB, free: 50.15 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0151/1.715, allocations: 5.364 MB / 0.5902 GB, free: 48.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.835e-05/1.715, allocations: 4.062 kB / 0.5902 GB, free: 48.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002186/1.717, allocations: 221.2 kB / 0.5904 GB, free: 48.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008002/1.718, allocations: 151.6 kB / 0.5906 GB, free: 47.97 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002039/1.718, allocations: 31.98 kB / 0.5906 GB, free: 47.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003146/1.721, allocations: 2.145 MB / 0.5927 GB, free: 46.31 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.722, allocations: 3.688 kB / 0.5927 GB, free: 46.31 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007752/1.729, allocations: 3.772 MB / 0.5964 GB, free: 44.44 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001975/1.731, allocations: 0.5238 MB / 0.5969 GB, free: 43.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007774/1.732, allocations: 24.7 kB / 0.5969 GB, free: 43.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002191/1.734, allocations: 64.81 kB / 0.597 GB, free: 43.86 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/1.735, allocations: 77.23 kB / 0.597 GB, free: 43.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001393/1.735, allocations: 36.78 kB / 0.5971 GB, free: 43.78 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005109/1.74, allocations: 2.277 MB / 0.5993 GB, free: 41.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.032e-06/1.74, allocations: 0 / 0.5993 GB, free: 41.78 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006179/1.746, allocations: 0.7975 MB / 0.6001 GB, free: 40.98 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.007572/1.754, allocations: 4.687 MB / 0.6047 GB, free: 36.63 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00838/1.762, allocations: 3.746 MB / 0.6083 GB, free: 33.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/1.762, allocations: 0 / 0.6083 GB, free: 33.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002062/1.764, allocations: 1.058 MB / 0.6093 GB, free: 32.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002592/1.767, allocations: 339.9 kB / 0.6097 GB, free: 31.95 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02173/1.789, allocations: 7.01 MB / 0.6165 GB, free: 25.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004474/1.793, allocations: 2.813 MB / 0.6193 GB, free: 23.66 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.007649/1.801, allocations: 1.744 MB / 0.621 GB, free: 22.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003534/1.804, allocations: 1.5 MB / 0.6224 GB, free: 21.18 MB / 426.7 MB Notification: Performance of SimCode: time 2.956e-06/1.805, allocations: 0 / 0.6224 GB, free: 21.18 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5518/2.356, allocations: 62.36 MB / 0.6833 GB, free: 107.3 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002366/2.357, allocations: 162.2 kB / 0.6835 GB, free: 107.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.014/7.371, allocations: 0 / 0.6835 GB, free: 107.1 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