Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.869/1.869, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.633e-05/3.636e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1024, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4179/0.5203, allocations: 91.53 MB / 413.4 MB, free: 14.37 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/0.5207, allocations: 75.12 kB / 413.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3575/0.8782, allocations: 78.86 MB / 492.3 MB, free: 14.89 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.8782, allocations: 0 / 492.3 MB, free: 14.89 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002975/0.8786, allocations: 72 kB / 492.4 MB, free: 14.82 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: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.01802/0.8966, allocations: 3.534 MB / 495.9 MB, free: 11.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.862e-05/0.8967, allocations: 12.03 kB / 495.9 MB, free: 11.22 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003236/0.8999, allocations: 0.6884 MB / 496.6 MB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03334/0.9333, allocations: 4.324 MB / 0.4892 GB, free: 6.184 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01779/0.9512, allocations: 4.361 MB / 0.4935 GB, free: 1.758 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000403/0.9516, allocations: 279.3 kB / 0.4937 GB, free: 1.484 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002051/0.9537, allocations: 367.8 kB / 0.4941 GB, free: 1.125 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3014/1.255, allocations: 8.986 MB / 0.5029 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002354/1.255, allocations: 49.62 kB / 0.5029 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001289/1.257, allocations: 183.3 kB / 0.5031 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002163/1.259, allocations: 0.8926 MB / 0.5039 GB, free: 96.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02109/1.28, allocations: 7.079 MB / 0.5109 GB, free: 96.72 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05602/1.336, allocations: 42.65 MB / 0.5525 GB, free: 66.96 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007481/1.344, allocations: 2.488 MB / 0.5549 GB, free: 65.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002044/1.346, allocations: 1.062 MB / 0.556 GB, free: 65.29 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004775/1.346, allocations: 328.2 kB / 0.5563 GB, free: 65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/1.346, allocations: 49.88 kB / 0.5563 GB, free: 64.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 4.759e-06/1.346, allocations: 0 / 0.5563 GB, free: 64.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.02857/1.375, allocations: 7.485 MB / 0.5636 GB, free: 61.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.579e-05/1.375, allocations: 198.1 kB / 0.5638 GB, free: 61.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006912/1.382, allocations: 3.456 MB / 0.5672 GB, free: 60.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003102/1.382, allocations: 42.73 kB / 0.5673 GB, free: 60.22 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002261/1.385, allocations: 2.912 MB / 0.5701 GB, free: 58.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000722/1.385, allocations: 0.5402 MB / 0.5706 GB, free: 57.67 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004807/1.386, allocations: 113.8 kB / 0.5707 GB, free: 57.58 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003472/1.386, allocations: 0.5586 MB / 0.5713 GB, free: 57.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003616/1.39, allocations: 1.587 MB / 0.5728 GB, free: 56.65 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00609/1.396, allocations: 5.353 MB / 0.5781 GB, free: 50.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006076/1.402, allocations: 2.928 MB / 0.5809 GB, free: 49.89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001351/1.402, allocations: 37.06 kB / 0.5809 GB, free: 49.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01647/1.419, allocations: 6.355 MB / 0.5872 GB, free: 47.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.984e-05/1.419, allocations: 63.84 kB / 0.5872 GB, free: 47.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001735/1.419, allocations: 135.2 kB / 0.5873 GB, free: 47.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/1.42, allocations: 371 kB / 0.5877 GB, free: 47.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007455/1.428, allocations: 1.324 MB / 0.589 GB, free: 47.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004122/1.432, allocations: 2.737 MB / 0.5917 GB, free: 45.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005891/1.438, allocations: 295 kB / 0.5919 GB, free: 45.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001141/1.439, allocations: 367.6 kB / 0.5923 GB, free: 45.42 MB / 426.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.001017/1.44, allocations: 0.5608 MB / 0.5928 GB, free: 44.96 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007529/1.441, allocations: 325.5 kB / 0.5932 GB, free: 44.78 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003912/1.445, allocations: 1.552 MB / 0.5947 GB, free: 44.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.932e-05/1.445, allocations: 18.81 kB / 0.5947 GB, free: 44.15 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/1.445, allocations: 0 / 0.5947 GB, free: 44.15 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.049e-05/1.445, allocations: 14.39 kB / 0.5947 GB, free: 44.15 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/1.458, allocations: 5.2 MB / 0.5998 GB, free: 41.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/1.459, allocations: 0 / 0.5998 GB, free: 41.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001846/1.46, allocations: 198.2 kB / 0.6 GB, free: 41.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007841/1.461, allocations: 151.6 kB / 0.6001 GB, free: 40.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001731/1.461, allocations: 28 kB / 0.6001 GB, free: 40.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003019/1.464, allocations: 2.149 MB / 0.6022 GB, free: 38.78 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/1.464, allocations: 4.062 kB / 0.6022 GB, free: 38.78 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006488/1.471, allocations: 3.517 MB / 0.6057 GB, free: 35.53 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/1.473, allocations: 0.5292 MB / 0.6062 GB, free: 35.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00053/1.473, allocations: 20 kB / 0.6062 GB, free: 35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001878/1.475, allocations: 55.08 kB / 0.6063 GB, free: 34.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/1.475, allocations: 86.09 kB / 0.6063 GB, free: 34.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001191/1.475, allocations: 35.42 kB / 0.6064 GB, free: 34.87 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005251/1.481, allocations: 2.398 MB / 0.6087 GB, free: 32.77 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.481, allocations: 0 / 0.6087 GB, free: 32.77 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006199/1.487, allocations: 0.8431 MB / 0.6095 GB, free: 31.93 MB / 426.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.007011/1.494, allocations: 4.608 MB / 0.614 GB, free: 27.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008208/1.502, allocations: 3.727 MB / 0.6177 GB, free: 24.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/1.502, allocations: 0.75 kB / 0.6177 GB, free: 24.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001888/1.504, allocations: 0.946 MB / 0.6186 GB, free: 23.33 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002743/1.507, allocations: 349.9 kB / 0.6189 GB, free: 23.03 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02298/1.53, allocations: 7.838 MB / 0.6266 GB, free: 16.21 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005197/1.535, allocations: 3.036 MB / 0.6296 GB, free: 13.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003592/1.539, allocations: 1.678 MB / 0.6312 GB, free: 12.33 MB / 426.7 MB Notification: Performance of SimCode: time 1.783e-06/1.539, allocations: 0 / 0.6312 GB, free: 12.33 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.286/5.825, allocations: 85.98 MB / 0.7152 GB, free: 91.8 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat