Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.005/2.005, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.418e-05/2.429e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1034, allocations: 48.71 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4718/0.5753, allocations: 98.28 MB / 414.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.5757, allocations: 72.72 kB / 414.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.179/1.755, allocations: 239.7 MB / 0.6391 GB, free: 6.949 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.315e-06/1.755, allocations: 4 kB / 0.6391 GB, free: 6.945 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001086/1.756, allocations: 375.9 kB / 0.6394 GB, free: 6.578 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.7401/2.496, allocations: 15.61 MB / 0.6547 GB, free: 24.4 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/2.496, allocations: 9.844 kB / 0.6547 GB, free: 24.4 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06066/2.557, allocations: 8.292 MB / 0.6628 GB, free: 23.37 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04477/2.601, allocations: 12.4 MB / 0.6749 GB, free: 21.99 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001243/2.603, allocations: 0.6444 MB / 0.6755 GB, free: 21.99 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008639/2.611, allocations: 1.159 MB / 0.6766 GB, free: 21.98 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0645/2.676, allocations: 22.93 MB / 0.699 GB, free: 21.89 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1195/2.796, allocations: 33.56 MB / 0.7318 GB, free: 11.64 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001697/2.797, allocations: 145.5 kB / 0.732 GB, free: 11.62 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008439/2.806, allocations: 72.81 kB / 0.732 GB, free: 11.62 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004922/2.811, allocations: 2.385 MB / 0.7343 GB, free: 11.23 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7332/3.544, allocations: 141.8 MB / 0.8728 GB, free: 33.33 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01575/3.56, allocations: 9.9 MB / 0.8825 GB, free: 30.98 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01108/3.571, allocations: 6.614 MB / 0.8889 GB, free: 30.93 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004024/3.575, allocations: 2.577 MB / 0.8915 GB, free: 28.93 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001177/3.575, allocations: 87.91 kB / 0.8915 GB, free: 28.88 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=409): time 1.01e-05/3.575, allocations: 0 / 0.8915 GB, free: 28.88 MB / 0.4949 GB Notification: Performance of matching and sorting (n=523): time 1.539/5.114, allocations: 234 MB / 1.12 GB, free: 113.7 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/5.114, allocations: 287.2 kB / 1.12 GB, free: 113.4 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02725/5.142, allocations: 7.858 MB / 1.128 GB, free: 110.3 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.003505/5.145, allocations: 25.7 kB / 1.128 GB, free: 110.2 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.01194/5.157, allocations: 10.67 MB / 1.138 GB, free: 102 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.006309/5.164, allocations: 1.946 MB / 1.14 GB, free: 100.5 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005309/5.169, allocations: 0 / 1.14 GB, free: 100.5 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.00275/5.172, allocations: 1.062 MB / 1.141 GB, free: 99.9 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04274/5.215, allocations: 15.52 MB / 1.157 GB, free: 93.16 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03936/5.254, allocations: 26.2 MB / 1.182 GB, free: 71.96 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03868/5.293, allocations: 19.65 MB / 1.201 GB, free: 57.8 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004978/5.293, allocations: 108 kB / 1.201 GB, free: 57.7 MB / 0.5262 GB Notification: Performance of matching and sorting (n=2273) (initialization): time 0.5023/5.796, allocations: 41.31 MB / 1.242 GB, free: 109.5 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004736/5.796, allocations: 172.5 kB / 1.242 GB, free: 109.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008001/5.797, allocations: 383.2 kB / 1.242 GB, free: 109.5 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003/5.8, allocations: 0.921 MB / 1.243 GB, free: 109.5 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04054/5.841, allocations: 5.385 MB / 1.248 GB, free: 109.1 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009271/5.85, allocations: 5.992 MB / 1.254 GB, free: 106.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03042/5.88, allocations: 1.836 MB / 1.256 GB, free: 106.4 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005812/5.886, allocations: 1.046 MB / 1.257 GB, free: 106.4 MB / 0.5262 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.009556/5.896, allocations: 1.012 MB / 1.258 GB, free: 105.7 MB / 0.5262 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06172/5.958, allocations: 27.59 MB / 1.285 GB, free: 103.1 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004839/5.963, allocations: 0.8267 MB / 1.286 GB, free: 103.1 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07149/6.034, allocations: 30.19 MB / 1.315 GB, free: 89.58 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002526/6.034, allocations: 98.56 kB / 1.315 GB, free: 89.57 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.507e-05/6.034, allocations: 7.859 kB / 1.315 GB, free: 89.57 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000147/6.035, allocations: 29.59 kB / 1.315 GB, free: 89.57 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.143/6.178, allocations: 69.79 MB / 1.384 GB, free: 37.04 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.12e-05/6.178, allocations: 2 kB / 1.384 GB, free: 37.04 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02376/6.202, allocations: 2.16 MB / 1.386 GB, free: 35.68 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001642/6.203, allocations: 319.3 kB / 1.386 GB, free: 35.45 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002418/6.206, allocations: 18.72 kB / 1.386 GB, free: 35.43 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005878/6.212, allocations: 4.107 MB / 1.39 GB, free: 31.5 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/6.212, allocations: 3 kB / 1.39 GB, free: 31.5 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5196/6.731, allocations: 52.74 MB / 1.442 GB, free: 107.3 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01412/6.745, allocations: 3.909 MB / 1.445 GB, free: 107.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005833/6.751, allocations: 11.09 kB / 1.445 GB, free: 107.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02041/6.772, allocations: 1.56 MB / 1.447 GB, free: 107.2 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003946/6.776, allocations: 276.2 kB / 1.447 GB, free: 107.2 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002583/6.778, allocations: 137 kB / 1.447 GB, free: 107.2 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01451/6.793, allocations: 5.208 MB / 1.452 GB, free: 106 MB / 0.5262 GB Notification: Performance of sort global known variables: time 2.325e-06/6.793, allocations: 0 / 1.452 GB, free: 106 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.02654/6.82, allocations: 3.887 MB / 1.456 GB, free: 106 MB / 0.5262 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.1041/6.924, allocations: 51.96 MB / 1.507 GB, free: 82.33 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.06654/6.99, allocations: 34.24 MB / 1.54 GB, free: 62.58 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.424e-05/6.99, allocations: 4.625 kB / 1.54 GB, free: 62.58 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.02815/7.019, allocations: 14.86 MB / 1.555 GB, free: 48.96 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01157/7.03, allocations: 1.146 MB / 1.556 GB, free: 48.06 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5408/7.571, allocations: 49.25 MB / 1.604 GB, free: 109.1 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04044/7.612, allocations: 11.37 MB / 1.615 GB, free: 108 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04262/7.654, allocations: 7.999 MB / 1.623 GB, free: 108 MB / 0.5262 GB Notification: Performance of SimCode: time 1.823e-06/7.654, allocations: 0 / 1.623 GB, free: 108 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.117/16.77, allocations: 481.9 MB / 2.094 GB, free: 104.2 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat