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.441/2.441, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.302e-05/4.323e-05, allocations: 4 kB / 305 MB, free: 5.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4083/0.4083, allocations: 54.85 MB / 359.9 MB, free: 3.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1926/0.601, allocations: 98.37 MB / 458.3 MB, free: 14.55 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003766/0.6015, allocations: 75.95 kB / 458.3 MB, free: 14.47 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.686/1.288, allocations: 78.9 MB / 0.5246 GB, free: 103.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.288, allocations: 3.281 kB / 0.5246 GB, free: 103.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002399/1.288, allocations: 65.91 kB / 0.5247 GB, free: 103.8 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.01599/1.304, allocations: 3.53 MB / 0.5281 GB, free: 103.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.829e-05/1.304, allocations: 10.14 kB / 0.5282 GB, free: 103.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004031/1.308, allocations: 0.6878 MB / 0.5288 GB, free: 103.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03487/1.343, allocations: 4.325 MB / 0.533 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01838/1.361, allocations: 4.359 MB / 0.5373 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005187/1.362, allocations: 279 kB / 0.5376 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00231/1.364, allocations: 376.7 kB / 0.5379 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02859/1.393, allocations: 8.991 MB / 0.5467 GB, free: 99.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000274/1.393, allocations: 62.33 kB / 0.5468 GB, free: 99.81 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001292/1.395, allocations: 183.1 kB / 0.5469 GB, free: 99.81 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002076/1.397, allocations: 0.8972 MB / 0.5478 GB, free: 99.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02157/1.418, allocations: 7.077 MB / 0.5547 GB, free: 99.79 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05793/1.476, allocations: 42.66 MB / 0.5964 GB, free: 66.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007616/1.484, allocations: 2.476 MB / 0.5988 GB, free: 65.52 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002099/1.486, allocations: 1.062 MB / 0.5999 GB, free: 65.06 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004517/1.487, allocations: 337.2 kB / 0.6002 GB, free: 64.77 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/1.487, allocations: 42.31 kB / 0.6002 GB, free: 64.72 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 4.869e-06/1.487, allocations: 0 / 0.6002 GB, free: 64.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.02929/1.516, allocations: 7.471 MB / 0.6075 GB, free: 61.26 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/1.516, allocations: 191.6 kB / 0.6077 GB, free: 61.04 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007907/1.524, allocations: 3.466 MB / 0.6111 GB, free: 59.75 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003087/1.524, allocations: 48.78 kB / 0.6111 GB, free: 59.71 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002607/1.527, allocations: 2.962 MB / 0.614 GB, free: 57.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008375/1.528, allocations: 0.5453 MB / 0.6145 GB, free: 57.03 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005513/1.528, allocations: 117.7 kB / 0.6147 GB, free: 56.93 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000381/1.529, allocations: 0.5427 MB / 0.6152 GB, free: 56.53 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003742/1.533, allocations: 1.597 MB / 0.6168 GB, free: 56.01 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006202/1.539, allocations: 5.348 MB / 0.622 GB, free: 50.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006334/1.545, allocations: 2.935 MB / 0.6248 GB, free: 48.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001181/1.545, allocations: 40 kB / 0.6249 GB, free: 48.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01773/1.563, allocations: 6.455 MB / 0.6312 GB, free: 43.18 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.743e-05/1.563, allocations: 62.5 kB / 0.6312 GB, free: 43.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001654/1.563, allocations: 136.8 kB / 0.6314 GB, free: 42.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/1.564, allocations: 367.2 kB / 0.6317 GB, free: 42.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00758/1.572, allocations: 1.32 MB / 0.633 GB, free: 41.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004132/1.576, allocations: 2.746 MB / 0.6357 GB, free: 38.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006229/1.583, allocations: 299.5 kB / 0.636 GB, free: 38.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001081/1.584, allocations: 364.2 kB / 0.6363 GB, free: 38.25 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.0009411/1.585, allocations: 0.5608 MB / 0.6369 GB, free: 37.68 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007969/1.585, allocations: 327.7 kB / 0.6372 GB, free: 37.36 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003856/1.589, allocations: 1.556 MB / 0.6387 GB, free: 36.04 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.993e-05/1.589, allocations: 20 kB / 0.6387 GB, free: 36.02 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/1.589, allocations: 0 / 0.6387 GB, free: 36.02 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.047e-05/1.589, allocations: 11.73 kB / 0.6387 GB, free: 36.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01361/1.603, allocations: 5.192 MB / 0.6438 GB, free: 31.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.807e-05/1.603, allocations: 7.422 kB / 0.6438 GB, free: 31.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001802/1.605, allocations: 197.1 kB / 0.644 GB, free: 31.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007525/1.606, allocations: 152.9 kB / 0.6441 GB, free: 31.47 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/1.606, allocations: 21.64 kB / 0.6442 GB, free: 31.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003032/1.609, allocations: 2.148 MB / 0.6463 GB, free: 29.35 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/1.609, allocations: 4 kB / 0.6463 GB, free: 29.34 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006661/1.616, allocations: 3.528 MB / 0.6497 GB, free: 26.09 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/1.617, allocations: 0.5182 MB / 0.6502 GB, free: 25.58 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008346/1.618, allocations: 28.84 kB / 0.6502 GB, free: 25.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002453/1.621, allocations: 53.73 kB / 0.6503 GB, free: 25.52 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003054/1.621, allocations: 71.11 kB / 0.6504 GB, free: 25.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/1.621, allocations: 37.17 kB / 0.6504 GB, free: 25.44 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005769/1.627, allocations: 2.403 MB / 0.6528 GB, free: 23.34 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.71e-07/1.627, allocations: 3.938 kB / 0.6528 GB, free: 23.33 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006824/1.634, allocations: 0.8479 MB / 0.6536 GB, free: 22.49 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.007248/1.641, allocations: 4.602 MB / 0.6581 GB, free: 18.16 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008656/1.65, allocations: 3.722 MB / 0.6617 GB, free: 14.78 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/1.65, allocations: 8.25 kB / 0.6617 GB, free: 14.77 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001915/1.652, allocations: 0.9417 MB / 0.6626 GB, free: 13.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002972/1.655, allocations: 361.5 kB / 0.663 GB, free: 13.59 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02422/1.679, allocations: 7.424 MB / 0.6702 GB, free: 7.113 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005664/1.685, allocations: 3.021 MB / 0.6732 GB, free: 4.168 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007988/1.693, allocations: 1.816 MB / 0.675 GB, free: 2.355 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003706/1.697, allocations: 1.632 MB / 0.6766 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of SimCode: time 1.443e-06/1.697, allocations: 0 / 0.6766 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5458/2.243, allocations: 65.22 MB / 0.7402 GB, free: 112.5 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002897/2.243, allocations: 171.7 kB / 0.7404 GB, free: 112.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.942/7.185, allocations: 0 / 0.7404 GB, free: 112.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