Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.434/2.434, allocations: 270 MB / 282.6 MB, free: 1.953 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.562e-05/3.535e-05, allocations: 4 kB / 347.1 MB, free: 3.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3977/0.3977, allocations: 61.86 MB / 408.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1958/0.5935, allocations: 106.2 MB / 0.5031 GB, free: 356 kB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.5938, allocations: 79.95 kB / 0.5031 GB, free: 276 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6719/1.266, allocations: 72.04 MB / 0.5735 GB, free: 67.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.266, allocations: 0 / 0.5735 GB, free: 67.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001831/1.266, allocations: 60 kB / 0.5736 GB, free: 67.39 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.01197/1.278, allocations: 3.172 MB / 0.5767 GB, free: 64.16 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/1.278, allocations: 8.031 kB / 0.5767 GB, free: 64.15 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002542/1.281, allocations: 0.5976 MB / 0.5772 GB, free: 63.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03131/1.312, allocations: 4.227 MB / 0.5814 GB, free: 59.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01526/1.327, allocations: 4.006 MB / 0.5853 GB, free: 55.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002382/1.328, allocations: 246.2 kB / 0.5855 GB, free: 54.99 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001626/1.329, allocations: 315.8 kB / 0.5858 GB, free: 54.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01852/1.348, allocations: 7.912 MB / 0.5935 GB, free: 45.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001889/1.348, allocations: 59.41 kB / 0.5936 GB, free: 45.76 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008408/1.349, allocations: 163.9 kB / 0.5938 GB, free: 45.6 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001447/1.35, allocations: 0.7819 MB / 0.5945 GB, free: 44.81 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01671/1.367, allocations: 6.177 MB / 0.6006 GB, free: 38.62 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0497/1.417, allocations: 38.98 MB / 0.6386 GB, free: 14.29 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007817/1.425, allocations: 2.146 MB / 0.6407 GB, free: 12 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002476/1.427, allocations: 1.02 MB / 0.6417 GB, free: 10.96 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006084/1.428, allocations: 319.6 kB / 0.642 GB, free: 10.59 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/1.428, allocations: 43 kB / 0.6421 GB, free: 10.54 MB / 458.7 MB Notification: Performance of pre-optimization done (n=108): time 4.088e-06/1.428, allocations: 0 / 0.6421 GB, free: 10.54 MB / 458.7 MB Notification: Performance of matching and sorting (n=132): time 0.04601/1.474, allocations: 9.007 MB / 0.6509 GB, free: 1.41 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/1.474, allocations: 192.7 kB / 0.651 GB, free: 1.18 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008752/1.483, allocations: 3.215 MB / 0.6542 GB, free: 13.96 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003398/1.483, allocations: 41.7 kB / 0.6542 GB, free: 13.92 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003247/1.487, allocations: 2.558 MB / 0.6567 GB, free: 11.33 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001013/1.488, allocations: 0.5325 MB / 0.6572 GB, free: 10.79 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000715/1.488, allocations: 108 kB / 0.6573 GB, free: 10.68 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005267/1.489, allocations: 0.5259 MB / 0.6579 GB, free: 10.15 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00459/1.493, allocations: 1.541 MB / 0.6594 GB, free: 8.602 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008421/1.502, allocations: 4.855 MB / 0.6641 GB, free: 2.047 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007205/1.509, allocations: 2.75 MB / 0.6668 GB, free: 15.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001248/1.509, allocations: 36 kB / 0.6668 GB, free: 15.26 MB / 490.7 MB Notification: Performance of matching and sorting (n=680) (initialization): time 0.01815/1.527, allocations: 5.927 MB / 0.6726 GB, free: 9.332 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001217/1.528, allocations: 56 kB / 0.6727 GB, free: 9.277 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002065/1.528, allocations: 124 kB / 0.6728 GB, free: 9.156 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/1.529, allocations: 345.1 kB / 0.6731 GB, free: 8.816 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007735/1.537, allocations: 1.205 MB / 0.6743 GB, free: 7.609 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004889/1.542, allocations: 2.685 MB / 0.6769 GB, free: 4.789 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005803/1.548, allocations: 283.4 kB / 0.6772 GB, free: 4.512 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001367/1.549, allocations: 324 kB / 0.6775 GB, free: 4.195 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 29 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (645): * Single equations (assignments): 641 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001553/1.551, allocations: 0.5052 MB / 0.678 GB, free: 3.68 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008952/1.552, allocations: 312 kB / 0.6783 GB, free: 3.371 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005136/1.557, allocations: 1.576 MB / 0.6798 GB, free: 1.781 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.036e-05/1.557, allocations: 19.98 kB / 0.6798 GB, free: 1.762 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.016e-06/1.557, allocations: 0 / 0.6798 GB, free: 1.762 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.048e-05/1.557, allocations: 11.97 kB / 0.6799 GB, free: 1.75 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/1.574, allocations: 5.144 MB / 0.6849 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.007e-05/1.574, allocations: 4 kB / 0.6849 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002152/1.576, allocations: 195.7 kB / 0.6851 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008919/1.577, allocations: 160.6 kB / 0.6852 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002517/1.577, allocations: 24.06 kB / 0.6852 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003748/1.581, allocations: 2.144 MB / 0.6873 GB, free: 9.859 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.581, allocations: 0 / 0.6873 GB, free: 9.859 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008539/1.589, allocations: 3.605 MB / 0.6909 GB, free: 6.199 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/1.591, allocations: 364.9 kB / 0.6912 GB, free: 5.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009407/1.592, allocations: 23.98 kB / 0.6912 GB, free: 5.797 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002548/1.594, allocations: 59.92 kB / 0.6913 GB, free: 5.738 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004259/1.595, allocations: 80.8 kB / 0.6914 GB, free: 5.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/1.595, allocations: 36.05 kB / 0.6914 GB, free: 5.625 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006441/1.601, allocations: 2.238 MB / 0.6936 GB, free: 3.398 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.442e-06/1.601, allocations: 3.938 kB / 0.6936 GB, free: 3.395 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006174/1.607, allocations: 0.7734 MB / 0.6943 GB, free: 2.621 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009278/1.617, allocations: 4.521 MB / 0.6988 GB, free: 14.03 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00962/1.626, allocations: 3.614 MB / 0.7023 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/1.626, allocations: 0 / 0.7023 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00258/1.629, allocations: 1 MB / 0.7033 GB, free: 9.426 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003125/1.632, allocations: 350 kB / 0.7036 GB, free: 9.086 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0267/1.659, allocations: 7.167 MB / 0.7106 GB, free: 1.848 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3856/2.045, allocations: 2.747 MB / 0.7133 GB, free: 143.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003623/2.048, allocations: 1.494 MB / 0.7147 GB, free: 143.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.353e-06/2.048, allocations: 0 / 0.7147 GB, free: 143.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.136/6.185, allocations: 78.42 MB / 0.7913 GB, free: 99.66 MB / 0.5105 GB