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.325/2.325, allocations: 235.1 MB / 242.2 MB, free: 15.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.393e-05/4.408e-05, allocations: 7.938 kB / 299.5 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3852/0.3853, allocations: 54.84 MB / 354.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1979/0.5833, allocations: 104.9 MB / 459.2 MB, free: 9.383 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/0.5837, allocations: 79.95 kB / 459.3 MB, free: 9.305 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.51/2.094, allocations: 239.8 MB / 0.6828 GB, free: 32.98 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.364e-06/2.094, allocations: 0 / 0.6828 GB, free: 32.98 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008496/2.095, allocations: 378.6 kB / 0.6831 GB, free: 32.97 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.06552/2.16, allocations: 15.62 MB / 0.6984 GB, free: 27.84 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.618e-05/2.161, allocations: 13.52 kB / 0.6984 GB, free: 27.84 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0702/2.231, allocations: 8.286 MB / 0.7065 GB, free: 26.8 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05187/2.283, allocations: 12.4 MB / 0.7186 GB, free: 25.41 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00164/2.284, allocations: 0.6421 MB / 0.7192 GB, free: 25.41 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01811/2.303, allocations: 1.161 MB / 0.7203 GB, free: 25.39 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.07852/2.381, allocations: 22.93 MB / 0.7427 GB, free: 25.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09556/2.477, allocations: 33.56 MB / 0.7755 GB, free: 13.73 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001282/2.478, allocations: 146.8 kB / 0.7756 GB, free: 13.72 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007401/2.486, allocations: 77.25 kB / 0.7757 GB, free: 13.71 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004993/2.491, allocations: 2.388 MB / 0.7781 GB, free: 13.3 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6576/3.148, allocations: 141.5 MB / 0.9163 GB, free: 20.98 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01609/3.164, allocations: 9.903 MB / 0.9259 GB, free: 18.62 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01159/3.176, allocations: 6.614 MB / 0.9324 GB, free: 18.58 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003877/3.18, allocations: 2.578 MB / 0.9349 GB, free: 16.58 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001031/3.18, allocations: 78.48 kB / 0.935 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=409): time 1.033e-05/3.18, allocations: 7.047 kB / 0.935 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=523): time 1.536/4.716, allocations: 234.2 MB / 1.164 GB, free: 105.3 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/4.716, allocations: 283.1 kB / 1.164 GB, free: 105 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01953/4.736, allocations: 7.85 MB / 1.172 GB, free: 102.1 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.002635/4.738, allocations: 25.7 kB / 1.172 GB, free: 102.1 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.008586/4.747, allocations: 10.82 MB / 1.182 GB, free: 93.91 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00471/4.752, allocations: 1.951 MB / 1.184 GB, free: 92.48 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004411/4.756, allocations: 3.438 kB / 1.184 GB, free: 92.48 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.002194/4.759, allocations: 1.056 MB / 1.185 GB, free: 91.86 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03087/4.789, allocations: 15.52 MB / 1.2 GB, free: 85.11 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03793/4.827, allocations: 26.21 MB / 1.226 GB, free: 63.91 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0382/4.866, allocations: 19.64 MB / 1.245 GB, free: 51.45 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004434/4.866, allocations: 115.6 kB / 1.245 GB, free: 51.34 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2273) (initialization): time 0.5121/5.378, allocations: 40.07 MB / 1.284 GB, free: 97.18 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002896/5.379, allocations: 171.4 kB / 1.285 GB, free: 97.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006624/5.379, allocations: 383.4 kB / 1.285 GB, free: 97.18 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002824/5.382, allocations: 0.9215 MB / 1.286 GB, free: 97.16 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04004/5.422, allocations: 5.388 MB / 1.291 GB, free: 97.04 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008995/5.431, allocations: 5.98 MB / 1.297 GB, free: 94.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03045/5.462, allocations: 1.833 MB / 1.299 GB, free: 94.34 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005614/5.467, allocations: 1.049 MB / 1.3 GB, free: 94.34 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.00921/5.477, allocations: 1.007 MB / 1.301 GB, free: 93.72 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06003/5.537, allocations: 27.6 MB / 1.328 GB, free: 93.55 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004607/5.541, allocations: 0.8279 MB / 1.328 GB, free: 93.55 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06949/5.611, allocations: 30.2 MB / 1.358 GB, free: 81.41 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002513/5.611, allocations: 93.56 kB / 1.358 GB, free: 81.4 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.811e-05/5.611, allocations: 4.062 kB / 1.358 GB, free: 81.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001434/5.611, allocations: 25.78 kB / 1.358 GB, free: 81.4 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.146/5.757, allocations: 69.79 MB / 1.426 GB, free: 39.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.883e-05/5.757, allocations: 7.188 kB / 1.426 GB, free: 39.91 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02359/5.781, allocations: 2.164 MB / 1.428 GB, free: 38.55 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001646/5.783, allocations: 315.7 kB / 1.429 GB, free: 38.31 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002359/5.785, allocations: 23.75 kB / 1.429 GB, free: 38.29 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005848/5.791, allocations: 4.114 MB / 1.433 GB, free: 34.31 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/5.791, allocations: 6.469 kB / 1.433 GB, free: 34.3 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5547/6.346, allocations: 52.77 MB / 1.484 GB, free: 96.72 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01418/6.36, allocations: 3.9 MB / 1.488 GB, free: 96.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006991/6.367, allocations: 11.03 kB / 1.488 GB, free: 96.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.03113/6.398, allocations: 1.563 MB / 1.49 GB, free: 96.63 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005907/6.404, allocations: 273.2 kB / 1.49 GB, free: 96.62 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003676/6.408, allocations: 140.4 kB / 1.49 GB, free: 96.62 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01614/6.424, allocations: 5.205 MB / 1.495 GB, free: 96.38 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.489e-06/6.424, allocations: 0 / 1.495 GB, free: 96.38 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02733/6.452, allocations: 3.893 MB / 1.499 GB, free: 96.38 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.1012/6.553, allocations: 51.95 MB / 1.55 GB, free: 84.52 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.06771/6.621, allocations: 34.24 MB / 1.583 GB, free: 70.61 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.316e-05/6.621, allocations: 4.531 kB / 1.583 GB, free: 70.61 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.03766/6.658, allocations: 14.87 MB / 1.598 GB, free: 63.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0142/6.673, allocations: 1.155 MB / 1.599 GB, free: 63.3 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1897/6.862, allocations: 47.22 MB / 1.645 GB, free: 26.94 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04203/6.904, allocations: 11.37 MB / 1.656 GB, free: 18.68 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.03808/6.943, allocations: 7.492 MB / 1.663 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02552/6.968, allocations: 7.873 MB / 1.671 GB, free: 6.273 MB / 0.5573 GB Notification: Performance of SimCode: time 2.094e-06/6.968, allocations: 0 / 1.671 GB, free: 6.273 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.508/8.477, allocations: 269.6 MB / 1.934 GB, free: 68.03 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002423/8.477, allocations: 149.3 kB / 1.934 GB, free: 67.83 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/19.42, allocations: 3.938 kB / 1.934 GB, free: 67.83 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