Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.064/2.064, allocations: 209.4 MB / 216.5 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.034e-05/2.037e-05, allocations: 0 / 267.6 MB, free: 4.941 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 48.7 MB / 316.3 MB, free: 4.148 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4987/0.6035, allocations: 91.06 MB / 407.4 MB, free: 1.852 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.6038, allocations: 80.94 kB / 407.5 MB, free: 1.812 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3778/0.9816, allocations: 77.32 MB / 484.8 MB, free: 7.336 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.9817, allocations: 4 kB / 484.8 MB, free: 7.332 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002473/0.982, allocations: 68 kB / 484.8 MB, free: 7.266 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.0154/0.9974, allocations: 3.53 MB / 488.4 MB, free: 3.676 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.003e-05/0.9974, allocations: 8.031 kB / 488.4 MB, free: 3.668 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4147/1.412, allocations: 4.318 MB / 492.7 MB, free: 90.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02707/1.439, allocations: 4.354 MB / 497.1 MB, free: 90.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004611/1.44, allocations: 118.6 kB / 497.2 MB, free: 90.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002937/1.443, allocations: 215.7 kB / 497.4 MB, free: 90.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02123/1.464, allocations: 5.214 MB / 0.4908 GB, free: 90.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03428/1.498, allocations: 8.333 MB / 0.499 GB, free: 87.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005621/1.499, allocations: 57.66 kB / 0.499 GB, free: 87.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00293/1.502, allocations: 30.7 kB / 0.499 GB, free: 87.49 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003275/1.505, allocations: 0.8921 MB / 0.4999 GB, free: 87.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07999/1.585, allocations: 40.78 MB / 0.5397 GB, free: 58.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005591/1.591, allocations: 2.415 MB / 0.5421 GB, free: 57.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002929/1.594, allocations: 1.061 MB / 0.5431 GB, free: 56.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007064/1.595, allocations: 342.5 kB / 0.5435 GB, free: 56.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.394e-05/1.595, allocations: 42.05 kB / 0.5435 GB, free: 56.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 6.883e-06/1.595, allocations: 3.469 kB / 0.5435 GB, free: 56.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=140): time 0.0444/1.639, allocations: 9.592 MB / 0.5529 GB, free: 52.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.379e-05/1.64, allocations: 195.3 kB / 0.5531 GB, free: 51.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009953/1.65, allocations: 3.012 MB / 0.556 GB, free: 50.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000383/1.65, allocations: 25.7 kB / 0.556 GB, free: 50.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003709/1.654, allocations: 3.041 MB / 0.559 GB, free: 48.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001167/1.655, allocations: 0.5505 MB / 0.5595 GB, free: 47.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000792/1.656, allocations: 0 / 0.5595 GB, free: 47.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0007058/1.657, allocations: 0.5598 MB / 0.5601 GB, free: 47.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005703/1.662, allocations: 1.559 MB / 0.5616 GB, free: 46.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008864/1.671, allocations: 5.509 MB / 0.567 GB, free: 40.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007799/1.679, allocations: 2.945 MB / 0.5699 GB, free: 39.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001802/1.679, allocations: 43.92 kB / 0.5699 GB, free: 39.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=790) (initialization): time 0.01759/1.697, allocations: 6.274 MB / 0.576 GB, free: 37.63 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000116/1.697, allocations: 69.06 kB / 0.5761 GB, free: 37.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002214/1.697, allocations: 144 kB / 0.5762 GB, free: 37.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/1.698, allocations: 373.1 kB / 0.5766 GB, free: 37.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008142/1.707, allocations: 1.397 MB / 0.578 GB, free: 37.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003969/1.711, allocations: 2.64 MB / 0.5805 GB, free: 34.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006329/1.717, allocations: 196.5 kB / 0.5807 GB, free: 34.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001472/1.719, allocations: 387.5 kB / 0.5811 GB, free: 34.26 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.001353/1.72, allocations: 452.1 kB / 0.5815 GB, free: 33.81 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004942/1.725, allocations: 1.875 MB / 0.5833 GB, free: 32.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009096/1.726, allocations: 304 kB / 0.5836 GB, free: 31.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004433/1.73, allocations: 1.548 MB / 0.5851 GB, free: 30.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.269e-05/1.73, allocations: 16.7 kB / 0.5852 GB, free: 30.54 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/1.73, allocations: 4 kB / 0.5852 GB, free: 30.54 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.526e-05/1.73, allocations: 7.453 kB / 0.5852 GB, free: 30.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01454/1.745, allocations: 4.722 MB / 0.5898 GB, free: 26.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.109e-05/1.745, allocations: 4 kB / 0.5898 GB, free: 26.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001936/1.747, allocations: 204.5 kB / 0.59 GB, free: 26.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008016/1.748, allocations: 156.9 kB / 0.5901 GB, free: 26.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002188/1.748, allocations: 7.938 kB / 0.5901 GB, free: 26.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002987/1.751, allocations: 2.051 MB / 0.5921 GB, free: 24.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.751, allocations: 0 / 0.5921 GB, free: 24.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006873/1.758, allocations: 3.51 MB / 0.5956 GB, free: 21.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001895/1.76, allocations: 0.4922 MB / 0.5961 GB, free: 20.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000966/1.761, allocations: 7.953 kB / 0.5961 GB, free: 20.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002154/1.763, allocations: 37.53 kB / 0.5961 GB, free: 20.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003458/1.764, allocations: 72.72 kB / 0.5962 GB, free: 20.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001378/1.764, allocations: 45.34 kB / 0.5962 GB, free: 20.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004557/1.768, allocations: 1.995 MB / 0.5982 GB, free: 18.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.182e-06/1.768, allocations: 0 / 0.5982 GB, free: 18.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007205/1.776, allocations: 0.7202 MB / 0.5989 GB, free: 18.07 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.007429/1.783, allocations: 4.585 MB / 0.6033 GB, free: 13.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0086/1.792, allocations: 3.769 MB / 0.607 GB, free: 10.36 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/1.792, allocations: 0 / 0.607 GB, free: 10.36 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/1.794, allocations: 0.9509 MB / 0.6079 GB, free: 9.484 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002637/1.796, allocations: 283.9 kB / 0.6082 GB, free: 9.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02446/1.821, allocations: 7.296 MB / 0.6153 GB, free: 2.891 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006327/1.827, allocations: 3.026 MB / 0.6183 GB, free: 0.5664 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.01471/1.842, allocations: 2.133 MB / 0.6204 GB, free: 0 / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01115/1.853, allocations: 2.025 MB / 0.6224 GB, free: 15.91 MB / 426.7 MB Notification: Performance of SimCode: time 1.824e-06/1.853, allocations: 7.938 kB / 0.6224 GB, free: 15.91 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5004/2.354, allocations: 61.23 MB / 0.6822 GB, free: 88.85 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000193/2.354, allocations: 131.4 kB / 0.6823 GB, free: 88.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.146/7.5, allocations: 0 / 0.6823 GB, free: 88.66 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat