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 2.246/2.246, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.695e-05/2.703e-05, allocations: 0 / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4423/0.5488, allocations: 91.69 MB / 408 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.5492, allocations: 71.97 kB / 408.1 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3304/0.8796, allocations: 71.59 MB / 479.6 MB, free: 12.64 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.8797, allocations: 0 / 479.6 MB, free: 12.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002326/0.8799, allocations: 60 kB / 479.7 MB, free: 12.59 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.01377/0.8937, allocations: 3.266 MB / 483 MB, free: 9.258 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.071e-05/0.8938, allocations: 8.031 kB / 483 MB, free: 9.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03315/0.9269, allocations: 4.246 MB / 487.2 MB, free: 4.992 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01749/0.9445, allocations: 4.212 MB / 491.4 MB, free: 0.7305 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002649/0.9448, allocations: 108 kB / 491.5 MB, free: 0.625 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001858/0.9467, allocations: 184 kB / 491.7 MB, free: 456 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2991/1.246, allocations: 4.661 MB / 496.4 MB, free: 92.94 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02102/1.267, allocations: 7.577 MB / 0.4921 GB, free: 90.44 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000304/1.267, allocations: 56.89 kB / 0.4922 GB, free: 90.44 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001562/1.269, allocations: 27.53 kB / 0.4922 GB, free: 90.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002136/1.271, allocations: 0.8194 MB / 0.493 GB, free: 90.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05066/1.322, allocations: 38.11 MB / 0.5302 GB, free: 64.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003686/1.326, allocations: 2.334 MB / 0.5325 GB, free: 63.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001838/1.327, allocations: 1.054 MB / 0.5336 GB, free: 62.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004818/1.328, allocations: 330.1 kB / 0.5339 GB, free: 62.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/1.328, allocations: 48.59 kB / 0.5339 GB, free: 62.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=120): time 4.468e-06/1.328, allocations: 0 / 0.5339 GB, free: 62.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=150): time 0.03515/1.363, allocations: 10.5 MB / 0.5442 GB, free: 58.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.847e-05/1.363, allocations: 194.7 kB / 0.5444 GB, free: 57.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006489/1.37, allocations: 2.786 MB / 0.5471 GB, free: 56.92 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003242/1.37, allocations: 25.7 kB / 0.5471 GB, free: 56.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002115/1.372, allocations: 2.726 MB / 0.5498 GB, free: 54.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007963/1.373, allocations: 0.5755 MB / 0.5503 GB, free: 54.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004688/1.374, allocations: 3.594 kB / 0.5503 GB, free: 54.44 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003254/1.374, allocations: 0.5463 MB / 0.5509 GB, free: 54.03 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003246/1.377, allocations: 1.559 MB / 0.5524 GB, free: 53.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005554/1.383, allocations: 5.106 MB / 0.5574 GB, free: 48.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006125/1.389, allocations: 2.826 MB / 0.5601 GB, free: 47.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000118/1.389, allocations: 33.41 kB / 0.5602 GB, free: 47.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=735) (initialization): time 0.01595/1.405, allocations: 5.941 MB / 0.566 GB, free: 44.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.882e-05/1.405, allocations: 57.81 kB / 0.566 GB, free: 44.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001734/1.405, allocations: 132.1 kB / 0.5661 GB, free: 44.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/1.407, allocations: 361.1 kB / 0.5665 GB, free: 44.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00777/1.414, allocations: 1.301 MB / 0.5678 GB, free: 44.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004031/1.418, allocations: 2.602 MB / 0.5703 GB, free: 42.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006508/1.425, allocations: 179.5 kB / 0.5705 GB, free: 42.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001204/1.426, allocations: 355.3 kB / 0.5708 GB, free: 42.91 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * 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 (700): * Single equations (assignments): 696 * 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.001108/1.427, allocations: 419.8 kB / 0.5712 GB, free: 42.57 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004843/1.432, allocations: 2.05 MB / 0.5732 GB, free: 41.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007965/1.433, allocations: 284 kB / 0.5735 GB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004449/1.438, allocations: 1.659 MB / 0.5751 GB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-05/1.438, allocations: 16.03 kB / 0.5751 GB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/1.438, allocations: 7.766 kB / 0.5751 GB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.476e-05/1.438, allocations: 7.219 kB / 0.5751 GB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01333/1.451, allocations: 5.132 MB / 0.5801 GB, free: 36.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/1.451, allocations: 3.656 kB / 0.5801 GB, free: 36.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00219/1.453, allocations: 236.5 kB / 0.5804 GB, free: 36.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007674/1.454, allocations: 148.8 kB / 0.5805 GB, free: 36.65 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001585/1.454, allocations: 8 kB / 0.5805 GB, free: 36.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002838/1.457, allocations: 2.049 MB / 0.5825 GB, free: 34.65 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/1.457, allocations: 10.66 kB / 0.5825 GB, free: 34.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006827/1.464, allocations: 3.746 MB / 0.5862 GB, free: 31.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001608/1.466, allocations: 0.5163 MB / 0.5867 GB, free: 30.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006436/1.466, allocations: 15.75 kB / 0.5867 GB, free: 30.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001984/1.468, allocations: 41.44 kB / 0.5868 GB, free: 30.69 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002913/1.469, allocations: 73.94 kB / 0.5868 GB, free: 30.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000139/1.469, allocations: 43.47 kB / 0.5869 GB, free: 30.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003698/1.473, allocations: 1.856 MB / 0.5887 GB, free: 28.99 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.473, allocations: 0 / 0.5887 GB, free: 28.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006334/1.479, allocations: 0.6844 MB / 0.5893 GB, free: 28.31 MB / 410.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 (121): * Single equations (assignments): 117 * 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.007592/1.487, allocations: 4.675 MB / 0.5939 GB, free: 23.98 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008986/1.496, allocations: 3.774 MB / 0.5976 GB, free: 20.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.496, allocations: 0 / 0.5976 GB, free: 20.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002122/1.498, allocations: 1.063 MB / 0.5986 GB, free: 19.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002539/1.5, allocations: 281.7 kB / 0.5989 GB, free: 19.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02241/1.523, allocations: 7.281 MB / 0.606 GB, free: 13.03 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005527/1.528, allocations: 2.83 MB / 0.6088 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003645/1.532, allocations: 1.545 MB / 0.6103 GB, free: 9.41 MB / 410.7 MB Notification: Performance of SimCode: time 2.485e-06/1.532, allocations: 0 / 0.6103 GB, free: 9.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.461/5.993, allocations: 79.76 MB / 0.6882 GB, free: 85.93 MB / 426.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