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.92/1.92, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.368e-05/4.377e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1041, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4229/0.5271, allocations: 92.09 MB / 413.9 MB, free: 13.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002964/0.5275, allocations: 79.22 kB / 414 MB, free: 13.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.346/0.8735, allocations: 72.91 MB / 486.9 MB, free: 4.203 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.8736, allocations: 0 / 486.9 MB, free: 4.203 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002489/0.8738, allocations: 60 kB / 487 MB, free: 4.145 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.01304/0.8869, allocations: 3.266 MB / 490.3 MB, free: 0.8164 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.887, allocations: 11.97 kB / 490.3 MB, free: 0.8047 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002641/0.8896, allocations: 0.6183 MB / 490.9 MB, free: 180 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0338/0.9235, allocations: 4.25 MB / 495.1 MB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0178/0.9413, allocations: 4.204 MB / 499.3 MB, free: 7.656 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004044/0.9418, allocations: 242.5 kB / 499.6 MB, free: 7.418 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001998/0.9438, allocations: 331.8 kB / 499.9 MB, free: 7.094 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3346/1.278, allocations: 8.173 MB / 0.4962 GB, free: 98.17 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002038/1.279, allocations: 55.14 kB / 0.4962 GB, free: 98.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000807/1.28, allocations: 164.5 kB / 0.4964 GB, free: 98.17 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001856/1.281, allocations: 0.8114 MB / 0.4972 GB, free: 98.17 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01922/1.301, allocations: 6.425 MB / 0.5034 GB, free: 98.16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05146/1.352, allocations: 39.77 MB / 0.5423 GB, free: 71.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007137/1.359, allocations: 2.248 MB / 0.5445 GB, free: 70.85 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002216/1.362, allocations: 1.056 MB / 0.5455 GB, free: 70.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005118/1.362, allocations: 320.1 kB / 0.5458 GB, free: 70.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/1.362, allocations: 43.09 kB / 0.5459 GB, free: 70.06 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 4.909e-06/1.362, allocations: 0 / 0.5459 GB, free: 70.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.04336/1.406, allocations: 9.381 MB / 0.555 GB, free: 66.36 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/1.406, allocations: 203.1 kB / 0.5552 GB, free: 66.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01054/1.416, allocations: 3.257 MB / 0.5584 GB, free: 65 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003959/1.417, allocations: 45.58 kB / 0.5584 GB, free: 64.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003141/1.42, allocations: 2.635 MB / 0.561 GB, free: 63 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009868/1.421, allocations: 0.5583 MB / 0.5616 GB, free: 62.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006556/1.422, allocations: 104.8 kB / 0.5617 GB, free: 62.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003452/1.422, allocations: 0.5341 MB / 0.5622 GB, free: 62.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00379/1.426, allocations: 1.594 MB / 0.5637 GB, free: 61.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00597/1.432, allocations: 4.975 MB / 0.5686 GB, free: 56.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006005/1.438, allocations: 2.831 MB / 0.5714 GB, free: 55.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001193/1.438, allocations: 33.53 kB / 0.5714 GB, free: 55.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01627/1.454, allocations: 6.099 MB / 0.5773 GB, free: 53.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.345e-05/1.455, allocations: 59.81 kB / 0.5774 GB, free: 53.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001588/1.455, allocations: 127 kB / 0.5775 GB, free: 53.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/1.456, allocations: 341.3 kB / 0.5779 GB, free: 53.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007723/1.464, allocations: 1.24 MB / 0.5791 GB, free: 53.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004244/1.468, allocations: 2.708 MB / 0.5817 GB, free: 51.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006161/1.474, allocations: 287.6 kB / 0.582 GB, free: 51.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00118/1.475, allocations: 339.8 kB / 0.5823 GB, free: 51.02 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.001169/1.477, allocations: 0.5072 MB / 0.5828 GB, free: 50.59 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008287/1.477, allocations: 318 kB / 0.5831 GB, free: 50.42 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004463/1.482, allocations: 1.681 MB / 0.5847 GB, free: 49.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.151e-05/1.482, allocations: 19.25 kB / 0.5848 GB, free: 49.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/1.482, allocations: 7.188 kB / 0.5848 GB, free: 49.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-05/1.482, allocations: 10.89 kB / 0.5848 GB, free: 49.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01509/1.497, allocations: 5.366 MB / 0.59 GB, free: 47.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.647e-05/1.497, allocations: 4.062 kB / 0.59 GB, free: 47.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002195/1.499, allocations: 220.7 kB / 0.5902 GB, free: 47.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008131/1.5, allocations: 151.1 kB / 0.5904 GB, free: 47.56 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002062/1.501, allocations: 27.11 kB / 0.5904 GB, free: 47.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003018/1.504, allocations: 2.157 MB / 0.5925 GB, free: 45.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.504, allocations: 3.938 kB / 0.5925 GB, free: 45.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00741/1.511, allocations: 3.767 MB / 0.5962 GB, free: 43.97 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001807/1.513, allocations: 0.5259 MB / 0.5967 GB, free: 43.46 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008037/1.514, allocations: 21.56 kB / 0.5967 GB, free: 43.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002491/1.516, allocations: 69.7 kB / 0.5968 GB, free: 43.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003445/1.517, allocations: 74.89 kB / 0.5969 GB, free: 43.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/1.517, allocations: 39.81 kB / 0.5969 GB, free: 43.31 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005716/1.522, allocations: 2.272 MB / 0.5991 GB, free: 41.32 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.523, allocations: 0 / 0.5991 GB, free: 41.32 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006246/1.529, allocations: 0.8007 MB / 0.5999 GB, free: 40.52 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.007968/1.537, allocations: 4.685 MB / 0.6045 GB, free: 36.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008458/1.545, allocations: 3.746 MB / 0.6081 GB, free: 32.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/1.545, allocations: 0 / 0.6081 GB, free: 32.75 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002133/1.548, allocations: 1.043 MB / 0.6092 GB, free: 31.79 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002777/1.55, allocations: 341.4 kB / 0.6095 GB, free: 31.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02237/1.573, allocations: 7.411 MB / 0.6167 GB, free: 25.05 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005198/1.578, allocations: 2.823 MB / 0.6195 GB, free: 22.87 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003557/1.582, allocations: 1.534 MB / 0.621 GB, free: 21.45 MB / 426.7 MB Notification: Performance of SimCode: time 1.323e-06/1.582, allocations: 0 / 0.621 GB, free: 21.45 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.219/5.8, allocations: 80.72 MB / 0.6998 GB, free: 90.41 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