Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.552/2.552, allocations: 270 MB / 283.6 MB, free: 3.133 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.909e-05/4.918e-05, allocations: 9.766 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1661, allocations: 61.88 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6037/0.7699, allocations: 105.7 MB / 0.5039 GB, free: 14.37 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.7703, allocations: 79.94 kB / 0.504 GB, free: 14.29 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3587/1.129, allocations: 75.81 MB / 0.578 GB, free: 2.008 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.455e-06/1.129, allocations: 0 / 0.578 GB, free: 2.008 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002493/1.129, allocations: 64 kB / 0.5781 GB, free: 1.945 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.01436/1.144, allocations: 3.357 MB / 0.5814 GB, free: 14.53 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/1.144, allocations: 12.03 kB / 0.5814 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003237/1.147, allocations: 0.643 MB / 0.582 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03403/1.181, allocations: 4.277 MB / 0.5862 GB, free: 9.574 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01872/1.2, allocations: 4.123 MB / 0.5902 GB, free: 5.387 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004357/1.2, allocations: 262.8 kB / 0.5905 GB, free: 5.129 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002211/1.203, allocations: 347.8 kB / 0.5908 GB, free: 4.789 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02699/1.23, allocations: 8.457 MB / 0.5991 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003318/1.23, allocations: 55.47 kB / 0.5991 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00201/1.232, allocations: 171.9 kB / 0.5993 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002135/1.234, allocations: 0.8255 MB / 0.6001 GB, free: 10.31 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02149/1.256, allocations: 6.577 MB / 0.6065 GB, free: 3.727 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4254/1.681, allocations: 40.94 MB / 0.6465 GB, free: 97.43 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008243/1.69, allocations: 2.384 MB / 0.6488 GB, free: 96.77 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00241/1.692, allocations: 0.9979 MB / 0.6498 GB, free: 96.73 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005272/1.693, allocations: 331 kB / 0.6501 GB, free: 96.45 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/1.693, allocations: 54.77 kB / 0.6502 GB, free: 96.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=104): time 5.38e-06/1.693, allocations: 0 / 0.6502 GB, free: 96.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=118): time 0.03267/1.725, allocations: 6.979 MB / 0.657 GB, free: 94.15 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.182e-05/1.725, allocations: 191 kB / 0.6572 GB, free: 93.93 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009245/1.735, allocations: 3.343 MB / 0.6604 GB, free: 93.61 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003238/1.735, allocations: 40.09 kB / 0.6605 GB, free: 93.57 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00287/1.738, allocations: 2.824 MB / 0.6632 GB, free: 92.22 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008209/1.739, allocations: 0.4931 MB / 0.6637 GB, free: 91.97 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006783/1.74, allocations: 111.5 kB / 0.6638 GB, free: 91.97 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004449/1.74, allocations: 0.5336 MB / 0.6643 GB, free: 91.66 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003762/1.744, allocations: 1.499 MB / 0.6658 GB, free: 91.64 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005925/1.75, allocations: 5.076 MB / 0.6708 GB, free: 86.73 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005986/1.756, allocations: 2.787 MB / 0.6735 GB, free: 85.97 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001337/1.756, allocations: 38.22 kB / 0.6735 GB, free: 85.97 MB / 0.5105 GB Notification: Performance of matching and sorting (n=709) (initialization): time 0.01674/1.773, allocations: 6.124 MB / 0.6795 GB, free: 84.08 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/1.773, allocations: 64.73 kB / 0.6796 GB, free: 84.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002071/1.773, allocations: 136.8 kB / 0.6797 GB, free: 84.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00125/1.774, allocations: 362.5 kB / 0.68 GB, free: 84.03 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007053/1.782, allocations: 1.242 MB / 0.6812 GB, free: 83.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004033/1.786, allocations: 2.718 MB / 0.6839 GB, free: 81.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005889/1.792, allocations: 279.6 kB / 0.6842 GB, free: 81.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00109/1.793, allocations: 351.3 kB / 0.6845 GB, free: 81.84 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.001402/1.794, allocations: 0.5405 MB / 0.685 GB, free: 81.39 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009373/1.795, allocations: 304.8 kB / 0.6853 GB, free: 81.22 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003858/1.799, allocations: 1.342 MB / 0.6866 GB, free: 80.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.677e-05/1.799, allocations: 12.09 kB / 0.6866 GB, free: 80.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/1.799, allocations: 3.812 kB / 0.6866 GB, free: 80.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.111e-05/1.799, allocations: 3.938 kB / 0.6866 GB, free: 80.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0143/1.813, allocations: 4.768 MB / 0.6913 GB, free: 78.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/1.813, allocations: 3.656 kB / 0.6913 GB, free: 78.88 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/1.815, allocations: 171.9 kB / 0.6915 GB, free: 78.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008021/1.816, allocations: 155 kB / 0.6916 GB, free: 78.82 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001606/1.816, allocations: 18.97 kB / 0.6916 GB, free: 78.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003067/1.819, allocations: 2.152 MB / 0.6937 GB, free: 77.17 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/1.819, allocations: 0 / 0.6937 GB, free: 77.17 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006152/1.825, allocations: 3.173 MB / 0.6968 GB, free: 75.67 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001181/1.827, allocations: 375.6 kB / 0.6972 GB, free: 75.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000552/1.827, allocations: 20.42 kB / 0.6972 GB, free: 75.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001782/1.829, allocations: 48.22 kB / 0.6973 GB, free: 75.35 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/1.829, allocations: 57.03 kB / 0.6973 GB, free: 75.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/1.829, allocations: 38.77 kB / 0.6974 GB, free: 75.34 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004776/1.834, allocations: 2.306 MB / 0.6996 GB, free: 74.54 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.71e-07/1.834, allocations: 3.938 kB / 0.6996 GB, free: 74.54 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006238/1.84, allocations: 0.7998 MB / 0.7004 GB, free: 74.43 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.006504/1.847, allocations: 4.03 MB / 0.7043 GB, free: 72.17 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007877/1.855, allocations: 3.533 MB / 0.7078 GB, free: 70.95 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/1.855, allocations: 0 / 0.7078 GB, free: 70.95 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00188/1.857, allocations: 0.8675 MB / 0.7086 GB, free: 70.58 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003044/1.86, allocations: 361.2 kB / 0.709 GB, free: 70.41 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02251/1.882, allocations: 6.962 MB / 0.7158 GB, free: 67.88 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005577/1.888, allocations: 2.877 MB / 0.7186 GB, free: 66.65 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007674/1.896, allocations: 1.719 MB / 0.7203 GB, free: 65.58 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0035/1.899, allocations: 1.516 MB / 0.7217 GB, free: 64.18 MB / 0.5105 GB Notification: Performance of SimCode: time 1.413e-06/1.899, allocations: 0 / 0.7217 GB, free: 64.18 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1467/2.046, allocations: 62.17 MB / 0.7824 GB, free: 9.918 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002008/2.046, allocations: 168.2 kB / 0.7826 GB, free: 9.691 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.14/7.186, allocations: 4 kB / 0.7826 GB, free: 9.688 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat