Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.051/2.051, allocations: 209.4 MB / 216.5 MB, free: 6.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.235e-05/2.236e-05, allocations: 0 / 267.6 MB, free: 4.969 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1085, allocations: 48.71 MB / 316.3 MB, free: 4.168 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4494/0.558, allocations: 98.26 MB / 414.6 MB, free: 10.51 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.5583, allocations: 77.52 kB / 414.7 MB, free: 10.47 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.277/1.836, allocations: 239.7 MB / 0.6391 GB, free: 6.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.806e-06/1.836, allocations: 0 / 0.6391 GB, free: 6.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001981/1.838, allocations: 375.9 kB / 0.6394 GB, free: 6.453 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: 5960 * Number of variables: 5960 Notification: Performance of Generate backend data structure: time 0.8469/2.685, allocations: 15.62 MB / 0.6547 GB, free: 24.59 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/2.685, allocations: 10.44 kB / 0.6547 GB, free: 24.59 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06945/2.754, allocations: 8.29 MB / 0.6628 GB, free: 23.56 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04674/2.801, allocations: 12.4 MB / 0.6749 GB, free: 22.18 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001395/2.803, allocations: 0.6429 MB / 0.6755 GB, free: 22.18 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009852/2.813, allocations: 1.159 MB / 0.6766 GB, free: 22.17 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06523/2.878, allocations: 22.93 MB / 0.699 GB, free: 22.08 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1026/2.98, allocations: 33.56 MB / 0.7318 GB, free: 11.76 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001244/2.982, allocations: 147.2 kB / 0.7319 GB, free: 11.74 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008598/2.99, allocations: 70.22 kB / 0.732 GB, free: 11.74 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0053/2.996, allocations: 2.386 MB / 0.7343 GB, free: 11.35 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.229/4.225, allocations: 141.8 MB / 0.8729 GB, free: 30.69 MB / 0.495 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02365/4.249, allocations: 9.912 MB / 0.8825 GB, free: 28.34 MB / 0.495 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01633/4.265, allocations: 6.604 MB / 0.889 GB, free: 28.29 MB / 0.495 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00542/4.27, allocations: 2.577 MB / 0.8915 GB, free: 26.29 MB / 0.495 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001486/4.271, allocations: 87.28 kB / 0.8916 GB, free: 26.25 MB / 0.495 GB Notification: Performance of pre-optimization done (n=409): time 1.429e-05/4.271, allocations: 0 / 0.8916 GB, free: 26.25 MB / 0.495 GB Notification: Performance of matching and sorting (n=523): time 1.628/5.898, allocations: 234.4 MB / 1.12 GB, free: 111.2 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/5.898, allocations: 287.3 kB / 1.121 GB, free: 110.9 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02871/5.927, allocations: 7.849 MB / 1.128 GB, free: 107.8 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.003716/5.931, allocations: 29.52 kB / 1.128 GB, free: 107.8 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.01236/5.943, allocations: 10.82 MB / 1.139 GB, free: 99.47 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.006443/5.95, allocations: 1.947 MB / 1.141 GB, free: 98.05 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005508/5.955, allocations: 2.25 kB / 1.141 GB, free: 98.05 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.002978/5.959, allocations: 1.052 MB / 1.142 GB, free: 97.43 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05019/6.009, allocations: 15.53 MB / 1.157 GB, free: 90.68 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.06153/6.07, allocations: 26.2 MB / 1.183 GB, free: 69.32 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06009/6.131, allocations: 19.64 MB / 1.202 GB, free: 52.72 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000705/6.131, allocations: 112 kB / 1.202 GB, free: 52.61 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2273) (initialization): time 0.5875/6.719, allocations: 41.01 MB / 1.242 GB, free: 106.5 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004175/6.719, allocations: 167.3 kB / 1.242 GB, free: 106.5 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008212/6.72, allocations: 384.8 kB / 1.243 GB, free: 106.5 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003508/6.724, allocations: 0.9155 MB / 1.243 GB, free: 106.4 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04928/6.773, allocations: 5.391 MB / 1.249 GB, free: 106.1 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009336/6.782, allocations: 5.985 MB / 1.255 GB, free: 103.4 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03197/6.814, allocations: 1.83 MB / 1.256 GB, free: 103.4 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005797/6.82, allocations: 1.047 MB / 1.257 GB, free: 103.4 MB / 0.5263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1748 * Number of states: 0 () * Number of discrete variables: 45 (relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (2211): * Single equations (assignments): 2201 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009486/6.83, allocations: 1.013 MB / 1.258 GB, free: 102.7 MB / 0.5263 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06313/6.893, allocations: 27.59 MB / 1.285 GB, free: 98.36 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004959/6.898, allocations: 0.8242 MB / 1.286 GB, free: 98.36 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07296/6.971, allocations: 30.19 MB / 1.316 GB, free: 84.83 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000228/6.971, allocations: 95.89 kB / 1.316 GB, free: 84.82 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-05/6.971, allocations: 10.8 kB / 1.316 GB, free: 84.81 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001483/6.972, allocations: 28.03 kB / 1.316 GB, free: 84.81 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1418/7.113, allocations: 69.8 MB / 1.384 GB, free: 30.28 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.05e-05/7.113, allocations: 4 kB / 1.384 GB, free: 30.28 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02434/7.138, allocations: 2.162 MB / 1.386 GB, free: 28.92 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002128/7.14, allocations: 327.1 kB / 1.386 GB, free: 28.68 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003031/7.143, allocations: 15.56 kB / 1.386 GB, free: 28.67 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008116/7.151, allocations: 4.104 MB / 1.39 GB, free: 24.74 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-05/7.151, allocations: 4 kB / 1.39 GB, free: 24.74 MB / 0.5263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5466/7.698, allocations: 50.87 MB / 1.44 GB, free: 102.9 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01409/7.712, allocations: 3.908 MB / 1.444 GB, free: 101.4 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005848/7.718, allocations: 12.36 kB / 1.444 GB, free: 101.4 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02066/7.739, allocations: 1.562 MB / 1.445 GB, free: 101.4 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004033/7.743, allocations: 278.1 kB / 1.446 GB, free: 101.4 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002097/7.745, allocations: 137.3 kB / 1.446 GB, free: 101.4 MB / 0.5263 GB Notification: Performance of sorting global known variables: time 0.01436/7.759, allocations: 5.205 MB / 1.451 GB, free: 99.43 MB / 0.5263 GB Notification: Performance of sort global known variables: time 1.052e-06/7.759, allocations: 1.562 kB / 1.451 GB, free: 99.43 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.02631/7.786, allocations: 3.88 MB / 1.455 GB, free: 99.43 MB / 0.5263 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (479): * Single equations (assignments): 469 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1051/7.891, allocations: 51.97 MB / 1.505 GB, free: 75.75 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 0.09037/7.981, allocations: 34.24 MB / 1.539 GB, free: 52.11 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 1.486e-05/7.981, allocations: 4.625 kB / 1.539 GB, free: 52.11 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 0.02843/8.01, allocations: 14.85 MB / 1.553 GB, free: 38.49 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01159/8.021, allocations: 1.146 MB / 1.554 GB, free: 37.59 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5612/8.583, allocations: 47.24 MB / 1.601 GB, free: 113.5 MB / 0.5263 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03629/8.619, allocations: 11.37 MB / 1.612 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of simCode: alias equations: time 0.04127/8.66, allocations: 7.498 MB / 1.619 GB, free: 112.3 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02812/8.688, allocations: 7.862 MB / 1.627 GB, free: 112.3 MB / 0.5263 GB Notification: Performance of SimCode: time 1.593e-06/8.688, allocations: 0 / 1.627 GB, free: 112.3 MB / 0.5263 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.018/9.706, allocations: 268.8 MB / 1.889 GB, free: 56.22 MB / 0.5263 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000272/9.706, allocations: 147.2 kB / 1.889 GB, free: 56.02 MB / 0.5263 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/21.27, allocations: 4.484 kB / 1.889 GB, free: 56.02 MB / 0.5263 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat