Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.872/1.872, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.056e-05/5.082e-05, allocations: 0 / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1045, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4274/0.532, allocations: 91.53 MB / 413.4 MB, free: 14.37 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003258/0.5324, allocations: 79.17 kB / 413.4 MB, free: 14.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3634/0.8958, allocations: 78.84 MB / 492.3 MB, free: 14.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.8958, allocations: 0 / 492.3 MB, free: 14.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002456/0.8961, allocations: 72 kB / 492.4 MB, free: 14.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.01443/0.9105, allocations: 3.541 MB / 495.9 MB, free: 11.24 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/0.9106, allocations: 8.031 kB / 495.9 MB, free: 11.23 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002911/0.9135, allocations: 0.6845 MB / 496.6 MB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04105/0.9546, allocations: 4.324 MB / 0.4892 GB, free: 6.199 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01763/0.9723, allocations: 4.361 MB / 0.4934 GB, free: 1.773 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000388/0.9727, allocations: 279.3 kB / 0.4937 GB, free: 1.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002068/0.9748, allocations: 379.8 kB / 0.4941 GB, free: 1.129 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3229/1.298, allocations: 9.018 MB / 0.5029 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003333/1.298, allocations: 57.73 kB / 0.5029 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002465/1.301, allocations: 186.2 kB / 0.5031 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002866/1.304, allocations: 0.8894 MB / 0.504 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02313/1.327, allocations: 7.249 MB / 0.511 GB, free: 96.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06426/1.391, allocations: 42.65 MB / 0.5527 GB, free: 66.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01086/1.402, allocations: 2.497 MB / 0.5551 GB, free: 65.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003031/1.405, allocations: 1.061 MB / 0.5562 GB, free: 65.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006182/1.406, allocations: 333.3 kB / 0.5565 GB, free: 64.94 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/1.406, allocations: 49.91 kB / 0.5565 GB, free: 64.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 6.583e-06/1.406, allocations: 2.906 kB / 0.5565 GB, free: 64.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.04316/1.449, allocations: 7.471 MB / 0.5638 GB, free: 61.62 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.606e-05/1.449, allocations: 198.7 kB / 0.564 GB, free: 61.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008022/1.457, allocations: 3.457 MB / 0.5674 GB, free: 60.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003116/1.458, allocations: 49.91 kB / 0.5674 GB, free: 60.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002625/1.46, allocations: 2.91 MB / 0.5703 GB, free: 57.99 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008523/1.461, allocations: 0.5409 MB / 0.5708 GB, free: 57.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006848/1.462, allocations: 114.9 kB / 0.5709 GB, free: 57.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003856/1.462, allocations: 0.5527 MB / 0.5715 GB, free: 57.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004036/1.466, allocations: 1.597 MB / 0.573 GB, free: 56.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006342/1.473, allocations: 5.385 MB / 0.5783 GB, free: 50.88 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006167/1.479, allocations: 2.935 MB / 0.5811 GB, free: 49.81 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001304/1.479, allocations: 39.75 kB / 0.5812 GB, free: 49.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01725/1.496, allocations: 6.73 MB / 0.5878 GB, free: 47.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/1.496, allocations: 62.19 kB / 0.5878 GB, free: 47.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001945/1.497, allocations: 138.6 kB / 0.5879 GB, free: 47.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/1.498, allocations: 361.4 kB / 0.5883 GB, free: 47.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007684/1.505, allocations: 1.329 MB / 0.5896 GB, free: 47.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00415/1.51, allocations: 2.731 MB / 0.5923 GB, free: 45.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005942/1.516, allocations: 303.4 kB / 0.5925 GB, free: 45.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001193/1.517, allocations: 365.2 kB / 0.5929 GB, free: 45.06 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (715): * Single equations (assignments): 711 * 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.001367/1.518, allocations: 0.5499 MB / 0.5934 GB, free: 44.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007663/1.519, allocations: 322 kB / 0.5937 GB, free: 44.42 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004211/1.523, allocations: 1.569 MB / 0.5953 GB, free: 43.79 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.922e-05/1.523, allocations: 16.91 kB / 0.5953 GB, free: 43.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/1.523, allocations: 3.375 kB / 0.5953 GB, free: 43.79 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.222e-05/1.523, allocations: 6.094 kB / 0.5953 GB, free: 43.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01498/1.538, allocations: 5.206 MB / 0.6004 GB, free: 40.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-05/1.539, allocations: 4 kB / 0.6004 GB, free: 40.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001841/1.54, allocations: 196.2 kB / 0.6006 GB, free: 40.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008408/1.541, allocations: 156.3 kB / 0.6007 GB, free: 40.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000276/1.542, allocations: 28.91 kB / 0.6007 GB, free: 40.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003325/1.545, allocations: 2.141 MB / 0.6028 GB, free: 38.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.545, allocations: 0 / 0.6028 GB, free: 38.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006887/1.552, allocations: 3.527 MB / 0.6063 GB, free: 34.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001733/1.554, allocations: 0.5241 MB / 0.6068 GB, free: 34.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005499/1.554, allocations: 20.7 kB / 0.6068 GB, free: 34.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001904/1.556, allocations: 53.92 kB / 0.6069 GB, free: 34.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/1.556, allocations: 76.81 kB / 0.6069 GB, free: 34.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/1.557, allocations: 46.47 kB / 0.607 GB, free: 34.25 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005007/1.562, allocations: 2.404 MB / 0.6093 GB, free: 32.14 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.52e-07/1.562, allocations: 0 / 0.6093 GB, free: 32.14 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005918/1.568, allocations: 0.8369 MB / 0.6101 GB, free: 31.31 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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.00704/1.575, allocations: 4.611 MB / 0.6147 GB, free: 26.98 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008814/1.583, allocations: 3.908 MB / 0.6185 GB, free: 23.39 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.657e-06/1.583, allocations: 4 kB / 0.6185 GB, free: 23.39 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/1.585, allocations: 0.9527 MB / 0.6194 GB, free: 22.51 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002574/1.588, allocations: 354.2 kB / 0.6197 GB, free: 22.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02281/1.611, allocations: 7.858 MB / 0.6274 GB, free: 15.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005217/1.616, allocations: 3.033 MB / 0.6304 GB, free: 13.04 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003612/1.62, allocations: 1.684 MB / 0.632 GB, free: 11.48 MB / 426.7 MB Notification: Performance of SimCode: time 1.603e-06/1.62, allocations: 0 / 0.632 GB, free: 11.48 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.613/6.233, allocations: 86.92 MB / 0.7169 GB, free: 91.27 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat