Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.396/2.396, allocations: 270 MB / 282.6 MB, free: 1.824 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.851e-05/3.854e-05, allocations: 4 kB / 347.1 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3991/0.3992, allocations: 61.87 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2082/0.6074, allocations: 113.2 MB / 0.5098 GB, free: 9.34 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003005/0.6078, allocations: 75.95 kB / 0.5099 GB, free: 9.266 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.636/2.244, allocations: 241.3 MB / 0.7455 GB, free: 34.46 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.547e-06/2.244, allocations: 0 / 0.7455 GB, free: 34.46 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0007906/2.245, allocations: 366.1 kB / 0.7459 GB, free: 34.46 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.05973/2.304, allocations: 15.18 MB / 0.7607 GB, free: 29.52 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/2.305, allocations: 9.188 kB / 0.7607 GB, free: 29.52 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01317/2.318, allocations: 2.957 MB / 0.7636 GB, free: 29.34 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05622/2.374, allocations: 8.172 MB / 0.7716 GB, free: 28.34 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04231/2.416, allocations: 11.85 MB / 0.7831 GB, free: 26.97 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001648/2.418, allocations: 1.45 MB / 0.7845 GB, free: 26.93 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008652/2.427, allocations: 1.915 MB / 0.7864 GB, free: 26.92 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1753/2.602, allocations: 40.69 MB / 0.8262 GB, free: 20 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001522/2.604, allocations: 147.9 kB / 0.8263 GB, free: 19.98 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009516/2.613, allocations: 0.8581 MB / 0.8271 GB, free: 19.39 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005865/2.619, allocations: 2.202 MB / 0.8293 GB, free: 19.02 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1075/2.727, allocations: 31.76 MB / 0.8603 GB, free: 4.945 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7073/3.434, allocations: 143.2 MB / 1 GB, free: 32.21 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1076/3.542, allocations: 22.05 MB / 1.022 GB, free: 29.84 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01135/3.553, allocations: 6.542 MB / 1.028 GB, free: 29.8 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05772/3.611, allocations: 26.53 MB / 1.054 GB, free: 25.14 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.376e-05/3.611, allocations: 80.58 kB / 1.054 GB, free: 25.1 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=336): time 8.576e-06/3.611, allocations: 3.844 kB / 1.054 GB, free: 25.1 MB / 0.5886 GB Notification: Performance of matching and sorting (n=450): time 1.984/5.595, allocations: 279.7 MB / 1.327 GB, free: 78.3 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/5.595, allocations: 284.7 kB / 1.327 GB, free: 77.96 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02179/5.617, allocations: 8.631 MB / 1.336 GB, free: 69.61 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.002596/5.619, allocations: 95.58 kB / 1.336 GB, free: 69.52 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.007769/5.627, allocations: 10.2 MB / 1.346 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.004252/5.631, allocations: 1.76 MB / 1.348 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004207/5.636, allocations: 321.9 kB / 1.348 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.002057/5.638, allocations: 1.002 MB / 1.349 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0328/5.671, allocations: 15.44 MB / 1.364 GB, free: 41.03 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5673/6.238, allocations: 25.48 MB / 1.389 GB, free: 101.4 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04135/6.279, allocations: 19.41 MB / 1.408 GB, free: 101.3 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004642/6.28, allocations: 103.4 kB / 1.408 GB, free: 101.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2100) (initialization): time 0.09499/6.375, allocations: 39.46 MB / 1.446 GB, free: 95.15 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003577/6.375, allocations: 164.9 kB / 1.447 GB, free: 95.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000618/6.376, allocations: 359.2 kB / 1.447 GB, free: 95.15 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002657/6.379, allocations: 0.8469 MB / 1.448 GB, free: 95.07 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03818/6.417, allocations: 5.08 MB / 1.453 GB, free: 94.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008379/6.425, allocations: 5.614 MB / 1.458 GB, free: 90.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03001/6.455, allocations: 2.119 MB / 1.46 GB, free: 90.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005123/6.461, allocations: 0.9718 MB / 1.461 GB, free: 90.47 MB / 0.6042 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.009059/6.47, allocations: 1.349 MB / 1.463 GB, free: 89.61 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004024/6.474, allocations: 0.8282 MB / 1.463 GB, free: 89.61 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0681/6.542, allocations: 29.5 MB / 1.492 GB, free: 76.28 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001936/6.542, allocations: 89.81 kB / 1.492 GB, free: 76.27 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.168e-05/6.542, allocations: 3.531 kB / 1.492 GB, free: 76.27 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001093/6.542, allocations: 20.34 kB / 1.492 GB, free: 76.27 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1459/6.688, allocations: 71.03 MB / 1.562 GB, free: 25.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-05/6.688, allocations: 0 / 1.562 GB, free: 25.59 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02479/6.713, allocations: 2.031 MB / 1.564 GB, free: 24.35 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002209/6.715, allocations: 323 kB / 1.564 GB, free: 24.11 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003228/6.719, allocations: 75.38 kB / 1.564 GB, free: 24.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00961/6.728, allocations: 4.297 MB / 1.568 GB, free: 19.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/6.728, allocations: 3.938 kB / 1.568 GB, free: 19.88 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5708/7.299, allocations: 49.86 MB / 1.617 GB, free: 101 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002739/7.302, allocations: 0.7918 MB / 1.618 GB, free: 100.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005032/7.307, allocations: 69.41 kB / 1.618 GB, free: 100.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02031/7.327, allocations: 1.616 MB / 1.619 GB, free: 100.9 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003224/7.331, allocations: 233.7 kB / 1.62 GB, free: 100.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002144/7.333, allocations: 126.6 kB / 1.62 GB, free: 100.9 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.01539/7.348, allocations: 5.936 MB / 1.626 GB, free: 100.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 8.42e-07/7.348, allocations: 0 / 1.626 GB, free: 100.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.02476/7.373, allocations: 4.14 MB / 1.63 GB, free: 100.6 MB / 0.6042 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.1373/7.511, allocations: 50.57 MB / 1.679 GB, free: 80.91 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.1063/7.617, allocations: 33.61 MB / 1.712 GB, free: 67.29 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.647e-05/7.617, allocations: 6.922 kB / 1.712 GB, free: 67.29 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.04504/7.662, allocations: 14.58 MB / 1.726 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01651/7.679, allocations: 1.333 MB / 1.727 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1781/7.857, allocations: 48.38 MB / 1.775 GB, free: 15.46 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02929/7.886, allocations: 10.98 MB / 1.785 GB, free: 7.473 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02833/7.914, allocations: 7.615 MB / 1.793 GB, free: 388 kB / 0.6042 GB Notification: Performance of SimCode: time 1.813e-06/7.915, allocations: 4 kB / 1.793 GB, free: 384 kB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.131/17.05, allocations: 469.7 MB / 2.251 GB, free: 15.62 MB / 0.6823 GB