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 2.142/2.142, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.505e-05/2.511e-05, allocations: 0 / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 48.7 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4513/0.5644, allocations: 91.13 MB / 407.4 MB, free: 1.406 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.5647, allocations: 76.75 kB / 407.5 MB, free: 1.371 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3675/0.9322, allocations: 77.31 MB / 484.8 MB, free: 7.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.9322, allocations: 0 / 484.8 MB, free: 7.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003496/0.9326, allocations: 72 kB / 484.9 MB, free: 7.359 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: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.02051/0.9531, allocations: 3.519 MB / 488.4 MB, free: 3.781 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.981e-05/0.9533, allocations: 23.95 kB / 488.4 MB, free: 3.758 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.35/1.303, allocations: 4.315 MB / 492.7 MB, free: 89.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01852/1.322, allocations: 4.36 MB / 497.1 MB, free: 89.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004261/1.322, allocations: 118 kB / 497.2 MB, free: 89.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00247/1.325, allocations: 217.9 kB / 497.4 MB, free: 89.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01977/1.345, allocations: 5.212 MB / 0.4909 GB, free: 89.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02976/1.374, allocations: 8.328 MB / 0.499 GB, free: 86.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003854/1.375, allocations: 60.19 kB / 0.499 GB, free: 86.65 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002151/1.377, allocations: 30.66 kB / 0.4991 GB, free: 86.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003028/1.38, allocations: 0.8937 MB / 0.5 GB, free: 86.65 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08136/1.462, allocations: 40.78 MB / 0.5398 GB, free: 58.13 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005948/1.468, allocations: 2.418 MB / 0.5421 GB, free: 56.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003039/1.471, allocations: 1.06 MB / 0.5432 GB, free: 56.13 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006795/1.471, allocations: 332.9 kB / 0.5435 GB, free: 55.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.906e-05/1.471, allocations: 45.69 kB / 0.5435 GB, free: 55.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 8.356e-06/1.471, allocations: 0 / 0.5435 GB, free: 55.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=140): time 0.04234/1.514, allocations: 9.599 MB / 0.5529 GB, free: 51.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.606e-05/1.514, allocations: 198.9 kB / 0.5531 GB, free: 51.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005929/1.52, allocations: 3.004 MB / 0.556 GB, free: 50.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003042/1.52, allocations: 29.67 kB / 0.5561 GB, free: 50.01 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00236/1.523, allocations: 3.024 MB / 0.559 GB, free: 47.58 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008227/1.523, allocations: 0.5545 MB / 0.5596 GB, free: 47.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004988/1.524, allocations: 0 / 0.5596 GB, free: 47.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003713/1.524, allocations: 0.5618 MB / 0.5601 GB, free: 46.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003332/1.528, allocations: 1.555 MB / 0.5616 GB, free: 46.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006405/1.534, allocations: 5.516 MB / 0.567 GB, free: 40.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006579/1.541, allocations: 2.951 MB / 0.5699 GB, free: 39.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00017/1.541, allocations: 45.89 kB / 0.5699 GB, free: 39.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=790) (initialization): time 0.01965/1.561, allocations: 6.206 MB / 0.576 GB, free: 36.92 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000254/1.561, allocations: 63.12 kB / 0.5761 GB, free: 36.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004522/1.562, allocations: 143.6 kB / 0.5762 GB, free: 36.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002136/1.564, allocations: 370.9 kB / 0.5765 GB, free: 36.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009491/1.573, allocations: 1.407 MB / 0.5779 GB, free: 36.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003892/1.577, allocations: 2.629 MB / 0.5805 GB, free: 34.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006266/1.583, allocations: 193.1 kB / 0.5807 GB, free: 33.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001353/1.585, allocations: 391.7 kB / 0.581 GB, free: 33.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 651 * 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 (755): * Single equations (assignments): 751 * 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.001451/1.586, allocations: 448.5 kB / 0.5815 GB, free: 33.15 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004477/1.591, allocations: 1.88 MB / 0.5833 GB, free: 31.49 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007057/1.592, allocations: 304 kB / 0.5836 GB, free: 31.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003998/1.596, allocations: 1.54 MB / 0.5851 GB, free: 29.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-05/1.596, allocations: 23.42 kB / 0.5851 GB, free: 29.88 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/1.596, allocations: 4 kB / 0.5851 GB, free: 29.88 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.695e-05/1.596, allocations: 3.75 kB / 0.5851 GB, free: 29.88 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01307/1.609, allocations: 4.718 MB / 0.5897 GB, free: 25.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/1.609, allocations: 4 kB / 0.5897 GB, free: 25.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001865/1.611, allocations: 208.4 kB / 0.5899 GB, free: 25.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007588/1.612, allocations: 151 kB / 0.5901 GB, free: 25.69 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001291/1.612, allocations: 8 kB / 0.5901 GB, free: 25.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002961/1.615, allocations: 2.059 MB / 0.5921 GB, free: 23.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/1.615, allocations: 0 / 0.5921 GB, free: 23.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006359/1.621, allocations: 3.508 MB / 0.5955 GB, free: 20.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001624/1.623, allocations: 0.4955 MB / 0.596 GB, free: 19.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005961/1.623, allocations: 12.02 kB / 0.596 GB, free: 19.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001761/1.625, allocations: 34.11 kB / 0.5961 GB, free: 19.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002628/1.625, allocations: 77.27 kB / 0.5961 GB, free: 19.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/1.626, allocations: 36.7 kB / 0.5962 GB, free: 19.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00388/1.629, allocations: 1.993 MB / 0.5981 GB, free: 18.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.32e-07/1.63, allocations: 0 / 0.5981 GB, free: 18.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006291/1.636, allocations: 0.7266 MB / 0.5988 GB, free: 17.41 MB / 410.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 (109): * Single equations (assignments): 105 * 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.00691/1.643, allocations: 4.584 MB / 0.6033 GB, free: 13.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007968/1.651, allocations: 3.77 MB / 0.607 GB, free: 9.688 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/1.651, allocations: 0 / 0.607 GB, free: 9.688 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/1.653, allocations: 0.9483 MB / 0.6079 GB, free: 8.816 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002705/1.656, allocations: 287 kB / 0.6082 GB, free: 8.562 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02544/1.681, allocations: 7.722 MB / 0.6157 GB, free: 1.863 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007297/1.688, allocations: 3.074 MB / 0.6187 GB, free: 15.64 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004618/1.693, allocations: 1.68 MB / 0.6204 GB, free: 14.08 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/1.693, allocations: 0 / 0.6204 GB, free: 14.08 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.442/6.135, allocations: 85.01 MB / 0.7034 GB, free: 72.46 MB / 426.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