Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.399/2.399, allocations: 235.1 MB / 242.2 MB, free: 15.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.091e-05/4.105e-05, allocations: 4 kB / 299.5 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.3904, allocations: 54.85 MB / 354.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1873/0.5777, allocations: 98.25 MB / 452.6 MB, free: 15.94 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.5781, allocations: 79.84 kB / 452.7 MB, free: 15.86 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6636/1.242, allocations: 71.59 MB / 0.512 GB, free: 101.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.735e-06/1.242, allocations: 2.562 kB / 0.512 GB, free: 101.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001894/1.242, allocations: 69.47 kB / 0.512 GB, free: 101.6 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: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.0122/1.254, allocations: 3.258 MB / 0.5152 GB, free: 100.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/1.254, allocations: 10.5 kB / 0.5152 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03102/1.285, allocations: 4.25 MB / 0.5194 GB, free: 99.81 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01598/1.301, allocations: 4.194 MB / 0.5235 GB, free: 99.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002011/1.302, allocations: 107.6 kB / 0.5236 GB, free: 99.07 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001613/1.303, allocations: 193.1 kB / 0.5238 GB, free: 99.07 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0112/1.314, allocations: 4.669 MB / 0.5283 GB, free: 97.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02041/1.335, allocations: 7.576 MB / 0.5357 GB, free: 89.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003391/1.335, allocations: 55.47 kB / 0.5358 GB, free: 89.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002218/1.338, allocations: 35.95 kB / 0.5358 GB, free: 89.55 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002646/1.34, allocations: 0.8133 MB / 0.5366 GB, free: 88.74 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04775/1.388, allocations: 38.12 MB / 0.5738 GB, free: 49.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003567/1.392, allocations: 2.33 MB / 0.5761 GB, free: 47.12 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0019/1.394, allocations: 1.051 MB / 0.5771 GB, free: 46.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004819/1.394, allocations: 315.6 kB / 0.5774 GB, free: 45.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/1.394, allocations: 58.2 kB / 0.5775 GB, free: 45.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=120): time 4.428e-06/1.394, allocations: 4 kB / 0.5775 GB, free: 45.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=150): time 0.035/1.429, allocations: 10.49 MB / 0.5877 GB, free: 35.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.792e-05/1.429, allocations: 192.7 kB / 0.5879 GB, free: 34.79 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005192/1.435, allocations: 2.797 MB / 0.5906 GB, free: 31.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003144/1.435, allocations: 25.7 kB / 0.5907 GB, free: 31.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002194/1.437, allocations: 2.737 MB / 0.5933 GB, free: 29.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007864/1.438, allocations: 0.5746 MB / 0.5939 GB, free: 28.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004839/1.438, allocations: 0 / 0.5939 GB, free: 28.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003275/1.439, allocations: 0.5456 MB / 0.5944 GB, free: 28.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003429/1.442, allocations: 1.553 MB / 0.596 GB, free: 26.49 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005532/1.448, allocations: 5.109 MB / 0.6009 GB, free: 19.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005899/1.454, allocations: 2.832 MB / 0.6037 GB, free: 16.74 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001059/1.454, allocations: 36 kB / 0.6037 GB, free: 16.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=735) (initialization): time 0.01563/1.47, allocations: 6.014 MB / 0.6096 GB, free: 10.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.588e-05/1.47, allocations: 63.95 kB / 0.6097 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001495/1.47, allocations: 128 kB / 0.6098 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/1.471, allocations: 349.1 kB / 0.6101 GB, free: 10.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007603/1.479, allocations: 1.306 MB / 0.6114 GB, free: 8.844 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003759/1.482, allocations: 2.598 MB / 0.6139 GB, free: 6.141 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005573/1.488, allocations: 195.4 kB / 0.6141 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001063/1.489, allocations: 352.1 kB / 0.6145 GB, free: 5.605 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 24 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (700): * Single equations (assignments): 696 * 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.000871/1.49, allocations: 423.5 kB / 0.6149 GB, free: 5.188 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004685/1.495, allocations: 2.035 MB / 0.6169 GB, free: 3.141 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007199/1.496, allocations: 288.2 kB / 0.6171 GB, free: 2.855 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004364/1.5, allocations: 1.657 MB / 0.6188 GB, free: 1.184 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.301e-05/1.5, allocations: 19.95 kB / 0.6188 GB, free: 1.164 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/1.5, allocations: 8 kB / 0.6188 GB, free: 1.156 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-05/1.5, allocations: 3.984 kB / 0.6188 GB, free: 1.152 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/1.515, allocations: 5.138 MB / 0.6238 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/1.516, allocations: 0 / 0.6238 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002355/1.518, allocations: 227.7 kB / 0.624 GB, free: 11.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008779/1.519, allocations: 160.7 kB / 0.6242 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002614/1.519, allocations: 7.984 kB / 0.6242 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003518/1.523, allocations: 2.049 MB / 0.6262 GB, free: 9.387 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.949e-06/1.523, allocations: 7.938 kB / 0.6262 GB, free: 9.379 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00855/1.531, allocations: 3.76 MB / 0.6299 GB, free: 5.543 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001945/1.533, allocations: 0.4973 MB / 0.6303 GB, free: 5.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008627/1.534, allocations: 4 kB / 0.6303 GB, free: 5.016 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/1.536, allocations: 47.86 kB / 0.6304 GB, free: 4.969 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004059/1.537, allocations: 84.67 kB / 0.6305 GB, free: 4.887 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/1.537, allocations: 39.98 kB / 0.6305 GB, free: 4.848 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005024/1.542, allocations: 1.856 MB / 0.6323 GB, free: 2.996 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.542, allocations: 0 / 0.6323 GB, free: 2.996 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0065/1.549, allocations: 0.6874 MB / 0.633 GB, free: 2.309 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * 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.009366/1.558, allocations: 4.671 MB / 0.6376 GB, free: 13.58 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009459/1.568, allocations: 3.77 MB / 0.6412 GB, free: 9.832 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/1.568, allocations: 0 / 0.6412 GB, free: 9.832 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002604/1.57, allocations: 1.068 MB / 0.6423 GB, free: 8.754 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/1.573, allocations: 281.6 kB / 0.6425 GB, free: 8.484 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02547/1.598, allocations: 6.886 MB / 0.6493 GB, free: 1.551 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006751/1.605, allocations: 2.823 MB / 0.652 GB, free: 14.71 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.009113/1.614, allocations: 1.776 MB / 0.6538 GB, free: 12.93 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00437/1.619, allocations: 1.503 MB / 0.6552 GB, free: 11.43 MB / 474.7 MB Notification: Performance of SimCode: time 1.743e-06/1.619, allocations: 0 / 0.6552 GB, free: 11.43 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5164/2.135, allocations: 58.5 MB / 0.7124 GB, free: 117.3 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002412/2.136, allocations: 130.5 kB / 0.7125 GB, free: 117.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.684/6.819, allocations: 0 / 0.7125 GB, free: 117.1 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat