Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.398/2.398, allocations: 270 MB / 282.6 MB, free: 1.953 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.168e-05/3.157e-05, allocations: 4 kB / 347 MB, free: 3.234 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4228/0.4229, allocations: 61.88 MB / 408.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1972/0.6201, allocations: 105.7 MB / 0.5025 GB, free: 0.918 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.6205, allocations: 83.89 kB / 0.5026 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6797/1.3, allocations: 75.8 MB / 0.5766 GB, free: 64.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.974e-06/1.3, allocations: 0 / 0.5766 GB, free: 64.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001969/1.301, allocations: 67.94 kB / 0.5767 GB, free: 64.18 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.01239/1.313, allocations: 3.363 MB / 0.58 GB, free: 60.76 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/1.313, allocations: 8.031 kB / 0.58 GB, free: 60.75 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002487/1.315, allocations: 0.6469 MB / 0.5806 GB, free: 60.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03215/1.348, allocations: 4.273 MB / 0.5848 GB, free: 55.81 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01546/1.363, allocations: 4.119 MB / 0.5888 GB, free: 51.63 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002839/1.364, allocations: 262.8 kB / 0.5891 GB, free: 51.37 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001904/1.365, allocations: 347.8 kB / 0.5894 GB, free: 51.03 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02201/1.387, allocations: 8.453 MB / 0.5977 GB, free: 41.61 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002432/1.388, allocations: 63.47 kB / 0.5977 GB, free: 41.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001318/1.389, allocations: 171.8 kB / 0.5979 GB, free: 41.38 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001596/1.391, allocations: 0.8216 MB / 0.5987 GB, free: 40.55 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01933/1.41, allocations: 6.569 MB / 0.6051 GB, free: 33.97 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0559/1.466, allocations: 40.96 MB / 0.6451 GB, free: 7.598 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01258/1.479, allocations: 2.385 MB / 0.6474 GB, free: 5.062 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003593/1.482, allocations: 0.9991 MB / 0.6484 GB, free: 4.051 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008118/1.483, allocations: 319.2 kB / 0.6487 GB, free: 3.684 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.358e-05/1.483, allocations: 46.48 kB / 0.6488 GB, free: 3.629 MB / 458.7 MB Notification: Performance of pre-optimization done (n=104): time 7.705e-06/1.483, allocations: 8 kB / 0.6488 GB, free: 3.621 MB / 458.7 MB Notification: Performance of matching and sorting (n=118): time 0.08405/1.567, allocations: 6.975 MB / 0.6556 GB, free: 12.55 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/1.568, allocations: 196.4 kB / 0.6558 GB, free: 12.31 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008117/1.576, allocations: 3.347 MB / 0.659 GB, free: 8.977 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003532/1.576, allocations: 41.7 kB / 0.6591 GB, free: 8.93 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004637/1.581, allocations: 2.77 MB / 0.6618 GB, free: 6.121 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001206/1.582, allocations: 0.4903 MB / 0.6623 GB, free: 5.625 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008326/1.583, allocations: 108 kB / 0.6624 GB, free: 5.52 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007819/1.584, allocations: 0.542 MB / 0.6629 GB, free: 4.969 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007053/1.591, allocations: 1.502 MB / 0.6644 GB, free: 3.461 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01258/1.604, allocations: 5.075 MB / 0.6693 GB, free: 12.56 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01113/1.615, allocations: 2.779 MB / 0.672 GB, free: 9.781 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001721/1.615, allocations: 36 kB / 0.6721 GB, free: 9.746 MB / 490.7 MB Notification: Performance of matching and sorting (n=709) (initialization): time 0.029/1.644, allocations: 6.021 MB / 0.6779 GB, free: 3.727 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001629/1.644, allocations: 63.98 kB / 0.678 GB, free: 3.664 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002842/1.645, allocations: 128 kB / 0.6781 GB, free: 3.539 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001851/1.646, allocations: 352.7 kB / 0.6785 GB, free: 3.191 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00967/1.656, allocations: 1.248 MB / 0.6797 GB, free: 1.941 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005182/1.661, allocations: 2.731 MB / 0.6823 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0061/1.668, allocations: 287.5 kB / 0.6826 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001368/1.669, allocations: 348 kB / 0.6829 GB, free: 14.45 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[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],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (674): * Single equations (assignments): 670 * 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.001812/1.671, allocations: 0.5369 MB / 0.6835 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008718/1.672, allocations: 315.8 kB / 0.6838 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00455/1.676, allocations: 1.334 MB / 0.6851 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.316e-05/1.676, allocations: 12 kB / 0.6851 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/1.676, allocations: 4 kB / 0.6851 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.793e-05/1.676, allocations: 7.969 kB / 0.6851 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01726/1.694, allocations: 4.774 MB / 0.6898 GB, free: 7.383 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.475e-05/1.694, allocations: 0 / 0.6898 GB, free: 7.383 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/1.695, allocations: 167.8 kB / 0.6899 GB, free: 7.219 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008785/1.696, allocations: 156.7 kB / 0.6901 GB, free: 7.062 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001882/1.697, allocations: 23.98 kB / 0.6901 GB, free: 7.039 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003794/1.7, allocations: 2.136 MB / 0.6922 GB, free: 4.773 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/1.7, allocations: 8.109 kB / 0.6922 GB, free: 4.766 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007803/1.708, allocations: 3.177 MB / 0.6953 GB, free: 1.539 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00118/1.71, allocations: 364.9 kB / 0.6956 GB, free: 1.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008296/1.71, allocations: 19.95 kB / 0.6957 GB, free: 1.141 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00241/1.713, allocations: 47.94 kB / 0.6957 GB, free: 1.094 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003668/1.713, allocations: 64.42 kB / 0.6958 GB, free: 1.031 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/1.713, allocations: 35.98 kB / 0.6958 GB, free: 0.9961 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006816/1.72, allocations: 2.305 MB / 0.698 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.001e-06/1.72, allocations: 4 kB / 0.6981 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006527/1.727, allocations: 0.8007 MB / 0.6988 GB, free: 13.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.00816/1.735, allocations: 4.046 MB / 0.7028 GB, free: 9.809 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009407/1.744, allocations: 3.516 MB / 0.7062 GB, free: 6.309 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/1.745, allocations: 0 / 0.7062 GB, free: 6.309 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00201/1.747, allocations: 0.8743 MB / 0.7071 GB, free: 5.422 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002823/1.749, allocations: 362.1 kB / 0.7074 GB, free: 5.066 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3807/2.13, allocations: 7.356 MB / 0.7146 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00615/2.136, allocations: 2.885 MB / 0.7174 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003664/2.14, allocations: 1.557 MB / 0.7189 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.362e-06/2.14, allocations: 0 / 0.7189 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.951/6.091, allocations: 81.29 MB / 0.7983 GB, free: 91.62 MB / 0.5105 GB