Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.344/2.344, allocations: 235.1 MB / 242.2 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.846e-05/2.854e-05, allocations: 4 kB / 299.5 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3966/0.3967, allocations: 54.85 MB / 354.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1964/0.5932, allocations: 97.68 MB / 452 MB, free: 500 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/0.5935, allocations: 75.97 kB / 452.1 MB, free: 424 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6614/1.255, allocations: 77.37 MB / 0.5171 GB, free: 101.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.006e-06/1.255, allocations: 0 / 0.5171 GB, free: 101.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000275/1.255, allocations: 70.95 kB / 0.5171 GB, free: 101.3 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.01917/1.274, allocations: 3.532 MB / 0.5206 GB, free: 99.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.34e-05/1.275, allocations: 7.594 kB / 0.5206 GB, free: 99.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03931/1.314, allocations: 4.322 MB / 0.5248 GB, free: 98.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01598/1.33, allocations: 4.36 MB / 0.5291 GB, free: 96.01 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002462/1.33, allocations: 116.3 kB / 0.5292 GB, free: 96.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00207/1.332, allocations: 222.6 kB / 0.5294 GB, free: 96 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01272/1.345, allocations: 5.219 MB / 0.5345 GB, free: 92.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01937/1.364, allocations: 8.33 MB / 0.5426 GB, free: 82.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000199/1.365, allocations: 63.41 kB / 0.5427 GB, free: 82.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001083/1.366, allocations: 31.95 kB / 0.5427 GB, free: 82.81 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00179/1.368, allocations: 0.8962 MB / 0.5436 GB, free: 81.92 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05201/1.42, allocations: 40.78 MB / 0.5834 GB, free: 40.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003974/1.424, allocations: 2.424 MB / 0.5858 GB, free: 37.48 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002002/1.426, allocations: 1.051 MB / 0.5868 GB, free: 36.42 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004873/1.426, allocations: 327.4 kB / 0.5871 GB, free: 36.05 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/1.426, allocations: 47.12 kB / 0.5872 GB, free: 36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 4.619e-06/1.426, allocations: 0 / 0.5872 GB, free: 36 MB / 426.7 MB Notification: Performance of matching and sorting (n=140): time 0.02783/1.454, allocations: 9.608 MB / 0.5965 GB, free: 26.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.724e-05/1.454, allocations: 196.7 kB / 0.5967 GB, free: 26.06 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005491/1.46, allocations: 3.006 MB / 0.5997 GB, free: 23.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002914/1.46, allocations: 29.7 kB / 0.5997 GB, free: 23.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002382/1.463, allocations: 3.042 MB / 0.6027 GB, free: 19.94 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007838/1.463, allocations: 0.5513 MB / 0.6032 GB, free: 19.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006122/1.464, allocations: 4 kB / 0.6032 GB, free: 19.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003982/1.464, allocations: 0.5583 MB / 0.6038 GB, free: 18.81 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003475/1.468, allocations: 1.554 MB / 0.6053 GB, free: 17.25 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006333/1.474, allocations: 5.525 MB / 0.6107 GB, free: 9.715 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006281/1.481, allocations: 2.935 MB / 0.6135 GB, free: 6.777 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001258/1.481, allocations: 40 kB / 0.6136 GB, free: 6.738 MB / 426.7 MB Notification: Performance of matching and sorting (n=790) (initialization): time 0.01692/1.498, allocations: 6.265 MB / 0.6197 GB, free: 476 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/1.498, allocations: 69.81 kB / 0.6198 GB, free: 408 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001689/1.498, allocations: 144 kB / 0.6199 GB, free: 264 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001203/1.499, allocations: 372.7 kB / 0.6203 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008854/1.508, allocations: 1.396 MB / 0.6216 GB, free: 14.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004879/1.513, allocations: 2.647 MB / 0.6242 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006139/1.519, allocations: 195.9 kB / 0.6244 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00147/1.521, allocations: 388 kB / 0.6248 GB, free: 11.16 MB / 442.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.001305/1.522, allocations: 452.5 kB / 0.6252 GB, free: 10.71 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005387/1.527, allocations: 1.89 MB / 0.627 GB, free: 8.812 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009027/1.528, allocations: 300.1 kB / 0.6273 GB, free: 8.516 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004827/1.533, allocations: 1.534 MB / 0.6288 GB, free: 6.957 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.46e-05/1.533, allocations: 23.84 kB / 0.6288 GB, free: 6.938 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.035e-05/1.533, allocations: 4 kB / 0.6288 GB, free: 6.934 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-05/1.533, allocations: 7.984 kB / 0.6289 GB, free: 6.926 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01613/1.55, allocations: 4.719 MB / 0.6335 GB, free: 2.141 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.697e-05/1.55, allocations: 0 / 0.6335 GB, free: 2.141 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002092/1.552, allocations: 211.8 kB / 0.6337 GB, free: 1.934 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008769/1.553, allocations: 156.6 kB / 0.6338 GB, free: 1.777 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002267/1.553, allocations: 8 kB / 0.6338 GB, free: 1.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003741/1.557, allocations: 2.057 MB / 0.6358 GB, free: 15.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.698e-06/1.557, allocations: 4 kB / 0.6358 GB, free: 15.59 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008337/1.565, allocations: 3.501 MB / 0.6393 GB, free: 12 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/1.567, allocations: 0.4892 MB / 0.6397 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009301/1.568, allocations: 4.469 kB / 0.6397 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002173/1.57, allocations: 44 kB / 0.6398 GB, free: 11.45 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003669/1.571, allocations: 76.62 kB / 0.6398 GB, free: 11.37 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001537/1.571, allocations: 39.98 kB / 0.6399 GB, free: 11.33 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006132/1.577, allocations: 1.995 MB / 0.6418 GB, free: 9.344 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.232e-06/1.577, allocations: 3.938 kB / 0.6418 GB, free: 9.34 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01009/1.587, allocations: 0.7187 MB / 0.6425 GB, free: 8.621 MB / 458.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.01296/1.6, allocations: 4.579 MB / 0.647 GB, free: 3.969 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01315/1.613, allocations: 3.775 MB / 0.6507 GB, free: 220 kB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/1.613, allocations: 3.938 kB / 0.6507 GB, free: 216 kB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003277/1.617, allocations: 0.9494 MB / 0.6516 GB, free: 15.25 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003573/1.62, allocations: 284.7 kB / 0.6519 GB, free: 14.97 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03198/1.652, allocations: 7.281 MB / 0.659 GB, free: 7.613 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007479/1.66, allocations: 3.027 MB / 0.662 GB, free: 4.555 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00946/1.669, allocations: 1.856 MB / 0.6638 GB, free: 2.695 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004401/1.674, allocations: 1.632 MB / 0.6654 GB, free: 1.062 MB / 474.7 MB Notification: Performance of SimCode: time 1.663e-06/1.674, allocations: 0 / 0.6654 GB, free: 1.062 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4981/2.172, allocations: 61.24 MB / 0.7252 GB, free: 104.9 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002248/2.172, allocations: 138 kB / 0.7253 GB, free: 104.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.674/6.846, allocations: 0 / 0.7253 GB, free: 104.7 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat