Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.717/2.717, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.383e-05/2.388e-05, allocations: 0 / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3919, allocations: 54.86 MB / 354.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1918/0.5838, allocations: 97.69 MB / 452.1 MB, free: 13.44 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000306/0.5841, allocations: 79.95 kB / 452.2 MB, free: 13.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6816/1.266, allocations: 77.37 MB / 0.5172 GB, free: 48.1 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.266e-06/1.266, allocations: 0 / 0.5172 GB, free: 48.1 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002199/1.266, allocations: 68 kB / 0.5172 GB, free: 48.03 MB / 394.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.01457/1.281, allocations: 3.538 MB / 0.5207 GB, free: 44.43 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/1.281, allocations: 8.031 kB / 0.5207 GB, free: 44.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03621/1.317, allocations: 4.32 MB / 0.5249 GB, free: 40.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01746/1.334, allocations: 4.354 MB / 0.5292 GB, free: 35.68 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/1.335, allocations: 116 kB / 0.5293 GB, free: 35.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002052/1.337, allocations: 220 kB / 0.5295 GB, free: 35.35 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01374/1.351, allocations: 5.219 MB / 0.5346 GB, free: 30.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02155/1.372, allocations: 8.329 MB / 0.5427 GB, free: 20.81 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002114/1.372, allocations: 55.47 kB / 0.5428 GB, free: 20.76 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001006/1.373, allocations: 32 kB / 0.5428 GB, free: 20.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00198/1.375, allocations: 0.9 MB / 0.5437 GB, free: 19.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06466/1.44, allocations: 40.8 MB / 0.5835 GB, free: 9.766 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005309/1.445, allocations: 2.416 MB / 0.5859 GB, free: 7.145 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002682/1.448, allocations: 1.06 MB / 0.5869 GB, free: 6.074 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006563/1.449, allocations: 335.7 kB / 0.5872 GB, free: 5.691 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.483e-05/1.449, allocations: 43.12 kB / 0.5873 GB, free: 5.641 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 6.102e-06/1.449, allocations: 0 / 0.5873 GB, free: 5.641 MB / 426.7 MB Notification: Performance of matching and sorting (n=140): time 0.03582/1.485, allocations: 9.605 MB / 0.5967 GB, free: 11.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/1.485, allocations: 196.6 kB / 0.5968 GB, free: 11.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008184/1.493, allocations: 3.006 MB / 0.5998 GB, free: 8.703 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003345/1.494, allocations: 29.7 kB / 0.5998 GB, free: 8.668 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003864/1.497, allocations: 3.042 MB / 0.6028 GB, free: 5.582 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001055/1.499, allocations: 0.5517 MB / 0.6033 GB, free: 5.023 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006387/1.499, allocations: 0 / 0.6033 GB, free: 5.023 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005844/1.5, allocations: 0.5622 MB / 0.6039 GB, free: 4.453 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004526/1.504, allocations: 1.554 MB / 0.6054 GB, free: 2.895 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00908/1.513, allocations: 5.513 MB / 0.6108 GB, free: 11.37 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008021/1.522, allocations: 2.931 MB / 0.6136 GB, free: 8.434 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001543/1.522, allocations: 44 kB / 0.6137 GB, free: 8.391 MB / 458.7 MB Notification: Performance of matching and sorting (n=790) (initialization): time 0.021/1.543, allocations: 6.277 MB / 0.6198 GB, free: 2.105 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001736/1.543, allocations: 73.83 kB / 0.6199 GB, free: 2.035 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002515/1.543, allocations: 140 kB / 0.62 GB, free: 1.898 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001378/1.545, allocations: 372.7 kB / 0.6204 GB, free: 1.531 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009566/1.554, allocations: 1.404 MB / 0.6217 GB, free: 128 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3624/1.917, allocations: 2.62 MB / 0.6243 GB, free: 106 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006792/1.924, allocations: 192.4 kB / 0.6245 GB, free: 106 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001591/1.925, allocations: 387.6 kB / 0.6248 GB, free: 106 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 651 * 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 (755): * Single equations (assignments): 751 * 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.002052/1.927, allocations: 460.9 kB / 0.6253 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006065/1.933, allocations: 1.875 MB / 0.6271 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009392/1.934, allocations: 301.5 kB / 0.6274 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004961/1.939, allocations: 1.541 MB / 0.6289 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.687e-05/1.939, allocations: 17.88 kB / 0.6289 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.712e-05/1.939, allocations: 10.42 kB / 0.6289 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.488e-05/1.939, allocations: 3.328 kB / 0.6289 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01599/1.955, allocations: 4.716 MB / 0.6335 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.313e-05/1.956, allocations: 7.297 kB / 0.6335 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002206/1.958, allocations: 201 kB / 0.6337 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009254/1.959, allocations: 163.2 kB / 0.6339 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003585/1.959, allocations: 9.531 kB / 0.6339 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003557/1.963, allocations: 2.053 MB / 0.6359 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/1.963, allocations: 4.281 kB / 0.6359 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007129/1.97, allocations: 3.516 MB / 0.6393 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001678/1.972, allocations: 0.495 MB / 0.6398 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006416/1.972, allocations: 6.266 kB / 0.6398 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001905/1.974, allocations: 35.34 kB / 0.6399 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002822/1.975, allocations: 85.25 kB / 0.6399 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001388/1.975, allocations: 40.73 kB / 0.64 GB, free: 103 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004021/1.979, allocations: 1.988 MB / 0.6419 GB, free: 102.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.979, allocations: 3.781 kB / 0.6419 GB, free: 102.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006842/1.986, allocations: 0.7156 MB / 0.6426 GB, free: 102.8 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 (109): * Single equations (assignments): 105 * 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.007647/1.993, allocations: 4.587 MB / 0.6471 GB, free: 101 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008798/2.002, allocations: 3.768 MB / 0.6508 GB, free: 100.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/2.002, allocations: 7.141 kB / 0.6508 GB, free: 100.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002107/2.004, allocations: 0.9525 MB / 0.6517 GB, free: 100.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002563/2.007, allocations: 288.6 kB / 0.652 GB, free: 100.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02575/2.033, allocations: 7.282 MB / 0.6591 GB, free: 98.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007662/2.04, allocations: 3.036 MB / 0.6621 GB, free: 96.92 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.009449/2.05, allocations: 1.849 MB / 0.6639 GB, free: 96.89 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004358/2.054, allocations: 1.635 MB / 0.6655 GB, free: 95.57 MB / 458.7 MB Notification: Performance of SimCode: time 2.144e-06/2.054, allocations: 0 / 0.6655 GB, free: 95.57 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2178/2.272, allocations: 61.26 MB / 0.7253 GB, free: 49.61 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002352/2.272, allocations: 134.5 kB / 0.7254 GB, free: 49.42 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.352/7.625, allocations: 3.938 kB / 0.7254 GB, free: 49.42 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat