Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.355/2.355, allocations: 235 MB / 247.2 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.38e-05/3.394e-05, allocations: 0 / 305 MB, free: 5.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4441/0.4442, allocations: 54.86 MB / 359.9 MB, free: 3.176 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2004/0.6447, allocations: 105.6 MB / 465.4 MB, free: 7.32 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.645, allocations: 71.97 kB / 465.5 MB, free: 7.25 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.162/1.807, allocations: 248.5 MB / 0.6973 GB, free: 5.957 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.455e-06/1.807, allocations: 0 / 0.6973 GB, free: 5.957 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001337/1.808, allocations: 379.9 kB / 0.6976 GB, free: 5.586 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.8/2.608, allocations: 15.61 MB / 0.7129 GB, free: 30.01 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.706e-05/2.608, allocations: 9.469 kB / 0.7129 GB, free: 30.01 MB / 474.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01528/2.624, allocations: 3.064 MB / 0.7159 GB, free: 29.82 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06156/2.685, allocations: 8.295 MB / 0.724 GB, free: 28.79 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04575/2.731, allocations: 12.41 MB / 0.7361 GB, free: 27.43 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002041/2.733, allocations: 1.496 MB / 0.7376 GB, free: 27.39 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00977/2.743, allocations: 1.971 MB / 0.7395 GB, free: 27.38 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1464/2.889, allocations: 42.05 MB / 0.7806 GB, free: 20.89 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001602/2.891, allocations: 151.9 kB / 0.7807 GB, free: 20.88 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009299/2.9, allocations: 0.8843 MB / 0.7816 GB, free: 20.49 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004963/2.906, allocations: 2.386 MB / 0.7839 GB, free: 20.09 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1436/3.049, allocations: 33.04 MB / 0.8162 GB, free: 9.938 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7576/3.807, allocations: 146.7 MB / 0.9594 GB, free: 29.96 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1125/3.919, allocations: 22.39 MB / 0.9813 GB, free: 27.58 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01609/3.936, allocations: 6.732 MB / 0.9879 GB, free: 27.54 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08047/4.016, allocations: 27.34 MB / 1.015 GB, free: 22.76 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.84e-05/4.016, allocations: 76.23 kB / 1.015 GB, free: 22.71 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=372): time 9.658e-06/4.016, allocations: 2.562 kB / 1.015 GB, free: 22.71 MB / 0.5418 GB Notification: Performance of matching and sorting (n=486): time 2.093/6.109, allocations: 280.7 MB / 1.289 GB, free: 83.55 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/6.11, allocations: 283 kB / 1.289 GB, free: 83.22 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02422/6.134, allocations: 8.94 MB / 1.298 GB, free: 74.29 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.002716/6.137, allocations: 106.7 kB / 1.298 GB, free: 74.18 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00949/6.146, allocations: 10.81 MB / 1.308 GB, free: 63.38 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004671/6.151, allocations: 1.894 MB / 1.31 GB, free: 61.5 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004561/6.155, allocations: 337.2 kB / 1.311 GB, free: 61.17 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.002166/6.158, allocations: 1.025 MB / 1.312 GB, free: 60.13 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4529/6.611, allocations: 15.7 MB / 1.327 GB, free: 128.1 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0484/6.659, allocations: 26.16 MB / 1.352 GB, free: 114.4 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06044/6.72, allocations: 19.83 MB / 1.372 GB, free: 114.4 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005969/6.72, allocations: 107.2 kB / 1.372 GB, free: 114.4 MB / 0.573 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.1082/6.829, allocations: 40.59 MB / 1.412 GB, free: 99.68 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004384/6.829, allocations: 166.6 kB / 1.412 GB, free: 99.68 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007365/6.83, allocations: 382.4 kB / 1.412 GB, free: 99.68 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002923/6.833, allocations: 0.8697 MB / 1.413 GB, free: 99.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04067/6.873, allocations: 5.29 MB / 1.418 GB, free: 99.11 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009006/6.883, allocations: 5.654 MB / 1.424 GB, free: 95.36 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03177/6.914, allocations: 2.157 MB / 1.426 GB, free: 95.09 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005876/6.92, allocations: 1.02 MB / 1.427 GB, free: 94.96 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.01026/6.931, allocations: 1.4 MB / 1.428 GB, free: 93.87 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004624/6.935, allocations: 0.869 MB / 1.429 GB, free: 93.87 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07338/7.009, allocations: 29.98 MB / 1.458 GB, free: 80.38 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002075/7.009, allocations: 92.41 kB / 1.458 GB, free: 80.37 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.457e-05/7.009, allocations: 3.906 kB / 1.458 GB, free: 80.37 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001364/7.009, allocations: 20.53 kB / 1.458 GB, free: 80.37 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6228/7.632, allocations: 73.44 MB / 1.53 GB, free: 113.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.845e-05/7.632, allocations: 1.625 kB / 1.53 GB, free: 113.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02579/7.658, allocations: 2.111 MB / 1.532 GB, free: 113.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00183/7.66, allocations: 322.5 kB / 1.532 GB, free: 113.6 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002884/7.663, allocations: 86.78 kB / 1.533 GB, free: 113.6 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00719/7.67, allocations: 4.294 MB / 1.537 GB, free: 111.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/7.67, allocations: 0 / 1.537 GB, free: 111.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1076/7.778, allocations: 50.35 MB / 1.586 GB, free: 103.2 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01416/7.792, allocations: 3.952 MB / 1.59 GB, free: 101.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005732/7.798, allocations: 73.66 kB / 1.59 GB, free: 101.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02154/7.819, allocations: 1.641 MB / 1.591 GB, free: 101.6 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003838/7.823, allocations: 255.5 kB / 1.592 GB, free: 101.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002831/7.826, allocations: 121.1 kB / 1.592 GB, free: 101.5 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01839/7.845, allocations: 6.163 MB / 1.598 GB, free: 99.31 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.122e-06/7.845, allocations: 0 / 1.598 GB, free: 99.31 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02723/7.872, allocations: 4.28 MB / 1.602 GB, free: 98.98 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.1122/7.984, allocations: 51.27 MB / 1.652 GB, free: 76.12 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.07304/8.057, allocations: 34.25 MB / 1.686 GB, free: 46.12 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.424e-05/8.057, allocations: 0.625 kB / 1.686 GB, free: 46.12 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0446/8.102, allocations: 14.79 MB / 1.7 GB, free: 32.54 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01568/8.118, allocations: 1.322 MB / 1.701 GB, free: 31.48 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5789/8.697, allocations: 48.03 MB / 1.748 GB, free: 119.4 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03538/8.732, allocations: 11.35 MB / 1.759 GB, free: 118.3 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.03926/8.771, allocations: 7.395 MB / 1.766 GB, free: 118.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02587/8.797, allocations: 7.679 MB / 1.774 GB, free: 118.2 MB / 0.573 GB Notification: Performance of SimCode: time 2.494e-06/8.797, allocations: 0 / 1.774 GB, free: 118.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.034/9.831, allocations: 271.7 MB / 2.039 GB, free: 87.2 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002593/9.832, allocations: 189.8 kB / 2.039 GB, free: 86.96 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/21.54, allocations: 0 / 2.039 GB, free: 86.96 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat