Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.399/2.399, allocations: 270 MB / 283.6 MB, free: 3.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.969e-05/5.978e-05, allocations: 5.688 kB / 348.5 MB, free: 10.7 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1371, allocations: 61.88 MB / 410.4 MB, free: 12.87 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5311/0.6683, allocations: 105.7 MB / 0.5039 GB, free: 14.22 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.6687, allocations: 75.97 kB / 0.504 GB, free: 14.14 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3212/0.9899, allocations: 75.81 MB / 0.5781 GB, free: 1.859 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.9899, allocations: 0 / 0.5781 GB, free: 1.859 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002277/0.9902, allocations: 64 kB / 0.5781 GB, free: 1.797 MB / 490.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.0137/1.004, allocations: 3.368 MB / 0.5814 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/1.004, allocations: 12.02 kB / 0.5814 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002789/1.007, allocations: 0.6391 MB / 0.582 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03877/1.046, allocations: 4.277 MB / 0.5862 GB, free: 9.422 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01747/1.063, allocations: 4.115 MB / 0.5902 GB, free: 5.242 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003672/1.064, allocations: 266.8 kB / 0.5905 GB, free: 4.98 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001863/1.065, allocations: 347.8 kB / 0.5908 GB, free: 4.641 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02383/1.089, allocations: 8.457 MB / 0.5991 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000216/1.09, allocations: 55.47 kB / 0.5991 GB, free: 11.16 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001193/1.091, allocations: 175.9 kB / 0.5993 GB, free: 10.98 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001895/1.093, allocations: 0.8216 MB / 0.6001 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02023/1.113, allocations: 6.573 MB / 0.6065 GB, free: 3.578 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4496/1.563, allocations: 40.95 MB / 0.6465 GB, free: 97.16 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008289/1.571, allocations: 2.377 MB / 0.6488 GB, free: 96.5 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002403/1.573, allocations: 1.002 MB / 0.6498 GB, free: 96.47 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005528/1.574, allocations: 326.1 kB / 0.6501 GB, free: 96.18 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.027e-05/1.574, allocations: 48.34 kB / 0.6502 GB, free: 96.14 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=104): time 5.019e-06/1.574, allocations: 1.188 kB / 0.6502 GB, free: 96.14 MB / 0.5105 GB Notification: Performance of matching and sorting (n=118): time 0.03274/1.607, allocations: 6.98 MB / 0.657 GB, free: 93.89 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.274e-05/1.607, allocations: 193.3 kB / 0.6572 GB, free: 93.67 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008906/1.616, allocations: 3.345 MB / 0.6604 GB, free: 93.34 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003066/1.616, allocations: 44.95 kB / 0.6605 GB, free: 93.31 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002941/1.619, allocations: 2.821 MB / 0.6632 GB, free: 91.97 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008141/1.62, allocations: 498.6 kB / 0.6637 GB, free: 91.72 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006658/1.621, allocations: 105.6 kB / 0.6638 GB, free: 91.72 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003761/1.621, allocations: 0.5332 MB / 0.6643 GB, free: 91.41 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00377/1.625, allocations: 1.507 MB / 0.6658 GB, free: 91.39 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00604/1.631, allocations: 5.08 MB / 0.6708 GB, free: 86.69 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005998/1.637, allocations: 2.78 MB / 0.6735 GB, free: 85.94 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001435/1.637, allocations: 37.19 kB / 0.6735 GB, free: 85.94 MB / 0.5105 GB Notification: Performance of matching and sorting (n=709) (initialization): time 0.01692/1.654, allocations: 6.133 MB / 0.6795 GB, free: 84.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/1.654, allocations: 63.28 kB / 0.6796 GB, free: 84.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001754/1.654, allocations: 133.8 kB / 0.6797 GB, free: 84.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001156/1.656, allocations: 352 kB / 0.68 GB, free: 83.97 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007242/1.663, allocations: 1.243 MB / 0.6812 GB, free: 83.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004211/1.667, allocations: 2.722 MB / 0.6839 GB, free: 81.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006085/1.673, allocations: 286.1 kB / 0.6842 GB, free: 81.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001135/1.675, allocations: 351.3 kB / 0.6845 GB, free: 81.77 MB / 0.5105 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.001035/1.676, allocations: 0.534 MB / 0.685 GB, free: 81.33 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009633/1.677, allocations: 308.8 kB / 0.6853 GB, free: 81.16 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003719/1.68, allocations: 1.337 MB / 0.6866 GB, free: 80.64 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-05/1.68, allocations: 18.52 kB / 0.6867 GB, free: 80.64 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/1.68, allocations: 3.844 kB / 0.6867 GB, free: 80.64 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.102e-05/1.68, allocations: 3.609 kB / 0.6867 GB, free: 80.64 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01451/1.695, allocations: 4.772 MB / 0.6913 GB, free: 78.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.601e-05/1.695, allocations: 4.031 kB / 0.6913 GB, free: 78.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/1.697, allocations: 162.6 kB / 0.6915 GB, free: 78.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000794/1.697, allocations: 155.9 kB / 0.6916 GB, free: 78.76 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001705/1.698, allocations: 29.7 kB / 0.6917 GB, free: 78.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00321/1.701, allocations: 2.143 MB / 0.6937 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.701, allocations: 0 / 0.6937 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006525/1.707, allocations: 3.168 MB / 0.6968 GB, free: 75.61 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001257/1.709, allocations: 370 kB / 0.6972 GB, free: 75.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001012/1.71, allocations: 22.31 kB / 0.6972 GB, free: 75.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002779/1.713, allocations: 57.17 kB / 0.6973 GB, free: 75.29 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004463/1.713, allocations: 66.39 kB / 0.6973 GB, free: 75.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/1.713, allocations: 28.34 kB / 0.6974 GB, free: 75.27 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005955/1.719, allocations: 2.311 MB / 0.6996 GB, free: 74.47 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.92e-07/1.719, allocations: 0 / 0.6996 GB, free: 74.47 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006511/1.726, allocations: 0.8008 MB / 0.7004 GB, free: 74.37 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.006786/1.733, allocations: 4.032 MB / 0.7043 GB, free: 72.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007891/1.741, allocations: 3.524 MB / 0.7078 GB, free: 70.88 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/1.741, allocations: 1.422 kB / 0.7078 GB, free: 70.88 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001795/1.742, allocations: 0.8656 MB / 0.7086 GB, free: 70.52 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002848/1.745, allocations: 355.1 kB / 0.709 GB, free: 70.35 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02235/1.768, allocations: 6.955 MB / 0.7158 GB, free: 67.82 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005489/1.773, allocations: 2.884 MB / 0.7186 GB, free: 66.47 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007881/1.781, allocations: 1.719 MB / 0.7203 GB, free: 65.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003628/1.785, allocations: 1.514 MB / 0.7217 GB, free: 64 MB / 0.5105 GB Notification: Performance of SimCode: time 1.723e-06/1.785, allocations: 0 / 0.7217 GB, free: 64 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1444/1.929, allocations: 62.18 MB / 0.7825 GB, free: 9.699 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002593/1.93, allocations: 160.2 kB / 0.7826 GB, free: 9.48 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.833/6.762, allocations: 0 / 0.7826 GB, free: 9.48 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat