Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.735/2.735, allocations: 235.2 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.123e-05/2.133e-05, allocations: 0 / 299.6 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4335/0.4335, allocations: 54.87 MB / 354.4 MB, free: 14.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2195/0.6531, allocations: 104.9 MB / 459.3 MB, free: 9.266 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003181/0.6535, allocations: 87.94 kB / 459.4 MB, free: 9.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.766/2.42, allocations: 239.8 MB / 0.6828 GB, free: 32.87 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.577e-06/2.42, allocations: 3.375 kB / 0.6829 GB, free: 32.87 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0009631/2.421, allocations: 372.5 kB / 0.6832 GB, free: 32.86 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.06843/2.489, allocations: 15.62 MB / 0.6985 GB, free: 27.72 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.929e-05/2.489, allocations: 9.906 kB / 0.6985 GB, free: 27.72 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0696/2.559, allocations: 8.291 MB / 0.7066 GB, free: 26.69 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04821/2.607, allocations: 12.4 MB / 0.7187 GB, free: 25.29 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001194/2.608, allocations: 0.6424 MB / 0.7193 GB, free: 25.29 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008829/2.617, allocations: 1.161 MB / 0.7204 GB, free: 25.28 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06987/2.687, allocations: 22.93 MB / 0.7428 GB, free: 25.19 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1219/2.809, allocations: 33.56 MB / 0.7756 GB, free: 13.58 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00124/2.811, allocations: 147.6 kB / 0.7758 GB, free: 13.57 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007607/2.818, allocations: 72.59 kB / 0.7758 GB, free: 13.57 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005591/2.824, allocations: 2.39 MB / 0.7782 GB, free: 13.15 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7286/3.552, allocations: 141.4 MB / 0.9163 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01622/3.569, allocations: 9.905 MB / 0.9259 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01208/3.581, allocations: 6.609 MB / 0.9324 GB, free: 18.61 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004181/3.585, allocations: 2.576 MB / 0.9349 GB, free: 16.61 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.584e-05/3.585, allocations: 82.47 kB / 0.935 GB, free: 16.57 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=409): time 1.11e-05/3.585, allocations: 3.219 kB / 0.935 GB, free: 16.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=523): time 1.753/5.339, allocations: 234.3 MB / 1.164 GB, free: 105.4 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001323/5.339, allocations: 289 kB / 1.164 GB, free: 105.1 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02187/5.361, allocations: 7.85 MB / 1.172 GB, free: 102.2 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.002847/5.364, allocations: 29.27 kB / 1.172 GB, free: 102.2 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.009351/5.373, allocations: 10.82 MB / 1.182 GB, free: 93.96 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.005279/5.378, allocations: 1.945 MB / 1.184 GB, free: 92.54 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004746/5.383, allocations: 0 / 1.184 GB, free: 92.54 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.002419/5.386, allocations: 1.061 MB / 1.185 GB, free: 91.91 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03466/5.42, allocations: 15.52 MB / 1.2 GB, free: 85.16 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04196/5.462, allocations: 26.2 MB / 1.226 GB, free: 63.97 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0453/5.508, allocations: 19.64 MB / 1.245 GB, free: 51.12 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005087/5.508, allocations: 112 kB / 1.245 GB, free: 51.01 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2273) (initialization): time 0.5956/6.104, allocations: 40.13 MB / 1.285 GB, free: 97.39 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004726/6.104, allocations: 174.4 kB / 1.285 GB, free: 97.39 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008032/6.105, allocations: 385.3 kB / 1.285 GB, free: 97.39 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003471/6.109, allocations: 0.9086 MB / 1.286 GB, free: 97.38 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04603/6.155, allocations: 5.398 MB / 1.291 GB, free: 97.23 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01107/6.166, allocations: 5.991 MB / 1.297 GB, free: 94.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03476/6.201, allocations: 1.834 MB / 1.299 GB, free: 94.53 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006149/6.207, allocations: 1.047 MB / 1.3 GB, free: 94.53 MB / 0.5573 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.01046/6.217, allocations: 1.015 MB / 1.301 GB, free: 93.9 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.07258/6.29, allocations: 27.59 MB / 1.328 GB, free: 93.73 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005007/6.295, allocations: 0.8296 MB / 1.329 GB, free: 93.73 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08284/6.378, allocations: 30.2 MB / 1.358 GB, free: 81.55 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002946/6.378, allocations: 96.34 kB / 1.358 GB, free: 81.54 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.395e-05/6.378, allocations: 5.969 kB / 1.358 GB, free: 81.54 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001572/6.379, allocations: 24 kB / 1.358 GB, free: 81.54 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1835/6.562, allocations: 69.79 MB / 1.426 GB, free: 39.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.193e-05/6.562, allocations: 4 kB / 1.426 GB, free: 39.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0359/6.598, allocations: 2.169 MB / 1.429 GB, free: 38.33 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002491/6.601, allocations: 317.3 kB / 1.429 GB, free: 38.1 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003573/6.604, allocations: 15.84 kB / 1.429 GB, free: 38.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009233/6.614, allocations: 4.115 MB / 1.433 GB, free: 34.11 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.371e-05/6.614, allocations: 7.938 kB / 1.433 GB, free: 34.1 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5937/7.207, allocations: 52.78 MB / 1.484 GB, free: 96.75 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01511/7.223, allocations: 3.904 MB / 1.488 GB, free: 96.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006541/7.229, allocations: 3.281 kB / 1.488 GB, free: 96.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02321/7.252, allocations: 1.56 MB / 1.49 GB, free: 96.66 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004153/7.257, allocations: 282 kB / 1.49 GB, free: 96.65 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002452/7.259, allocations: 139.2 kB / 1.49 GB, free: 96.65 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01494/7.274, allocations: 5.2 MB / 1.495 GB, free: 96.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.152e-06/7.274, allocations: 0 / 1.495 GB, free: 96.4 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02804/7.302, allocations: 3.886 MB / 1.499 GB, free: 96.4 MB / 0.5573 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.114/7.416, allocations: 51.96 MB / 1.55 GB, free: 84.55 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.07722/7.493, allocations: 34.24 MB / 1.583 GB, free: 70.63 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.817e-05/7.493, allocations: 4.5 kB / 1.583 GB, free: 70.63 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.04671/7.54, allocations: 14.86 MB / 1.598 GB, free: 63.72 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0267/7.567, allocations: 1.157 MB / 1.599 GB, free: 63.32 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1729/7.74, allocations: 47.24 MB / 1.645 GB, free: 26.76 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03276/7.773, allocations: 11.36 MB / 1.656 GB, free: 18.5 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.04068/7.813, allocations: 7.493 MB / 1.663 GB, free: 13.45 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02856/7.842, allocations: 7.875 MB / 1.671 GB, free: 6.094 MB / 0.5573 GB Notification: Performance of SimCode: time 1.523e-06/7.842, allocations: 1.094 kB / 1.671 GB, free: 6.094 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.701/9.543, allocations: 269.6 MB / 1.934 GB, free: 67.89 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002541/9.543, allocations: 140.5 kB / 1.935 GB, free: 67.7 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 11.89/21.43, allocations: 0 / 1.935 GB, free: 67.7 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat