Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.964/1.964, allocations: 209.3 MB / 221.5 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.124e-05/4.118e-05, allocations: 4 kB / 273.2 MB, free: 148 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 48.71 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4402/0.5448, allocations: 91.54 MB / 413.4 MB, free: 14.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/0.5452, allocations: 75.95 kB / 413.5 MB, free: 13.97 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3836/0.9289, allocations: 78.84 MB / 492.3 MB, free: 14.58 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.9289, allocations: 4 kB / 492.3 MB, free: 14.57 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002615/0.9292, allocations: 72 kB / 492.4 MB, free: 14.5 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.01577/0.945, allocations: 3.53 MB / 495.9 MB, free: 10.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.041e-05/0.9451, allocations: 8.031 kB / 496 MB, free: 10.91 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003589/0.9487, allocations: 0.6845 MB / 496.6 MB, free: 10.21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03404/0.9828, allocations: 4.328 MB / 0.4892 GB, free: 5.871 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01891/1.002, allocations: 4.365 MB / 0.4935 GB, free: 1.441 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006179/1.002, allocations: 279.3 kB / 0.4938 GB, free: 1.168 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002752/1.005, allocations: 371.8 kB / 0.4941 GB, free: 0.8047 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3386/1.344, allocations: 8.977 MB / 0.5029 GB, free: 96.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000335/1.344, allocations: 55.59 kB / 0.5029 GB, free: 96.89 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001813/1.346, allocations: 185.5 kB / 0.5031 GB, free: 96.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002452/1.348, allocations: 0.8941 MB / 0.504 GB, free: 96.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02264/1.371, allocations: 7.08 MB / 0.5109 GB, free: 96.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07045/1.442, allocations: 42.65 MB / 0.5525 GB, free: 67.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01061/1.452, allocations: 2.478 MB / 0.555 GB, free: 65.86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002653/1.455, allocations: 1.054 MB / 0.556 GB, free: 65.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005366/1.456, allocations: 346 kB / 0.5563 GB, free: 65.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/1.456, allocations: 42.69 kB / 0.5564 GB, free: 65.06 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 5.55e-06/1.456, allocations: 2.031 kB / 0.5564 GB, free: 65.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.0296/1.485, allocations: 7.48 MB / 0.5637 GB, free: 61.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.715e-05/1.485, allocations: 190.9 kB / 0.5639 GB, free: 61.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006549/1.492, allocations: 3.458 MB / 0.5672 GB, free: 60.38 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002969/1.492, allocations: 46.39 kB / 0.5673 GB, free: 60.33 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002341/1.495, allocations: 2.965 MB / 0.5702 GB, free: 58.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007222/1.496, allocations: 0.5398 MB / 0.5707 GB, free: 57.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004045/1.496, allocations: 111 kB / 0.5708 GB, free: 57.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003498/1.496, allocations: 0.5552 MB / 0.5713 GB, free: 57.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003545/1.5, allocations: 1.594 MB / 0.5729 GB, free: 56.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005777/1.506, allocations: 5.35 MB / 0.5781 GB, free: 51.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00602/1.512, allocations: 2.932 MB / 0.581 GB, free: 50.02 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.855e-05/1.512, allocations: 38.62 kB / 0.581 GB, free: 50.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01702/1.529, allocations: 6.451 MB / 0.5873 GB, free: 47.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.564e-05/1.529, allocations: 65.31 kB / 0.5874 GB, free: 47.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001578/1.529, allocations: 136.4 kB / 0.5875 GB, free: 47.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/1.53, allocations: 370.7 kB / 0.5879 GB, free: 47.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007331/1.538, allocations: 1.324 MB / 0.5892 GB, free: 47.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004151/1.542, allocations: 2.743 MB / 0.5918 GB, free: 45.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006304/1.548, allocations: 299.1 kB / 0.5921 GB, free: 45.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00125/1.55, allocations: 370 kB / 0.5925 GB, free: 45.49 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.001072/1.551, allocations: 0.5538 MB / 0.593 GB, free: 45.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008196/1.551, allocations: 324.1 kB / 0.5933 GB, free: 44.86 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003968/1.555, allocations: 1.554 MB / 0.5948 GB, free: 44.23 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.239e-05/1.556, allocations: 15.84 kB / 0.5949 GB, free: 44.23 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/1.556, allocations: 3.797 kB / 0.5949 GB, free: 44.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.947e-05/1.556, allocations: 15.02 kB / 0.5949 GB, free: 44.22 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0133/1.569, allocations: 5.197 MB / 0.6 GB, free: 40.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/1.569, allocations: 4 kB / 0.6 GB, free: 40.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001766/1.571, allocations: 196.4 kB / 0.6001 GB, free: 40.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007416/1.571, allocations: 153.4 kB / 0.6003 GB, free: 40.53 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/1.572, allocations: 24 kB / 0.6003 GB, free: 40.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003025/1.575, allocations: 2.157 MB / 0.6024 GB, free: 38.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.575, allocations: 7.938 kB / 0.6024 GB, free: 38.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006463/1.581, allocations: 3.521 MB / 0.6059 GB, free: 35.14 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001578/1.583, allocations: 0.5183 MB / 0.6064 GB, free: 34.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005027/1.583, allocations: 23.19 kB / 0.6064 GB, free: 34.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001917/1.585, allocations: 59.58 kB / 0.6065 GB, free: 34.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003376/1.586, allocations: 68.53 kB / 0.6065 GB, free: 34.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001839/1.586, allocations: 43.36 kB / 0.6066 GB, free: 34.49 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007511/1.593, allocations: 2.393 MB / 0.6089 GB, free: 32.39 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.342e-06/1.593, allocations: 0 / 0.6089 GB, free: 32.39 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01018/1.604, allocations: 0.8483 MB / 0.6097 GB, free: 31.55 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.007613/1.611, allocations: 4.605 MB / 0.6142 GB, free: 27.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008656/1.62, allocations: 3.725 MB / 0.6179 GB, free: 23.83 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/1.62, allocations: 4.125 kB / 0.6179 GB, free: 23.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001979/1.622, allocations: 0.9408 MB / 0.6188 GB, free: 22.96 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003003/1.625, allocations: 353.8 kB / 0.6191 GB, free: 22.65 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02462/1.65, allocations: 7.424 MB / 0.6264 GB, free: 16.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006007/1.656, allocations: 3.026 MB / 0.6293 GB, free: 13.87 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.008019/1.664, allocations: 1.811 MB / 0.6311 GB, free: 12.73 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003833/1.668, allocations: 1.63 MB / 0.6327 GB, free: 11.22 MB / 426.7 MB Notification: Performance of SimCode: time 2.144e-06/1.668, allocations: 0 / 0.6327 GB, free: 11.22 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5083/2.176, allocations: 65.22 MB / 0.6964 GB, free: 99.38 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/2.176, allocations: 174.4 kB / 0.6965 GB, free: 99.15 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.084/7.261, allocations: 0.5469 kB / 0.6965 GB, free: 99.15 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat