Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.51/2.51, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.175e-05/4.182e-05, allocations: 4 kB / 323.5 MB, free: 4.227 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4327/0.4328, allocations: 58.84 MB / 382.3 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1993/0.6322, allocations: 104.5 MB / 486.8 MB, free: 3.98 MB / 410.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.6325, allocations: 75.97 kB / 486.9 MB, free: 3.906 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.6993/1.332, allocations: 79.2 MB / 0.5528 GB, free: 111.7 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.144e-06/1.332, allocations: 0 / 0.5528 GB, free: 111.7 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0001923/1.332, allocations: 70.5 kB / 0.5529 GB, free: 111.7 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01314/1.345, allocations: 3.542 MB / 0.5563 GB, free: 110.1 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/1.345, allocations: 7.344 kB / 0.5563 GB, free: 110.1 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002988/1.348, allocations: 0.6957 MB / 0.557 GB, free: 110.1 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03313/1.381, allocations: 4.327 MB / 0.5612 GB, free: 109.8 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01623/1.398, allocations: 4.376 MB / 0.5655 GB, free: 108.2 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003588/1.398, allocations: 281.7 kB / 0.5658 GB, free: 108.1 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001936/1.4, allocations: 370.8 kB / 0.5661 GB, free: 108 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02232/1.422, allocations: 9.001 MB / 0.5749 GB, free: 98.82 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000205/1.423, allocations: 63.3 kB / 0.575 GB, free: 98.77 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001215/1.424, allocations: 184.8 kB / 0.5752 GB, free: 98.61 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001764/1.426, allocations: 0.9001 MB / 0.576 GB, free: 97.71 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01931/1.445, allocations: 7.089 MB / 0.583 GB, free: 90.62 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0558/1.501, allocations: 42.76 MB / 0.6247 GB, free: 46.67 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007805/1.509, allocations: 2.486 MB / 0.6272 GB, free: 44.04 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002148/1.511, allocations: 1.067 MB / 0.6282 GB, free: 42.96 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004722/1.512, allocations: 330.3 kB / 0.6285 GB, free: 42.58 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/1.512, allocations: 54.98 kB / 0.6286 GB, free: 42.52 MB / 458.8 MB Notification: Performance of pre-optimization done (n=119): time 4.759e-06/1.512, allocations: 0 / 0.6286 GB, free: 42.52 MB / 458.8 MB Notification: Performance of matching and sorting (n=133): time 0.02966/1.541, allocations: 7.487 MB / 0.6359 GB, free: 34.95 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.658e-05/1.541, allocations: 200.7 kB / 0.6361 GB, free: 34.71 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007673/1.549, allocations: 3.479 MB / 0.6395 GB, free: 31.25 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002969/1.549, allocations: 45.7 kB / 0.6395 GB, free: 31.2 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002547/1.552, allocations: 2.982 MB / 0.6424 GB, free: 28.22 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007931/1.553, allocations: 0.5417 MB / 0.6429 GB, free: 27.68 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006416/1.553, allocations: 116 kB / 0.6431 GB, free: 27.57 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0003502/1.554, allocations: 0.5459 MB / 0.6436 GB, free: 27.02 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003865/1.558, allocations: 1.597 MB / 0.6452 GB, free: 25.41 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006384/1.564, allocations: 5.372 MB / 0.6504 GB, free: 18.12 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006392/1.571, allocations: 2.942 MB / 0.6533 GB, free: 15.17 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001121/1.571, allocations: 44 kB / 0.6533 GB, free: 15.13 MB / 458.8 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.01716/1.588, allocations: 6.474 MB / 0.6596 GB, free: 8.652 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001/1.588, allocations: 60 kB / 0.6597 GB, free: 8.594 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001649/1.588, allocations: 140.8 kB / 0.6598 GB, free: 8.457 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/1.589, allocations: 368.7 kB / 0.6602 GB, free: 8.094 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007821/1.597, allocations: 1.333 MB / 0.6615 GB, free: 6.758 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004116/1.601, allocations: 2.728 MB / 0.6641 GB, free: 3.891 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005918/1.607, allocations: 299.4 kB / 0.6644 GB, free: 3.598 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009904/1.608, allocations: 375.4 kB / 0.6648 GB, free: 3.234 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 31 (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.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 (718): * Single equations (assignments): 714 * 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.0009126/1.609, allocations: 0.5555 MB / 0.6653 GB, free: 2.668 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000698/1.61, allocations: 323.8 kB / 0.6656 GB, free: 2.348 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003794/1.614, allocations: 1.565 MB / 0.6672 GB, free: 0.7617 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.37e-05/1.614, allocations: 20 kB / 0.6672 GB, free: 0.7422 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/1.614, allocations: 4.375 kB / 0.6672 GB, free: 0.7383 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/1.614, allocations: 7.969 kB / 0.6672 GB, free: 0.7305 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01464/1.629, allocations: 5.202 MB / 0.6723 GB, free: 11.48 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.012e-05/1.629, allocations: 4 kB / 0.6723 GB, free: 11.48 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001958/1.631, allocations: 207.7 kB / 0.6725 GB, free: 11.28 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008425/1.632, allocations: 148.7 kB / 0.6726 GB, free: 11.13 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001643/1.632, allocations: 27.98 kB / 0.6726 GB, free: 11.11 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003738/1.635, allocations: 2.158 MB / 0.6748 GB, free: 8.82 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.275e-06/1.636, allocations: 4 kB / 0.6748 GB, free: 8.816 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007905/1.643, allocations: 3.532 MB / 0.6782 GB, free: 5.207 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001925/1.645, allocations: 0.5163 MB / 0.6787 GB, free: 4.668 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007104/1.646, allocations: 20 kB / 0.6787 GB, free: 4.648 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002009/1.648, allocations: 60 kB / 0.6788 GB, free: 4.59 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002836/1.649, allocations: 76.36 kB / 0.6789 GB, free: 4.516 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/1.649, allocations: 43.66 kB / 0.6789 GB, free: 4.477 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.006487/1.655, allocations: 2.411 MB / 0.6813 GB, free: 2.086 MB / 474.8 MB Notification: Performance of sort global known variables: time 9.52e-07/1.655, allocations: 0 / 0.6813 GB, free: 2.086 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.006969/1.662, allocations: 0.8515 MB / 0.6821 GB, free: 1.234 MB / 474.8 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.008685/1.671, allocations: 4.6 MB / 0.6866 GB, free: 12.55 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.009743/1.681, allocations: 3.75 MB / 0.6902 GB, free: 8.828 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/1.681, allocations: 0 / 0.6902 GB, free: 8.828 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002419/1.683, allocations: 0.9369 MB / 0.6912 GB, free: 7.879 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002918/1.686, allocations: 365.9 kB / 0.6915 GB, free: 7.527 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02603/1.712, allocations: 7.455 MB / 0.6988 GB, free: 0 / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006951/1.719, allocations: 3.031 MB / 0.7017 GB, free: 12.94 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.008766/1.728, allocations: 1.807 MB / 0.7035 GB, free: 11.12 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004338/1.732, allocations: 1.64 MB / 0.7051 GB, free: 9.484 MB / 0.4949 GB Notification: Performance of SimCode: time 1.733e-06/1.733, allocations: 0 / 0.7051 GB, free: 9.484 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5107/2.243, allocations: 65.59 MB / 0.7692 GB, free: 117.6 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001962/2.243, allocations: 167.8 kB / 0.7693 GB, free: 117.4 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.952/7.195, allocations: 3.844 kB / 0.7693 GB, free: 117.4 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat