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.587/2.587, allocations: 235 MB / 247.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.106e-05/4.117e-05, allocations: 4 kB / 305 MB, free: 5.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4261/0.4262, allocations: 54.85 MB / 359.9 MB, free: 2.684 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2518/0.678, allocations: 105.5 MB / 465.4 MB, free: 7.277 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/0.6784, allocations: 75.97 kB / 465.5 MB, free: 7.203 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.274/1.952, allocations: 248.5 MB / 0.6972 GB, free: 5.832 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.216e-06/1.952, allocations: 0 / 0.6972 GB, free: 5.832 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001593/1.954, allocations: 371.9 kB / 0.6976 GB, free: 5.469 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.8704/2.824, allocations: 15.62 MB / 0.7129 GB, free: 29.82 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.02e-05/2.825, allocations: 9.844 kB / 0.7129 GB, free: 29.82 MB / 474.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01705/2.842, allocations: 3.064 MB / 0.7159 GB, free: 29.64 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06362/2.905, allocations: 8.3 MB / 0.724 GB, free: 28.6 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04945/2.955, allocations: 12.4 MB / 0.7361 GB, free: 27.26 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002168/2.957, allocations: 1.499 MB / 0.7375 GB, free: 27.22 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01072/2.968, allocations: 1.961 MB / 0.7395 GB, free: 27.21 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1717/3.14, allocations: 42.3 MB / 0.7808 GB, free: 20.63 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001813/3.141, allocations: 146.8 kB / 0.7809 GB, free: 20.62 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009008/3.15, allocations: 0.8856 MB / 0.7818 GB, free: 20.23 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004879/3.155, allocations: 2.391 MB / 0.7841 GB, free: 19.83 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1161/3.272, allocations: 33.56 MB / 0.8169 GB, free: 9.375 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.214/4.486, allocations: 146.7 MB / 0.9601 GB, free: 25.43 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1056/4.592, allocations: 22.43 MB / 0.982 GB, free: 23.04 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01226/4.604, allocations: 6.728 MB / 0.9886 GB, free: 23 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06658/4.671, allocations: 27.34 MB / 1.015 GB, free: 18.2 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001094/4.671, allocations: 84.89 kB / 1.015 GB, free: 18.16 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=372): time 1.123e-05/4.671, allocations: 0 / 1.015 GB, free: 18.16 MB / 0.5419 GB Notification: Performance of matching and sorting (n=486): time 2.15/6.821, allocations: 280.7 MB / 1.289 GB, free: 75.06 MB / 0.5731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001723/6.821, allocations: 283.4 kB / 1.29 GB, free: 74.73 MB / 0.5731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03446/6.856, allocations: 8.956 MB / 1.298 GB, free: 65.78 MB / 0.5731 GB Notification: Performance of collectPreVariables (initialization): time 0.003708/6.86, allocations: 98.95 kB / 1.299 GB, free: 65.68 MB / 0.5731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0129/6.873, allocations: 10.81 MB / 1.309 GB, free: 54.87 MB / 0.5731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0062/6.879, allocations: 1.893 MB / 1.311 GB, free: 52.99 MB / 0.5731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005671/6.885, allocations: 341.6 kB / 1.311 GB, free: 52.66 MB / 0.5731 GB Notification: Performance of setup shared object (initialization): time 0.003445/6.888, allocations: 1.025 MB / 1.312 GB, free: 51.62 MB / 0.5731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4725/7.361, allocations: 15.7 MB / 1.328 GB, free: 126 MB / 0.5731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04182/7.403, allocations: 26.27 MB / 1.353 GB, free: 112.4 MB / 0.5731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04203/7.445, allocations: 19.82 MB / 1.373 GB, free: 111.1 MB / 0.5731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00051/7.445, allocations: 106.2 kB / 1.373 GB, free: 111.1 MB / 0.5731 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.1015/7.547, allocations: 41.64 MB / 1.413 GB, free: 95.2 MB / 0.5731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003652/7.547, allocations: 171.5 kB / 1.414 GB, free: 95.2 MB / 0.5731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007009/7.548, allocations: 377.2 kB / 1.414 GB, free: 95.2 MB / 0.5731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002854/7.551, allocations: 0.8653 MB / 1.415 GB, free: 95.12 MB / 0.5731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04017/7.591, allocations: 5.291 MB / 1.42 GB, free: 94.62 MB / 0.5731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009012/7.6, allocations: 5.655 MB / 1.425 GB, free: 90.87 MB / 0.5731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03074/7.631, allocations: 2.157 MB / 1.428 GB, free: 90.61 MB / 0.5731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00574/7.637, allocations: 1.024 MB / 1.429 GB, free: 90.47 MB / 0.5731 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.01007/7.647, allocations: 1.4 MB / 1.43 GB, free: 89.38 MB / 0.5731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004168/7.651, allocations: 0.8698 MB / 1.431 GB, free: 89.38 MB / 0.5731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1029/7.754, allocations: 29.97 MB / 1.46 GB, free: 73.75 MB / 0.5731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001999/7.754, allocations: 100.2 kB / 1.46 GB, free: 73.66 MB / 0.5731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.935e-05/7.754, allocations: 12.72 kB / 1.46 GB, free: 73.65 MB / 0.5731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000124/7.755, allocations: 22.41 kB / 1.46 GB, free: 73.65 MB / 0.5731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6732/8.428, allocations: 74.4 MB / 1.533 GB, free: 110.8 MB / 0.5731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001218/8.428, allocations: 1 kB / 1.533 GB, free: 110.8 MB / 0.5731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03347/8.461, allocations: 2.116 MB / 1.535 GB, free: 110.8 MB / 0.5731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002531/8.464, allocations: 321.4 kB / 1.535 GB, free: 110.8 MB / 0.5731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003596/8.468, allocations: 82.09 kB / 1.535 GB, free: 110.8 MB / 0.5731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00966/8.477, allocations: 4.298 MB / 1.54 GB, free: 108.3 MB / 0.5731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/8.478, allocations: 3.656 kB / 1.54 GB, free: 108.3 MB / 0.5731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1095/8.587, allocations: 50.36 MB / 1.589 GB, free: 100.3 MB / 0.5731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01544/8.603, allocations: 3.948 MB / 1.593 GB, free: 98.8 MB / 0.5731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006091/8.609, allocations: 75.62 kB / 1.593 GB, free: 98.75 MB / 0.5731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02166/8.63, allocations: 1.633 MB / 1.594 GB, free: 98.69 MB / 0.5731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004049/8.635, allocations: 254.6 kB / 1.594 GB, free: 98.65 MB / 0.5731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002915/8.638, allocations: 133.5 kB / 1.595 GB, free: 98.62 MB / 0.5731 GB Notification: Performance of sorting global known variables: time 0.0193/8.657, allocations: 6.164 MB / 1.601 GB, free: 96.42 MB / 0.5731 GB Notification: Performance of sort global known variables: time 1.343e-06/8.657, allocations: 0 / 1.601 GB, free: 96.42 MB / 0.5731 GB Notification: Performance of remove unused functions: time 0.02745/8.684, allocations: 4.277 MB / 1.605 GB, free: 96.1 MB / 0.5731 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.1124/8.797, allocations: 51.26 MB / 1.655 GB, free: 73.23 MB / 0.5731 GB Notification: Performance of simCode: created initialization part: time 0.0738/8.871, allocations: 34.77 MB / 1.689 GB, free: 42.67 MB / 0.5731 GB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/8.871, allocations: 0.625 kB / 1.689 GB, free: 42.67 MB / 0.5731 GB Notification: Performance of simCode: created simulation system equations: time 0.03124/8.902, allocations: 14.83 MB / 1.703 GB, free: 29.05 MB / 0.5731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01232/8.914, allocations: 1.333 MB / 1.705 GB, free: 27.99 MB / 0.5731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6138/9.528, allocations: 47.71 MB / 1.751 GB, free: 115.2 MB / 0.5731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03646/9.565, allocations: 11.36 MB / 1.762 GB, free: 114.1 MB / 0.5731 GB Notification: Performance of simCode: alias equations: time 0.03914/9.604, allocations: 7.387 MB / 1.769 GB, free: 114 MB / 0.5731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02704/9.631, allocations: 7.676 MB / 1.777 GB, free: 114 MB / 0.5731 GB Notification: Performance of SimCode: time 1.413e-06/9.631, allocations: 0 / 1.777 GB, free: 114 MB / 0.5731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.169/10.8, allocations: 275.7 MB / 2.046 GB, free: 80.52 MB / 0.5731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000277/10.8, allocations: 183.1 kB / 2.046 GB, free: 80.29 MB / 0.5731 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/23.14, allocations: 0 / 2.046 GB, free: 80.29 MB / 0.5731 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