Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.328/2.328, allocations: 235 MB / 247.6 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.86e-05/4.875e-05, allocations: 4 kB / 305 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5646/0.5647, allocations: 54.85 MB / 359.9 MB, free: 2.625 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1869/0.7517, allocations: 98.36 MB / 458.2 MB, free: 14.65 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/0.752, allocations: 75.95 kB / 458.3 MB, free: 14.57 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7099/1.462, allocations: 78.9 MB / 0.5246 GB, free: 103.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.517e-06/1.462, allocations: 0 / 0.5246 GB, free: 103.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002455/1.462, allocations: 67.97 kB / 0.5247 GB, free: 103.4 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.01642/1.479, allocations: 3.532 MB / 0.5281 GB, free: 102.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/1.479, allocations: 13.47 kB / 0.5281 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003369/1.482, allocations: 0.6882 MB / 0.5288 GB, free: 102.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03434/1.517, allocations: 4.324 MB / 0.533 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01812/1.535, allocations: 4.359 MB / 0.5373 GB, free: 102 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005197/1.535, allocations: 280.6 kB / 0.5375 GB, free: 102 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002419/1.538, allocations: 372.3 kB / 0.5379 GB, free: 102 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02775/1.565, allocations: 8.988 MB / 0.5467 GB, free: 99.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002924/1.566, allocations: 59.97 kB / 0.5467 GB, free: 99.38 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001588/1.567, allocations: 181.8 kB / 0.5469 GB, free: 99.38 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002223/1.57, allocations: 0.904 MB / 0.5478 GB, free: 99.37 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01967/1.589, allocations: 7.081 MB / 0.5547 GB, free: 99.35 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0564/1.646, allocations: 42.66 MB / 0.5964 GB, free: 66.51 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007594/1.653, allocations: 2.486 MB / 0.5988 GB, free: 65.29 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002086/1.656, allocations: 1.062 MB / 0.5998 GB, free: 64.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004625/1.656, allocations: 326.7 kB / 0.6001 GB, free: 64.55 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/1.656, allocations: 49.52 kB / 0.6002 GB, free: 64.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 4.739e-06/1.656, allocations: 0 / 0.6002 GB, free: 64.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.03091/1.687, allocations: 7.47 MB / 0.6075 GB, free: 61.04 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/1.687, allocations: 194.5 kB / 0.6077 GB, free: 60.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008112/1.695, allocations: 3.468 MB / 0.6111 GB, free: 59.53 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003186/1.696, allocations: 41.02 kB / 0.6111 GB, free: 59.49 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002575/1.698, allocations: 2.908 MB / 0.6139 GB, free: 57.17 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008246/1.699, allocations: 0.5404 MB / 0.6145 GB, free: 56.79 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006965/1.7, allocations: 116 kB / 0.6146 GB, free: 56.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004165/1.7, allocations: 0.5622 MB / 0.6151 GB, free: 56.28 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004045/1.704, allocations: 1.59 MB / 0.6167 GB, free: 55.77 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006461/1.711, allocations: 5.349 MB / 0.6219 GB, free: 49.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006247/1.717, allocations: 2.926 MB / 0.6248 GB, free: 48.89 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001368/1.717, allocations: 38.75 kB / 0.6248 GB, free: 48.89 MB / 458.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01722/1.735, allocations: 6.355 MB / 0.631 GB, free: 43.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.55e-05/1.735, allocations: 70.28 kB / 0.6311 GB, free: 43.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002075/1.735, allocations: 137 kB / 0.6312 GB, free: 43.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/1.736, allocations: 360 kB / 0.6315 GB, free: 42.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007336/1.744, allocations: 1.326 MB / 0.6328 GB, free: 41.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003942/1.748, allocations: 2.728 MB / 0.6355 GB, free: 39.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005927/1.754, allocations: 306.5 kB / 0.6358 GB, free: 38.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007896/1.754, allocations: 370.7 kB / 0.6361 GB, free: 38.38 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.0008806/1.755, allocations: 0.5445 MB / 0.6367 GB, free: 37.83 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006703/1.756, allocations: 335.6 kB / 0.637 GB, free: 37.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003908/1.76, allocations: 1.555 MB / 0.6385 GB, free: 36.18 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.58e-05/1.76, allocations: 16 kB / 0.6385 GB, free: 36.17 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/1.76, allocations: 4 kB / 0.6385 GB, free: 36.16 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-05/1.76, allocations: 6.234 kB / 0.6385 GB, free: 36.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01421/1.774, allocations: 5.206 MB / 0.6436 GB, free: 31.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/1.774, allocations: 3.875 kB / 0.6436 GB, free: 31.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001777/1.776, allocations: 193.8 kB / 0.6438 GB, free: 31.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007698/1.777, allocations: 154.3 kB / 0.644 GB, free: 31.61 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001321/1.777, allocations: 27.61 kB / 0.644 GB, free: 31.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002977/1.78, allocations: 2.153 MB / 0.6461 GB, free: 29.48 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.78, allocations: 0 / 0.6461 GB, free: 29.48 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006379/1.786, allocations: 3.516 MB / 0.6495 GB, free: 26.23 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00165/1.788, allocations: 0.5245 MB / 0.65 GB, free: 25.72 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005569/1.789, allocations: 25.02 kB / 0.6501 GB, free: 25.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001914/1.791, allocations: 54.8 kB / 0.6501 GB, free: 25.66 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/1.791, allocations: 76.94 kB / 0.6502 GB, free: 25.61 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/1.791, allocations: 36 kB / 0.6502 GB, free: 25.57 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005096/1.796, allocations: 2.398 MB / 0.6526 GB, free: 23.47 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.796, allocations: 4 kB / 0.6526 GB, free: 23.47 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006407/1.803, allocations: 0.8457 MB / 0.6534 GB, free: 22.63 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.006914/1.809, allocations: 4.604 MB / 0.6579 GB, free: 18.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008247/1.818, allocations: 3.728 MB / 0.6615 GB, free: 14.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/1.818, allocations: 0 / 0.6615 GB, free: 14.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001838/1.82, allocations: 0.9395 MB / 0.6624 GB, free: 14.04 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002735/1.822, allocations: 362.9 kB / 0.6628 GB, free: 13.73 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02317/1.846, allocations: 7.857 MB / 0.6705 GB, free: 6.895 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005077/1.851, allocations: 3.031 MB / 0.6734 GB, free: 4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003355/1.854, allocations: 1.683 MB / 0.6751 GB, free: 2.316 MB / 458.7 MB Notification: Performance of SimCode: time 1.543e-06/1.854, allocations: 0 / 0.6751 GB, free: 2.316 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.698/6.552, allocations: 86.02 MB / 0.7591 GB, free: 100.2 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat