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.756/2.756, allocations: 235 MB / 247.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.367e-05/4.388e-05, allocations: 4.938 kB / 305 MB, free: 5.082 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4407/0.4408, allocations: 54.85 MB / 359.9 MB, free: 2.793 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1944/0.6352, allocations: 98.35 MB / 458.2 MB, free: 14.46 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.6356, allocations: 79.95 kB / 458.3 MB, free: 14.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.758/1.394, allocations: 78.9 MB / 0.5246 GB, free: 103.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.525e-06/1.394, allocations: 0 / 0.5246 GB, free: 103.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002406/1.394, allocations: 71.88 kB / 0.5247 GB, free: 103.7 MB / 458.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.01525/1.409, allocations: 3.529 MB / 0.5281 GB, free: 103 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.897e-05/1.409, allocations: 11.31 kB / 0.5281 GB, free: 103 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003426/1.413, allocations: 0.6891 MB / 0.5288 GB, free: 103 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03504/1.448, allocations: 4.323 MB / 0.533 GB, free: 102.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.019/1.467, allocations: 4.361 MB / 0.5373 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004922/1.467, allocations: 282.6 kB / 0.5375 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002351/1.47, allocations: 376.2 kB / 0.5379 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02787/1.498, allocations: 9.027 MB / 0.5467 GB, free: 99.64 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00037/1.498, allocations: 66.17 kB / 0.5468 GB, free: 99.63 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002113/1.5, allocations: 187.8 kB / 0.547 GB, free: 99.63 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002367/1.503, allocations: 0.8946 MB / 0.5478 GB, free: 99.62 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02175/1.525, allocations: 7.239 MB / 0.5549 GB, free: 99.54 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06027/1.585, allocations: 42.66 MB / 0.5966 GB, free: 66.64 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01171/1.597, allocations: 2.497 MB / 0.599 GB, free: 65.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01075/1.607, allocations: 1.056 MB / 0.6 GB, free: 64.96 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006453/1.608, allocations: 335.6 kB / 0.6004 GB, free: 64.66 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.511e-05/1.608, allocations: 45.86 kB / 0.6004 GB, free: 64.62 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 6.412e-06/1.608, allocations: 0 / 0.6004 GB, free: 64.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.06443/1.673, allocations: 7.479 MB / 0.6077 GB, free: 61.16 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.453e-05/1.673, allocations: 194 kB / 0.6079 GB, free: 60.94 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008874/1.682, allocations: 3.465 MB / 0.6113 GB, free: 59.65 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004997/1.682, allocations: 42.77 kB / 0.6113 GB, free: 59.61 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003318/1.686, allocations: 2.97 MB / 0.6142 GB, free: 57.31 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008346/1.687, allocations: 0.5462 MB / 0.6147 GB, free: 56.93 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006773/1.687, allocations: 114.1 kB / 0.6149 GB, free: 56.84 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003825/1.688, allocations: 0.5454 MB / 0.6154 GB, free: 56.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004213/1.692, allocations: 1.594 MB / 0.6169 GB, free: 55.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006909/1.699, allocations: 5.379 MB / 0.6222 GB, free: 50.11 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006665/1.706, allocations: 2.936 MB / 0.6251 GB, free: 48.56 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001446/1.706, allocations: 40 kB / 0.6251 GB, free: 48.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.0188/1.725, allocations: 6.835 MB / 0.6318 GB, free: 42.46 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001232/1.725, allocations: 66.3 kB / 0.6318 GB, free: 42.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002002/1.725, allocations: 136 kB / 0.632 GB, free: 42.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/1.726, allocations: 364.2 kB / 0.6323 GB, free: 41.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008027/1.734, allocations: 1.332 MB / 0.6336 GB, free: 40.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004273/1.739, allocations: 2.731 MB / 0.6363 GB, free: 38.15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006184/1.745, allocations: 302.3 kB / 0.6366 GB, free: 37.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001219/1.746, allocations: 362.7 kB / 0.6369 GB, free: 37.53 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * 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 (715): * Single equations (assignments): 711 * 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.001419/1.748, allocations: 0.5588 MB / 0.6375 GB, free: 36.97 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008182/1.748, allocations: 333.1 kB / 0.6378 GB, free: 36.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004383/1.753, allocations: 1.554 MB / 0.6393 GB, free: 35.33 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.663e-05/1.753, allocations: 16 kB / 0.6393 GB, free: 35.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/1.753, allocations: 4 kB / 0.6393 GB, free: 35.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.071e-05/1.753, allocations: 3.516 kB / 0.6393 GB, free: 35.31 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01524/1.768, allocations: 5.213 MB / 0.6444 GB, free: 31.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.765e-05/1.768, allocations: 0 / 0.6444 GB, free: 31.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001904/1.77, allocations: 191.9 kB / 0.6446 GB, free: 30.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008089/1.771, allocations: 157.3 kB / 0.6447 GB, free: 30.75 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001985/1.771, allocations: 32.22 kB / 0.6448 GB, free: 30.72 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003142/1.774, allocations: 2.147 MB / 0.6469 GB, free: 28.63 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/1.775, allocations: 64 / 0.6469 GB, free: 28.63 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007259/1.782, allocations: 3.534 MB / 0.6503 GB, free: 25.36 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002095/1.784, allocations: 0.515 MB / 0.6508 GB, free: 24.86 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/1.785, allocations: 27.33 kB / 0.6509 GB, free: 24.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002356/1.787, allocations: 54.75 kB / 0.6509 GB, free: 24.79 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002947/1.788, allocations: 75.77 kB / 0.651 GB, free: 24.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/1.788, allocations: 39.75 kB / 0.651 GB, free: 24.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005921/1.794, allocations: 2.399 MB / 0.6534 GB, free: 22.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.31e-07/1.794, allocations: 0 / 0.6534 GB, free: 22.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006273/1.8, allocations: 0.8461 MB / 0.6542 GB, free: 21.76 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 (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.007577/1.808, allocations: 4.605 MB / 0.6587 GB, free: 17.44 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008684/1.817, allocations: 3.92 MB / 0.6625 GB, free: 13.85 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.817, allocations: 0 / 0.6625 GB, free: 13.85 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002123/1.819, allocations: 0.9585 MB / 0.6634 GB, free: 12.96 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002736/1.821, allocations: 360.9 kB / 0.6638 GB, free: 12.65 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02303/1.845, allocations: 7.427 MB / 0.671 GB, free: 6.168 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005571/1.85, allocations: 3.021 MB / 0.674 GB, free: 3.227 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.008168/1.858, allocations: 1.812 MB / 0.6758 GB, free: 1.414 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0038/1.862, allocations: 1.64 MB / 0.6774 GB, free: 15.77 MB / 474.7 MB Notification: Performance of SimCode: time 1.973e-06/1.862, allocations: 0 / 0.6774 GB, free: 15.77 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4986/2.361, allocations: 65.75 MB / 0.7416 GB, free: 113.5 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002449/2.361, allocations: 177 kB / 0.7417 GB, free: 113.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.333/7.695, allocations: 0 / 0.7417 GB, free: 113.3 MB / 490.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