Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Sensors_Distance",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.698/2.698, allocations: 235.2 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.226e-05/2.231e-05, allocations: 0 / 299.6 MB, free: 6.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4369/0.4369, allocations: 54.87 MB / 354.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2031/0.6401, allocations: 98.24 MB / 452.7 MB, free: 15.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.6405, allocations: 75.97 kB / 452.8 MB, free: 15.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7123/1.353, allocations: 71.6 MB / 0.5121 GB, free: 101.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.353, allocations: 3.844 kB / 0.5121 GB, free: 101.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001867/1.353, allocations: 62 kB / 0.5121 GB, free: 101.7 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.01251/1.366, allocations: 3.258 MB / 0.5153 GB, free: 100.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/1.366, allocations: 10.78 kB / 0.5153 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0344/1.4, allocations: 4.243 MB / 0.5195 GB, free: 99.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01673/1.417, allocations: 4.207 MB / 0.5236 GB, free: 99.19 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/1.417, allocations: 105.2 kB / 0.5237 GB, free: 99.19 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001546/1.419, allocations: 190.7 kB / 0.5239 GB, free: 99.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01151/1.43, allocations: 4.669 MB / 0.5284 GB, free: 97.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0173/1.448, allocations: 7.578 MB / 0.5358 GB, free: 89.55 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000234/1.448, allocations: 55.47 kB / 0.5359 GB, free: 89.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009372/1.449, allocations: 31.95 kB / 0.5359 GB, free: 89.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001689/1.451, allocations: 0.8134 MB / 0.5367 GB, free: 88.65 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05075/1.501, allocations: 38.13 MB / 0.5739 GB, free: 49.56 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003997/1.505, allocations: 2.337 MB / 0.5762 GB, free: 47.02 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002062/1.507, allocations: 1.051 MB / 0.5772 GB, free: 45.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005571/1.508, allocations: 315.7 kB / 0.5775 GB, free: 45.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/1.508, allocations: 51.08 kB / 0.5776 GB, free: 45.54 MB / 426.7 MB Notification: Performance of pre-optimization done (n=120): time 5.5e-06/1.508, allocations: 0 / 0.5776 GB, free: 45.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=150): time 0.03905/1.547, allocations: 10.49 MB / 0.5878 GB, free: 34.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/1.547, allocations: 196.7 kB / 0.588 GB, free: 34.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005308/1.553, allocations: 2.793 MB / 0.5907 GB, free: 31.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002984/1.553, allocations: 25.7 kB / 0.5908 GB, free: 31.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001998/1.555, allocations: 2.741 MB / 0.5934 GB, free: 29.09 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007555/1.556, allocations: 0.5746 MB / 0.594 GB, free: 28.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003549/1.556, allocations: 0 / 0.594 GB, free: 28.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003582/1.556, allocations: 0.5378 MB / 0.5945 GB, free: 27.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003545/1.56, allocations: 1.561 MB / 0.5961 GB, free: 26.39 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005994/1.566, allocations: 5.105 MB / 0.601 GB, free: 19.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00655/1.573, allocations: 2.83 MB / 0.6038 GB, free: 16.65 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000106/1.573, allocations: 36 kB / 0.6038 GB, free: 16.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=735) (initialization): time 0.01676/1.59, allocations: 6.014 MB / 0.6097 GB, free: 10.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.844e-05/1.59, allocations: 65.2 kB / 0.6098 GB, free: 10.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001534/1.59, allocations: 128 kB / 0.6099 GB, free: 10.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0012/1.591, allocations: 349.1 kB / 0.6102 GB, free: 10.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008399/1.6, allocations: 1.306 MB / 0.6115 GB, free: 8.754 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004158/1.604, allocations: 2.605 MB / 0.614 GB, free: 6.043 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006046/1.61, allocations: 187.4 kB / 0.6142 GB, free: 5.859 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00102/1.611, allocations: 351.4 kB / 0.6146 GB, free: 5.52 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.001024/1.612, allocations: 428 kB / 0.615 GB, free: 5.094 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005271/1.617, allocations: 2.033 MB / 0.617 GB, free: 3.047 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007274/1.618, allocations: 284.2 kB / 0.6172 GB, free: 2.766 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004666/1.623, allocations: 1.661 MB / 0.6188 GB, free: 1.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.924e-05/1.623, allocations: 19.95 kB / 0.6189 GB, free: 1.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/1.623, allocations: 8 kB / 0.6189 GB, free: 1.062 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.149e-05/1.623, allocations: 3.984 kB / 0.6189 GB, free: 1.059 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01607/1.639, allocations: 5.13 MB / 0.6239 GB, free: 11.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.967e-05/1.639, allocations: 4 kB / 0.6239 GB, free: 11.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00257/1.642, allocations: 231.7 kB / 0.6241 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009352/1.642, allocations: 156.7 kB / 0.6243 GB, free: 11.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002032/1.643, allocations: 11.98 kB / 0.6243 GB, free: 11.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003912/1.647, allocations: 2.048 MB / 0.6263 GB, free: 9.293 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/1.647, allocations: 3.938 kB / 0.6263 GB, free: 9.289 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009228/1.656, allocations: 3.764 MB / 0.63 GB, free: 5.449 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00206/1.658, allocations: 0.5012 MB / 0.6304 GB, free: 4.922 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009511/1.659, allocations: 0 / 0.6304 GB, free: 4.922 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002459/1.662, allocations: 47.92 kB / 0.6305 GB, free: 4.875 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004323/1.662, allocations: 80.67 kB / 0.6306 GB, free: 4.797 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/1.662, allocations: 40 kB / 0.6306 GB, free: 4.758 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005227/1.667, allocations: 1.856 MB / 0.6324 GB, free: 2.906 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.667, allocations: 0 / 0.6324 GB, free: 2.906 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006931/1.674, allocations: 0.6913 MB / 0.6331 GB, free: 2.215 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.01058/1.685, allocations: 4.675 MB / 0.6377 GB, free: 13.48 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01017/1.695, allocations: 3.771 MB / 0.6413 GB, free: 9.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/1.695, allocations: 448 / 0.6413 GB, free: 9.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00272/1.698, allocations: 1.07 MB / 0.6424 GB, free: 8.652 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002794/1.701, allocations: 271 kB / 0.6426 GB, free: 8.391 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02632/1.727, allocations: 6.89 MB / 0.6494 GB, free: 1.457 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006993/1.734, allocations: 2.835 MB / 0.6521 GB, free: 14.61 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0102/1.745, allocations: 1.772 MB / 0.6539 GB, free: 12.84 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004642/1.749, allocations: 1.503 MB / 0.6553 GB, free: 11.34 MB / 474.7 MB Notification: Performance of SimCode: time 2.164e-06/1.749, allocations: 0 / 0.6553 GB, free: 11.34 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5453/2.295, allocations: 58.52 MB / 0.7125 GB, free: 117.2 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002799/2.295, allocations: 129.3 kB / 0.7126 GB, free: 117 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.988/7.283, allocations: 4 kB / 0.7126 GB, free: 117 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat