Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.413/2.413, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.396e-05/4.404e-05, allocations: 4 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1449, allocations: 61.88 MB / 410.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6502/0.7952, allocations: 106.2 MB / 0.5045 GB, free: 13.75 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.7956, allocations: 80.64 kB / 0.5045 GB, free: 13.67 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3336/1.129, allocations: 72.04 MB / 0.5749 GB, free: 5.16 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.365e-06/1.129, allocations: 4 kB / 0.5749 GB, free: 5.156 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002613/1.13, allocations: 60 kB / 0.575 GB, free: 5.098 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.01311/1.143, allocations: 3.176 MB / 0.5781 GB, free: 1.859 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/1.143, allocations: 8.031 kB / 0.5781 GB, free: 1.852 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002902/1.146, allocations: 0.5937 MB / 0.5787 GB, free: 1.246 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03317/1.179, allocations: 4.223 MB / 0.5828 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01809/1.197, allocations: 4.025 MB / 0.5867 GB, free: 8.922 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004343/1.198, allocations: 238.2 kB / 0.5869 GB, free: 8.688 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001976/1.2, allocations: 315.8 kB / 0.5872 GB, free: 8.379 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02446/1.224, allocations: 7.911 MB / 0.595 GB, free: 15.52 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002695/1.224, allocations: 59.47 kB / 0.595 GB, free: 15.46 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001807/1.226, allocations: 155.9 kB / 0.5952 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001998/1.228, allocations: 0.7858 MB / 0.5959 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02006/1.248, allocations: 6.173 MB / 0.602 GB, free: 8.332 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4775/1.726, allocations: 38.98 MB / 0.64 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01227/1.738, allocations: 2.146 MB / 0.6421 GB, free: 99.64 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003678/1.742, allocations: 1.013 MB / 0.6431 GB, free: 99.61 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008273/1.743, allocations: 317.9 kB / 0.6434 GB, free: 99.32 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.393e-05/1.743, allocations: 57.34 kB / 0.6435 GB, free: 99.28 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=108): time 8.466e-06/1.743, allocations: 1.375 kB / 0.6435 GB, free: 99.28 MB / 0.5105 GB Notification: Performance of matching and sorting (n=132): time 0.07252/1.816, allocations: 8.994 MB / 0.6523 GB, free: 96.95 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/1.816, allocations: 197.9 kB / 0.6524 GB, free: 96.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01358/1.829, allocations: 3.21 MB / 0.6556 GB, free: 96.41 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004143/1.83, allocations: 45.08 kB / 0.6556 GB, free: 96.38 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003829/1.834, allocations: 2.615 MB / 0.6582 GB, free: 95.16 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001157/1.835, allocations: 0.5311 MB / 0.6587 GB, free: 94.87 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008875/1.836, allocations: 107.8 kB / 0.6588 GB, free: 94.87 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006448/1.837, allocations: 0.5251 MB / 0.6593 GB, free: 94.55 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005845/1.842, allocations: 1.544 MB / 0.6608 GB, free: 94.54 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007413/1.85, allocations: 4.857 MB / 0.6656 GB, free: 90.18 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006036/1.856, allocations: 2.747 MB / 0.6682 GB, free: 90.15 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001523/1.856, allocations: 35.16 kB / 0.6683 GB, free: 90.15 MB / 0.5105 GB Notification: Performance of matching and sorting (n=680) (initialization): time 0.0168/1.873, allocations: 6.039 MB / 0.6742 GB, free: 88.39 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/1.873, allocations: 54.91 kB / 0.6742 GB, free: 88.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001853/1.873, allocations: 119.7 kB / 0.6743 GB, free: 88.39 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/1.875, allocations: 353.1 kB / 0.6747 GB, free: 88.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007481/1.882, allocations: 1.196 MB / 0.6759 GB, free: 88.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004478/1.887, allocations: 2.687 MB / 0.6785 GB, free: 86.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006259/1.893, allocations: 283.2 kB / 0.6787 GB, free: 86.22 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001312/1.894, allocations: 326.4 kB / 0.6791 GB, free: 86.18 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.001971/1.896, allocations: 0.5164 MB / 0.6796 GB, free: 85.75 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001011/1.897, allocations: 304 kB / 0.6799 GB, free: 85.58 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004766/1.902, allocations: 1.576 MB / 0.6814 GB, free: 84.95 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.874e-05/1.902, allocations: 17.92 kB / 0.6814 GB, free: 84.95 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/1.902, allocations: 7.375 kB / 0.6814 GB, free: 84.95 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.658e-05/1.902, allocations: 5.906 kB / 0.6814 GB, free: 84.95 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0165/1.919, allocations: 5.135 MB / 0.6864 GB, free: 82.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.348e-05/1.919, allocations: 2.469 kB / 0.6864 GB, free: 82.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00206/1.921, allocations: 197.9 kB / 0.6866 GB, free: 82.88 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000864/1.922, allocations: 156.1 kB / 0.6868 GB, free: 82.84 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002945/1.922, allocations: 22.08 kB / 0.6868 GB, free: 82.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003313/1.926, allocations: 2.139 MB / 0.6889 GB, free: 81.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/1.926, allocations: 7.797 kB / 0.6889 GB, free: 81.19 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007739/1.934, allocations: 3.604 MB / 0.6924 GB, free: 79.46 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/1.935, allocations: 366.2 kB / 0.6928 GB, free: 79.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001226/1.936, allocations: 24.5 kB / 0.6928 GB, free: 79.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002765/1.939, allocations: 59.28 kB / 0.6928 GB, free: 79.15 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004111/1.939, allocations: 69.66 kB / 0.6929 GB, free: 79.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/1.94, allocations: 44.08 kB / 0.6929 GB, free: 79.13 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005747/1.945, allocations: 2.23 MB / 0.6951 GB, free: 78.35 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.994e-06/1.945, allocations: 0 / 0.6951 GB, free: 78.35 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00651/1.952, allocations: 0.7794 MB / 0.6959 GB, free: 78.25 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.008292/1.96, allocations: 4.526 MB / 0.7003 GB, free: 75.72 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008397/1.969, allocations: 3.619 MB / 0.7038 GB, free: 74.45 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/1.969, allocations: 0 / 0.7038 GB, free: 74.45 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002215/1.971, allocations: 1.004 MB / 0.7048 GB, free: 74.02 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003227/1.974, allocations: 339.9 kB / 0.7051 GB, free: 73.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02365/1.998, allocations: 6.802 MB / 0.7118 GB, free: 71.37 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005842/2.004, allocations: 2.743 MB / 0.7145 GB, free: 70.15 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007846/2.012, allocations: 1.69 MB / 0.7161 GB, free: 69.09 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003784/2.016, allocations: 1.447 MB / 0.7175 GB, free: 67.75 MB / 0.5105 GB Notification: Performance of SimCode: time 1.523e-06/2.016, allocations: 0 / 0.7175 GB, free: 67.75 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1585/2.174, allocations: 60.87 MB / 0.777 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/2.174, allocations: 168.9 kB / 0.7771 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.759/6.933, allocations: 4 kB / 0.7771 GB, free: 14.73 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat