Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.93/1.93, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.41e-05/3.421e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1024, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4345/0.5369, allocations: 92.09 MB / 413.9 MB, free: 13.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000309/0.5373, allocations: 71.97 kB / 414 MB, free: 13.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3299/0.8673, allocations: 72.91 MB / 486.9 MB, free: 4.336 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.8673, allocations: 0 / 486.9 MB, free: 4.336 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000215/0.8675, allocations: 67.94 kB / 487 MB, free: 4.27 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.01301/0.8806, allocations: 3.259 MB / 490.2 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.851e-05/0.8806, allocations: 11.97 kB / 490.2 MB, free: 0.9375 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002742/0.8834, allocations: 0.6143 MB / 490.9 MB, free: 320 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03227/0.9157, allocations: 4.25 MB / 495.1 MB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01766/0.9334, allocations: 4.212 MB / 499.3 MB, free: 7.785 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004837/0.9339, allocations: 246.5 kB / 499.6 MB, free: 7.543 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002353/0.9363, allocations: 335.8 kB / 499.9 MB, free: 7.215 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4147/1.351, allocations: 8.202 MB / 0.4962 GB, free: 98.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004618/1.352, allocations: 58.31 kB / 0.4962 GB, free: 98.45 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002465/1.354, allocations: 164.4 kB / 0.4964 GB, free: 98.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003359/1.357, allocations: 0.8168 MB / 0.4972 GB, free: 98.45 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02974/1.387, allocations: 6.578 MB / 0.5036 GB, free: 98.42 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08238/1.47, allocations: 39.77 MB / 0.5424 GB, free: 71.95 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0108/1.481, allocations: 2.256 MB / 0.5446 GB, free: 70.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003238/1.484, allocations: 1.057 MB / 0.5457 GB, free: 70.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007027/1.485, allocations: 317.5 kB / 0.546 GB, free: 70.05 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.853e-05/1.485, allocations: 46.84 kB / 0.546 GB, free: 70 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 6.172e-06/1.485, allocations: 7.656 kB / 0.546 GB, free: 70 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.06354/1.548, allocations: 9.389 MB / 0.5552 GB, free: 66.31 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.975e-05/1.548, allocations: 195.9 kB / 0.5554 GB, free: 66.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0103/1.559, allocations: 3.259 MB / 0.5586 GB, free: 64.95 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004014/1.559, allocations: 50 kB / 0.5586 GB, free: 64.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00324/1.562, allocations: 2.627 MB / 0.5612 GB, free: 62.94 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00111/1.564, allocations: 0.5599 MB / 0.5617 GB, free: 62.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007627/1.564, allocations: 110.2 kB / 0.5618 GB, free: 62.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005547/1.565, allocations: 0.5336 MB / 0.5624 GB, free: 62.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006087/1.571, allocations: 1.592 MB / 0.5639 GB, free: 61.54 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00903/1.58, allocations: 5.005 MB / 0.5688 GB, free: 56.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009162/1.589, allocations: 2.831 MB / 0.5716 GB, free: 55.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001483/1.59, allocations: 34.84 kB / 0.5716 GB, free: 55.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.02502/1.615, allocations: 6.437 MB / 0.5779 GB, free: 52.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001539/1.615, allocations: 60.19 kB / 0.5779 GB, free: 52.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002495/1.615, allocations: 123.5 kB / 0.5781 GB, free: 52.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001743/1.617, allocations: 351.3 kB / 0.5784 GB, free: 52.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01112/1.628, allocations: 1.244 MB / 0.5796 GB, free: 52.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004495/1.633, allocations: 2.699 MB / 0.5822 GB, free: 50.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007596/1.64, allocations: 286.8 kB / 0.5825 GB, free: 50.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001374/1.642, allocations: 336.2 kB / 0.5828 GB, free: 50.68 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.001655/1.643, allocations: 0.517 MB / 0.5833 GB, free: 50.24 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/1.644, allocations: 312.1 kB / 0.5836 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006741/1.651, allocations: 1.692 MB / 0.5853 GB, free: 49.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.85e-05/1.651, allocations: 17.62 kB / 0.5853 GB, free: 49.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/1.651, allocations: 2.906 kB / 0.5853 GB, free: 49.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.578e-05/1.651, allocations: 10.22 kB / 0.5853 GB, free: 49.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02052/1.672, allocations: 5.361 MB / 0.5906 GB, free: 47.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.326e-05/1.672, allocations: 3.5 kB / 0.5906 GB, free: 47.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002896/1.675, allocations: 221.8 kB / 0.5908 GB, free: 47.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/1.676, allocations: 158.6 kB / 0.5909 GB, free: 47.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002829/1.676, allocations: 26.73 kB / 0.591 GB, free: 47.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004409/1.681, allocations: 2.145 MB / 0.593 GB, free: 45.56 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/1.681, allocations: 7.625 kB / 0.5931 GB, free: 45.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01103/1.692, allocations: 3.757 MB / 0.5967 GB, free: 43.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002542/1.695, allocations: 0.5343 MB / 0.5972 GB, free: 42.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/1.696, allocations: 20 kB / 0.5973 GB, free: 42.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00344/1.699, allocations: 72.08 kB / 0.5973 GB, free: 42.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005896/1.7, allocations: 81.27 kB / 0.5974 GB, free: 42.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002887/1.7, allocations: 38.03 kB / 0.5974 GB, free: 42.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008866/1.709, allocations: 2.268 MB / 0.5997 GB, free: 40.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.464e-06/1.709, allocations: 0 / 0.5997 GB, free: 40.81 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01058/1.72, allocations: 0.8043 MB / 0.6004 GB, free: 40.01 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.0134/1.733, allocations: 4.691 MB / 0.605 GB, free: 35.65 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0128/1.746, allocations: 3.918 MB / 0.6089 GB, free: 32.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/1.746, allocations: 0 / 0.6089 GB, free: 32.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003516/1.749, allocations: 1.064 MB / 0.6099 GB, free: 31.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004111/1.754, allocations: 342.5 kB / 0.6102 GB, free: 30.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03402/1.788, allocations: 7.401 MB / 0.6174 GB, free: 24.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008047/1.796, allocations: 2.828 MB / 0.6202 GB, free: 22.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005316/1.801, allocations: 1.543 MB / 0.6217 GB, free: 20.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.873e-06/1.801, allocations: 0 / 0.6217 GB, free: 20.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.572/6.373, allocations: 81.59 MB / 0.7014 GB, free: 90.81 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat