Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.397/2.397, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.251e-05/5.269e-05, allocations: 0 / 348.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.1656, allocations: 61.89 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5566/0.7223, allocations: 106.2 MB / 0.5045 GB, free: 13.72 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003094/0.7227, allocations: 83.89 kB / 0.5046 GB, free: 13.64 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3392/1.062, allocations: 72.04 MB / 0.5749 GB, free: 5.129 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.735e-06/1.062, allocations: 0 / 0.5749 GB, free: 5.129 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003085/1.062, allocations: 60 kB / 0.575 GB, free: 5.07 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.01416/1.077, allocations: 3.172 MB / 0.5781 GB, free: 1.836 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.206e-05/1.077, allocations: 8.031 kB / 0.5781 GB, free: 1.828 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002975/1.08, allocations: 0.5976 MB / 0.5787 GB, free: 1.219 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03413/1.114, allocations: 4.223 MB / 0.5828 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0183/1.132, allocations: 4.017 MB / 0.5867 GB, free: 8.902 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004135/1.133, allocations: 238.2 kB / 0.5869 GB, free: 8.668 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002008/1.135, allocations: 319.8 kB / 0.5872 GB, free: 8.355 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02495/1.16, allocations: 7.923 MB / 0.595 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002711/1.16, allocations: 55.47 kB / 0.595 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001697/1.162, allocations: 163.9 kB / 0.5952 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002088/1.164, allocations: 0.7741 MB / 0.5959 GB, free: 14.49 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0204/1.184, allocations: 6.169 MB / 0.602 GB, free: 8.309 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4452/1.63, allocations: 38.98 MB / 0.64 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007715/1.637, allocations: 2.144 MB / 0.6421 GB, free: 99.61 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002376/1.64, allocations: 1.017 MB / 0.6431 GB, free: 99.58 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005358/1.64, allocations: 316.5 kB / 0.6434 GB, free: 99.29 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/1.64, allocations: 51.86 kB / 0.6435 GB, free: 99.25 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=108): time 5.66e-06/1.64, allocations: 0 / 0.6435 GB, free: 99.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=132): time 0.0461/1.686, allocations: 8.998 MB / 0.6522 GB, free: 96.91 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.008e-05/1.687, allocations: 200.8 kB / 0.6524 GB, free: 96.69 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007921/1.695, allocations: 3.211 MB / 0.6556 GB, free: 96.37 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000336/1.695, allocations: 47.81 kB / 0.6556 GB, free: 96.34 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002553/1.698, allocations: 2.617 MB / 0.6582 GB, free: 95.12 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009525/1.699, allocations: 0.5285 MB / 0.6587 GB, free: 94.83 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005703/1.699, allocations: 102.5 kB / 0.6588 GB, free: 94.83 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003832/1.7, allocations: 0.5257 MB / 0.6593 GB, free: 94.51 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004077/1.704, allocations: 1.545 MB / 0.6608 GB, free: 94.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005906/1.71, allocations: 4.862 MB / 0.6656 GB, free: 90.14 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005823/1.715, allocations: 2.75 MB / 0.6682 GB, free: 90.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/1.716, allocations: 31.5 kB / 0.6683 GB, free: 90.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=680) (initialization): time 0.01642/1.732, allocations: 6.038 MB / 0.6742 GB, free: 88.27 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.695e-05/1.732, allocations: 57.34 kB / 0.6742 GB, free: 88.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000151/1.732, allocations: 119.5 kB / 0.6743 GB, free: 88.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/1.734, allocations: 347.3 kB / 0.6747 GB, free: 88.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007211/1.741, allocations: 1.196 MB / 0.6758 GB, free: 88.08 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004215/1.745, allocations: 2.693 MB / 0.6785 GB, free: 86.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006449/1.752, allocations: 276.1 kB / 0.6787 GB, free: 86.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001282/1.753, allocations: 336.8 kB / 0.6791 GB, free: 86.05 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 29 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (645): * Single equations (assignments): 641 * 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.001535/1.754, allocations: 0.5046 MB / 0.6795 GB, free: 85.63 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001001/1.755, allocations: 307.5 kB / 0.6798 GB, free: 85.46 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004362/1.76, allocations: 1.581 MB / 0.6814 GB, free: 84.83 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.032e-05/1.76, allocations: 13.72 kB / 0.6814 GB, free: 84.83 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/1.76, allocations: 3.5 kB / 0.6814 GB, free: 84.83 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-05/1.76, allocations: 8.516 kB / 0.6814 GB, free: 84.83 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01533/1.775, allocations: 5.131 MB / 0.6864 GB, free: 82.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.605e-05/1.775, allocations: 3.469 kB / 0.6864 GB, free: 82.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001984/1.777, allocations: 200.1 kB / 0.6866 GB, free: 82.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008205/1.778, allocations: 151 kB / 0.6868 GB, free: 82.72 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001957/1.778, allocations: 27 kB / 0.6868 GB, free: 82.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003053/1.781, allocations: 2.149 MB / 0.6889 GB, free: 81.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/1.782, allocations: 3.953 kB / 0.6889 GB, free: 81.06 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007129/1.789, allocations: 3.604 MB / 0.6924 GB, free: 79.34 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/1.79, allocations: 369 kB / 0.6928 GB, free: 79.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007355/1.791, allocations: 15.91 kB / 0.6928 GB, free: 79.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002245/1.793, allocations: 68.23 kB / 0.6928 GB, free: 79.02 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004178/1.793, allocations: 62.97 kB / 0.6929 GB, free: 79.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/1.794, allocations: 48.44 kB / 0.6929 GB, free: 79 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005463/1.799, allocations: 2.233 MB / 0.6951 GB, free: 78.22 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.173e-06/1.799, allocations: 0 / 0.6951 GB, free: 78.22 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006401/1.806, allocations: 0.776 MB / 0.6959 GB, free: 78.13 MB / 0.5105 GB 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 (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.008203/1.814, allocations: 4.525 MB / 0.7003 GB, free: 75.59 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00851/1.822, allocations: 3.61 MB / 0.7038 GB, free: 74.33 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.455e-06/1.822, allocations: 3.938 kB / 0.7038 GB, free: 74.33 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002247/1.825, allocations: 0.9987 MB / 0.7048 GB, free: 73.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003304/1.828, allocations: 342.3 kB / 0.7051 GB, free: 73.74 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02464/1.853, allocations: 6.791 MB / 0.7118 GB, free: 71.25 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005656/1.859, allocations: 2.755 MB / 0.7145 GB, free: 70.11 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00819/1.867, allocations: 1.684 MB / 0.7161 GB, free: 69.05 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003515/1.87, allocations: 1.449 MB / 0.7175 GB, free: 67.71 MB / 0.5105 GB Notification: Performance of SimCode: time 1.694e-06/1.87, allocations: 0 / 0.7175 GB, free: 67.71 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1433/2.014, allocations: 60.88 MB / 0.777 GB, free: 14.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002314/2.014, allocations: 168.9 kB / 0.7771 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.019/7.033, allocations: 8 kB / 0.7771 GB, free: 14.66 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat