Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.507/2.507, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.653e-05/4.678e-05, allocations: 4 kB / 348.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1444, allocations: 61.88 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5392/0.6836, allocations: 113.2 MB / 0.5112 GB, free: 6.777 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.684, allocations: 80.89 kB / 0.5113 GB, free: 6.699 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.279/1.963, allocations: 241.3 MB / 0.7469 GB, free: 55.89 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.585e-06/1.963, allocations: 0 / 0.7469 GB, free: 55.89 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001608/1.965, allocations: 367.9 kB / 0.7473 GB, free: 55.53 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5720 * Number of variables: 5720 Notification: Performance of Generate backend data structure: time 0.06209/2.027, allocations: 15.18 MB / 0.7621 GB, free: 40.24 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/2.027, allocations: 8.031 kB / 0.7621 GB, free: 40.23 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01308/2.04, allocations: 2.947 MB / 0.765 GB, free: 37.27 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07129/2.112, allocations: 8.17 MB / 0.773 GB, free: 29.07 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04826/2.16, allocations: 11.85 MB / 0.7845 GB, free: 17.12 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001601/2.162, allocations: 1.457 MB / 0.786 GB, free: 15.67 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009309/2.171, allocations: 1.91 MB / 0.7878 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 1.006/3.177, allocations: 40.7 MB / 0.8276 GB, free: 61.97 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001729/3.179, allocations: 145.9 kB / 0.8277 GB, free: 61.97 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009534/3.188, allocations: 0.8594 MB / 0.8286 GB, free: 61.97 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006218/3.194, allocations: 2.203 MB / 0.8307 GB, free: 61.94 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1214/3.316, allocations: 31.75 MB / 0.8617 GB, free: 61.86 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2531/3.569, allocations: 142.4 MB / 1.001 GB, free: 1.793 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1314/3.701, allocations: 23.27 MB / 1.024 GB, free: 10.99 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01393/3.714, allocations: 6.535 MB / 1.03 GB, free: 4.438 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5146/4.229, allocations: 26.52 MB / 1.056 GB, free: 124.6 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.059e-05/4.229, allocations: 74.42 kB / 1.056 GB, free: 124.5 MB / 0.573 GB Notification: Performance of pre-optimization done (n=336): time 9.207e-06/4.229, allocations: 0 / 1.056 GB, free: 124.5 MB / 0.573 GB Notification: Performance of matching and sorting (n=450): time 2.202/6.432, allocations: 279.1 MB / 1.328 GB, free: 101 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/6.432, allocations: 280 kB / 1.329 GB, free: 100.7 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02189/6.454, allocations: 8.635 MB / 1.337 GB, free: 97.43 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0025/6.456, allocations: 92.45 kB / 1.337 GB, free: 97.35 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.008541/6.465, allocations: 10.42 MB / 1.347 GB, free: 89.47 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004386/6.469, allocations: 1.76 MB / 1.349 GB, free: 88.22 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004206/6.474, allocations: 322 kB / 1.349 GB, free: 87.97 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.002137/6.476, allocations: 0.9982 MB / 1.35 GB, free: 87.37 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03319/6.509, allocations: 15.44 MB / 1.365 GB, free: 80.77 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04036/6.549, allocations: 25.48 MB / 1.39 GB, free: 57.38 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03901/6.588, allocations: 19.42 MB / 1.409 GB, free: 41.1 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000349/6.589, allocations: 108 kB / 1.409 GB, free: 41 MB / 0.573 GB Notification: Performance of matching and sorting (n=2100) (initialization): time 0.09708/6.686, allocations: 39.69 MB / 1.448 GB, free: 6.105 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002674/6.686, allocations: 160 kB / 1.448 GB, free: 5.949 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005823/6.687, allocations: 360 kB / 1.449 GB, free: 5.598 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00247/6.689, allocations: 0.8478 MB / 1.449 GB, free: 4.832 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0397/6.729, allocations: 5.11 MB / 1.454 GB, free: 0.9531 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6304/7.36, allocations: 5.631 MB / 1.46 GB, free: 94.46 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03266/7.392, allocations: 2.109 MB / 1.462 GB, free: 94.46 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006595/7.399, allocations: 0.9749 MB / 1.463 GB, free: 94.46 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1644 * Number of states: 0 () * Number of discrete variables: 58 (relativeSensor.arrow.arrowLine.twoHeadedArrow,relativeSensor.arrow.headAtOrigin,relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrow.arrowLine.twoHeadedArrow,relative_b1.arrow.headAtOrigin,relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrow.arrowLine.twoHeadedArrow,relative_b2.arrow.headAtOrigin,relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrow.arrowLine.twoHeadedArrow,relative_a2.arrow.headAtOrigin,relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrow.arrowLine.twoHeadedArrow,relative_a1.arrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (2044): * Single equations (assignments): 2034 * 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.009934/7.409, allocations: 1.347 MB / 1.464 GB, free: 94.14 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004748/7.414, allocations: 0.8363 MB / 1.465 GB, free: 94.14 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07526/7.489, allocations: 29.5 MB / 1.494 GB, free: 93.89 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002174/7.489, allocations: 90.97 kB / 1.494 GB, free: 93.89 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.567e-05/7.489, allocations: 3.781 kB / 1.494 GB, free: 93.89 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000129/7.49, allocations: 27.94 kB / 1.494 GB, free: 93.89 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1549/7.644, allocations: 71.02 MB / 1.563 GB, free: 56.68 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.411e-05/7.645, allocations: 6.812 kB / 1.563 GB, free: 56.68 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02364/7.668, allocations: 2.033 MB / 1.565 GB, free: 56.65 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00176/7.67, allocations: 313.5 kB / 1.566 GB, free: 56.58 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002649/7.673, allocations: 81 kB / 1.566 GB, free: 56.52 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006954/7.68, allocations: 4.295 MB / 1.57 GB, free: 53.32 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/7.68, allocations: 0 / 1.57 GB, free: 53.32 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1055/7.785, allocations: 49.66 MB / 1.618 GB, free: 23.2 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00283/7.788, allocations: 0.7958 MB / 1.619 GB, free: 22.86 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005401/7.794, allocations: 71.59 kB / 1.619 GB, free: 22.79 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02082/7.815, allocations: 1.614 MB / 1.621 GB, free: 21.93 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003421/7.818, allocations: 235.5 kB / 1.621 GB, free: 21.79 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002409/7.82, allocations: 119.5 kB / 1.621 GB, free: 21.68 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01635/7.837, allocations: 5.935 MB / 1.627 GB, free: 16.48 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.153e-06/7.837, allocations: 0 / 1.627 GB, free: 16.48 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0267/7.864, allocations: 4.149 MB / 1.631 GB, free: 12.35 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 (404): * Single equations (assignments): 394 * 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.6311/8.495, allocations: 52.48 MB / 1.682 GB, free: 129.5 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.0776/8.572, allocations: 33.61 MB / 1.715 GB, free: 128.9 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/8.573, allocations: 1.938 kB / 1.715 GB, free: 128.9 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.02937/8.602, allocations: 14.59 MB / 1.729 GB, free: 122.1 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01179/8.614, allocations: 1.331 MB / 1.731 GB, free: 121.7 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1382/8.752, allocations: 46.43 MB / 1.776 GB, free: 104 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03218/8.784, allocations: 10.99 MB / 1.787 GB, free: 100.5 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 0.03563/8.82, allocations: 7.168 MB / 1.794 GB, free: 98.57 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02894/8.849, allocations: 7.496 MB / 1.801 GB, free: 91.59 MB / 0.6043 GB Notification: Performance of SimCode: time 1.964e-06/8.849, allocations: 0 / 1.801 GB, free: 91.59 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.135/9.984, allocations: 264.1 MB / 2.059 GB, free: 42.71 MB / 0.6043 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002478/9.984, allocations: 182.2 kB / 2.059 GB, free: 42.48 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/21.92, allocations: 4 kB / 2.059 GB, free: 42.48 MB / 0.6043 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat