Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.332/2.332, allocations: 235 MB / 247.6 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.192e-05/4.201e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4068, allocations: 54.85 MB / 359.9 MB, free: 2.699 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1925/0.5993, allocations: 98.91 MB / 458.8 MB, free: 14.03 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003203/0.5997, allocations: 75.97 kB / 458.8 MB, free: 13.96 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3506/0.9503, allocations: 72.93 MB / 0.5193 GB, free: 4.543 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.9504, allocations: 4 kB / 0.5193 GB, free: 4.539 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002182/0.9506, allocations: 60 kB / 0.5194 GB, free: 4.48 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.01388/0.9645, allocations: 3.263 MB / 0.5226 GB, free: 1.156 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.814e-05/0.9646, allocations: 12.03 kB / 0.5226 GB, free: 1.145 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003351/0.9679, allocations: 0.6183 MB / 0.5232 GB, free: 0.5156 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3545/1.323, allocations: 4.242 MB / 0.5273 GB, free: 106.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01651/1.339, allocations: 4.204 MB / 0.5314 GB, free: 106.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003712/1.339, allocations: 248 kB / 0.5317 GB, free: 106.6 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0019/1.341, allocations: 329.4 kB / 0.532 GB, free: 106.6 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02997/1.371, allocations: 8.177 MB / 0.54 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003165/1.372, allocations: 53.7 kB / 0.54 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001628/1.373, allocations: 167.3 kB / 0.5402 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002579/1.376, allocations: 0.8175 MB / 0.541 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02537/1.401, allocations: 6.425 MB / 0.5472 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05736/1.459, allocations: 39.76 MB / 0.5861 GB, free: 73.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007289/1.466, allocations: 2.233 MB / 0.5883 GB, free: 72.79 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002117/1.468, allocations: 1.06 MB / 0.5893 GB, free: 72.34 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004903/1.469, allocations: 321.7 kB / 0.5896 GB, free: 72.05 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/1.469, allocations: 55.36 kB / 0.5896 GB, free: 72 MB / 458.7 MB Notification: Performance of pre-optimization done (n=117): time 4.639e-06/1.469, allocations: 0 / 0.5896 GB, free: 72 MB / 458.7 MB Notification: Performance of matching and sorting (n=141): time 0.04207/1.511, allocations: 9.404 MB / 0.5988 GB, free: 68.23 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.12e-05/1.511, allocations: 198.9 kB / 0.599 GB, free: 68.01 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006666/1.518, allocations: 3.257 MB / 0.6022 GB, free: 66.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003049/1.518, allocations: 43.77 kB / 0.6022 GB, free: 66.76 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001994/1.52, allocations: 2.632 MB / 0.6048 GB, free: 64.65 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007566/1.521, allocations: 0.5613 MB / 0.6054 GB, free: 64.25 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004492/1.521, allocations: 103.4 kB / 0.6055 GB, free: 64.17 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003252/1.522, allocations: 0.5403 MB / 0.606 GB, free: 63.76 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003582/1.525, allocations: 1.589 MB / 0.6075 GB, free: 63.24 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005557/1.531, allocations: 4.969 MB / 0.6124 GB, free: 57.97 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00591/1.537, allocations: 2.832 MB / 0.6152 GB, free: 56.92 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001017/1.537, allocations: 32.38 kB / 0.6152 GB, free: 56.92 MB / 458.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01564/1.553, allocations: 6.091 MB / 0.6211 GB, free: 53.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.029e-05/1.553, allocations: 66.3 kB / 0.6212 GB, free: 53.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001398/1.553, allocations: 120 kB / 0.6213 GB, free: 53.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/1.554, allocations: 351.8 kB / 0.6216 GB, free: 53.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007265/1.561, allocations: 1.24 MB / 0.6229 GB, free: 52.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004035/1.565, allocations: 2.703 MB / 0.6255 GB, free: 49.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005812/1.571, allocations: 292.8 kB / 0.6258 GB, free: 49.17 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009692/1.572, allocations: 331.5 kB / 0.6261 GB, free: 48.85 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.0009245/1.573, allocations: 0.5236 MB / 0.6266 GB, free: 48.32 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007615/1.574, allocations: 308 kB / 0.6269 GB, free: 48.02 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004246/1.578, allocations: 1.689 MB / 0.6286 GB, free: 46.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.093e-05/1.578, allocations: 17.02 kB / 0.6286 GB, free: 46.58 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/1.578, allocations: 5.031 kB / 0.6286 GB, free: 46.57 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.029e-05/1.578, allocations: 6.422 kB / 0.6286 GB, free: 46.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0136/1.592, allocations: 5.368 MB / 0.6338 GB, free: 42.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.539e-05/1.592, allocations: 4 kB / 0.6338 GB, free: 42.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002101/1.594, allocations: 215.8 kB / 0.634 GB, free: 41.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007592/1.595, allocations: 163 kB / 0.6342 GB, free: 41.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001591/1.595, allocations: 21.52 kB / 0.6342 GB, free: 41.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003076/1.598, allocations: 2.149 MB / 0.6363 GB, free: 39.72 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/1.598, allocations: 3.938 kB / 0.6363 GB, free: 39.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007446/1.606, allocations: 3.76 MB / 0.64 GB, free: 36.26 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001769/1.607, allocations: 0.537 MB / 0.6405 GB, free: 35.74 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007491/1.608, allocations: 20 kB / 0.6405 GB, free: 35.72 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002363/1.611, allocations: 74.08 kB / 0.6406 GB, free: 35.68 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002788/1.611, allocations: 81.84 kB / 0.6407 GB, free: 35.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001398/1.611, allocations: 36.38 kB / 0.6407 GB, free: 35.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005214/1.616, allocations: 2.271 MB / 0.6429 GB, free: 33.59 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.262e-06/1.616, allocations: 0 / 0.6429 GB, free: 33.59 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006227/1.623, allocations: 0.7982 MB / 0.6437 GB, free: 32.8 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.008054/1.631, allocations: 4.697 MB / 0.6483 GB, free: 28.44 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008444/1.639, allocations: 3.732 MB / 0.6519 GB, free: 25.04 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/1.639, allocations: 4 kB / 0.6519 GB, free: 25.04 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002259/1.641, allocations: 1.047 MB / 0.653 GB, free: 24.07 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003012/1.645, allocations: 342.6 kB / 0.6533 GB, free: 23.77 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02323/1.668, allocations: 7.399 MB / 0.6605 GB, free: 17.35 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004776/1.673, allocations: 2.822 MB / 0.6633 GB, free: 15.18 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003388/1.676, allocations: 1.547 MB / 0.6648 GB, free: 13.65 MB / 458.7 MB Notification: Performance of SimCode: time 1.363e-06/1.676, allocations: 0 / 0.6648 GB, free: 13.65 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.44/6.116, allocations: 80.71 MB / 0.7436 GB, free: 119.8 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat