Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.425/2.425, allocations: 235 MB / 247.6 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.791e-05/4.831e-05, allocations: 4.938 kB / 305 MB, free: 5.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4023/0.4023, allocations: 54.85 MB / 359.9 MB, free: 2.227 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1973/0.5997, allocations: 105.6 MB / 465.4 MB, free: 7.328 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/0.6, allocations: 77.66 kB / 465.5 MB, free: 7.254 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.244/1.844, allocations: 248.5 MB / 0.6972 GB, free: 5.945 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.844, allocations: 0 / 0.6972 GB, free: 5.945 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001208/1.846, allocations: 375.9 kB / 0.6976 GB, free: 5.578 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5962 * Number of variables: 5962 Notification: Performance of Generate backend data structure: time 0.8112/2.657, allocations: 15.62 MB / 0.7129 GB, free: 29.83 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.634e-05/2.657, allocations: 12.44 kB / 0.7129 GB, free: 29.83 MB / 474.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01987/2.677, allocations: 3.063 MB / 0.7159 GB, free: 29.64 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06268/2.74, allocations: 8.297 MB / 0.724 GB, free: 28.61 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04556/2.785, allocations: 12.41 MB / 0.7361 GB, free: 27.26 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001942/2.787, allocations: 1.496 MB / 0.7375 GB, free: 27.21 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009406/2.797, allocations: 1.965 MB / 0.7395 GB, free: 27.21 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.146/2.943, allocations: 42.06 MB / 0.7805 GB, free: 20.72 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001528/2.944, allocations: 139.3 kB / 0.7807 GB, free: 20.71 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008799/2.953, allocations: 0.8911 MB / 0.7815 GB, free: 20.3 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005008/2.958, allocations: 2.389 MB / 0.7839 GB, free: 19.9 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1163/3.074, allocations: 33.03 MB / 0.8161 GB, free: 9.691 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7617/3.836, allocations: 146.7 MB / 0.9594 GB, free: 29.9 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.11/3.946, allocations: 22.39 MB / 0.9813 GB, free: 27.52 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01219/3.959, allocations: 6.729 MB / 0.9878 GB, free: 27.47 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06476/4.023, allocations: 27.35 MB / 1.015 GB, free: 22.7 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001/4.024, allocations: 78.08 kB / 1.015 GB, free: 22.65 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=372): time 9.518e-06/4.024, allocations: 0 / 1.015 GB, free: 22.65 MB / 0.5418 GB Notification: Performance of matching and sorting (n=486): time 2.065/6.089, allocations: 280.7 MB / 1.289 GB, free: 83.2 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/6.089, allocations: 288.8 kB / 1.289 GB, free: 82.87 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03056/6.12, allocations: 8.943 MB / 1.298 GB, free: 73.93 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.003435/6.123, allocations: 110.5 kB / 1.298 GB, free: 73.82 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.009303/6.133, allocations: 10.58 MB / 1.308 GB, free: 63.25 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004423/6.137, allocations: 1.889 MB / 1.31 GB, free: 61.37 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004273/6.141, allocations: 340 kB / 1.31 GB, free: 61.04 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.002127/6.144, allocations: 1.03 MB / 1.311 GB, free: 60 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4478/6.591, allocations: 15.7 MB / 1.327 GB, free: 127.9 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0435/6.635, allocations: 26.17 MB / 1.352 GB, free: 114.2 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0424/6.677, allocations: 19.83 MB / 1.372 GB, free: 114.2 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004577/6.678, allocations: 105.7 kB / 1.372 GB, free: 114.2 MB / 0.573 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.09984/6.778, allocations: 40.36 MB / 1.411 GB, free: 99.51 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005082/6.778, allocations: 171.1 kB / 1.411 GB, free: 99.51 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006888/6.779, allocations: 376.2 kB / 1.412 GB, free: 99.51 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002912/6.782, allocations: 0.8653 MB / 1.412 GB, free: 99.42 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04026/6.822, allocations: 5.292 MB / 1.418 GB, free: 98.93 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008923/6.831, allocations: 5.668 MB / 1.423 GB, free: 95.18 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03135/6.863, allocations: 2.151 MB / 1.425 GB, free: 94.92 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005423/6.868, allocations: 1.024 MB / 1.426 GB, free: 94.78 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1714 * 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 (2150): * Single equations (assignments): 2140 * 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%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009673/6.878, allocations: 1.395 MB / 1.428 GB, free: 93.69 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004369/6.882, allocations: 0.875 MB / 1.428 GB, free: 93.69 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0767/6.959, allocations: 29.98 MB / 1.458 GB, free: 80.2 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002811/6.959, allocations: 100.5 kB / 1.458 GB, free: 80.18 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.248e-05/6.959, allocations: 3.938 kB / 1.458 GB, free: 80.18 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001474/6.96, allocations: 20.77 kB / 1.458 GB, free: 80.18 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.616/7.576, allocations: 73.31 MB / 1.529 GB, free: 113.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.511e-05/7.576, allocations: 4.609 kB / 1.529 GB, free: 113.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02462/7.6, allocations: 2.112 MB / 1.532 GB, free: 113.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001765/7.602, allocations: 317.7 kB / 1.532 GB, free: 113.2 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002618/7.605, allocations: 81.3 kB / 1.532 GB, free: 113.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006833/7.612, allocations: 4.293 MB / 1.536 GB, free: 110.7 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/7.612, allocations: 7.5 kB / 1.536 GB, free: 110.7 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1023/7.714, allocations: 50.35 MB / 1.585 GB, free: 102.7 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01381/7.728, allocations: 3.953 MB / 1.589 GB, free: 101.3 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00536/7.733, allocations: 77.86 kB / 1.589 GB, free: 101.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02111/7.755, allocations: 1.636 MB / 1.591 GB, free: 101.1 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003432/7.758, allocations: 256.1 kB / 1.591 GB, free: 101.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002284/7.76, allocations: 127.7 kB / 1.591 GB, free: 101.1 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01656/7.777, allocations: 6.167 MB / 1.597 GB, free: 98.88 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.783e-06/7.777, allocations: 0 / 1.597 GB, free: 98.88 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02677/7.804, allocations: 4.276 MB / 1.601 GB, free: 98.55 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (444): * Single equations (assignments): 434 * 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.1207/7.925, allocations: 51.26 MB / 1.651 GB, free: 75.68 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.1272/8.052, allocations: 34.24 MB / 1.685 GB, free: 45.84 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.716e-05/8.052, allocations: 4.625 kB / 1.685 GB, free: 45.83 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.04973/8.102, allocations: 14.79 MB / 1.699 GB, free: 32.26 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02614/8.128, allocations: 1.336 MB / 1.701 GB, free: 31.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5812/8.709, allocations: 49.99 MB / 1.749 GB, free: 119.3 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0335/8.743, allocations: 11.35 MB / 1.761 GB, free: 118.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02999/8.773, allocations: 7.801 MB / 1.768 GB, free: 118.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.864e-06/8.773, allocations: 0 / 1.768 GB, free: 118.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.429/18.2, allocations: 484.5 MB / 2.241 GB, free: 108 MB / 0.5887 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat