Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.15/2.15, allocations: 209.3 MB / 221.4 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.067e-05/4.079e-05, allocations: 7.984 kB / 273.2 MB, free: 168 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1089, allocations: 48.7 MB / 321.9 MB, free: 15.37 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5554/0.6644, allocations: 92.95 MB / 414.8 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003774/0.6648, allocations: 75.94 kB / 414.9 MB, free: 12.49 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9473/1.612, allocations: 116.6 MB / 0.519 GB, free: 97.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.455e-06/1.612, allocations: 3.969 kB / 0.519 GB, free: 97.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003479/1.613, allocations: 92.09 kB / 0.5191 GB, free: 97.11 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1910 * Number of variables: 1910 Notification: Performance of Generate backend data structure: time 0.0186/1.631, allocations: 4.443 MB / 0.5235 GB, free: 95.14 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.071e-05/1.631, allocations: 15 kB / 0.5235 GB, free: 95.14 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004878/1.636, allocations: 0.9569 MB / 0.5244 GB, free: 95.06 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02688/1.663, allocations: 3.652 MB / 0.528 GB, free: 94.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01743/1.681, allocations: 4.807 MB / 0.5327 GB, free: 94.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003669/1.681, allocations: 377.7 kB / 0.533 GB, free: 94.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002644/1.684, allocations: 0.4901 MB / 0.5335 GB, free: 94.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03157/1.715, allocations: 12.09 MB / 0.5453 GB, free: 92.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002026/1.715, allocations: 39.12 kB / 0.5454 GB, free: 92.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001219/1.717, allocations: 223.6 kB / 0.5456 GB, free: 92.1 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002911/1.72, allocations: 1.391 MB / 0.5469 GB, free: 91.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0326/1.752, allocations: 11.16 MB / 0.5578 GB, free: 88.39 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08669/1.839, allocations: 42.72 MB / 0.5995 GB, free: 54.58 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01474/1.854, allocations: 4.693 MB / 0.6041 GB, free: 50.09 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004995/1.859, allocations: 2.421 MB / 0.6065 GB, free: 47.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001564/1.861, allocations: 1.322 MB / 0.6078 GB, free: 46.13 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/1.861, allocations: 48.56 kB / 0.6078 GB, free: 46.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 7.123e-06/1.861, allocations: 4 kB / 0.6078 GB, free: 46.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=268): time 0.0622/1.923, allocations: 16.36 MB / 0.6238 GB, free: 29.58 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/1.923, allocations: 99.11 kB / 0.6239 GB, free: 29.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005706/1.929, allocations: 2.853 MB / 0.6267 GB, free: 26.61 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006663/1.929, allocations: 57.7 kB / 0.6267 GB, free: 26.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002635/1.932, allocations: 3.267 MB / 0.6299 GB, free: 23.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00146/1.934, allocations: 0.9781 MB / 0.6309 GB, free: 22.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006706/1.934, allocations: 120 kB / 0.631 GB, free: 22.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003984/1.935, allocations: 0.5664 MB / 0.6316 GB, free: 21.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005706/1.94, allocations: 2.406 MB / 0.6339 GB, free: 19.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008421/1.949, allocations: 5.765 MB / 0.6395 GB, free: 11.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008177/1.957, allocations: 3.76 MB / 0.6432 GB, free: 8.012 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.985e-05/1.957, allocations: 43.98 kB / 0.6432 GB, free: 7.969 MB / 426.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.3419/2.299, allocations: 8.963 MB / 0.652 GB, free: 81.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001336/2.299, allocations: 56.56 kB / 0.6521 GB, free: 81.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000255/2.3, allocations: 116.9 kB / 0.6522 GB, free: 81.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00621/2.306, allocations: 1.064 MB / 0.6532 GB, free: 81.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009831/2.316, allocations: 1.382 MB / 0.6546 GB, free: 81.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01311/2.329, allocations: 5.067 MB / 0.6595 GB, free: 80.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00689/2.336, allocations: 330.4 kB / 0.6598 GB, free: 80.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001804/2.338, allocations: 352.4 kB / 0.6602 GB, free: 80.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * Number of states: 0 () * Number of discrete variables: 39 (axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (743): * Single equations (assignments): 736 * Array equations: 6 * 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 {(3,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002684/2.34, allocations: 0.5544 MB / 0.6607 GB, free: 80.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009826/2.341, allocations: 316.6 kB / 0.661 GB, free: 80.21 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01873/2.36, allocations: 5.306 MB / 0.6662 GB, free: 80.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001586/2.36, allocations: 49.89 kB / 0.6662 GB, free: 80.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.832e-05/2.36, allocations: 9.812 kB / 0.6662 GB, free: 80.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.822e-05/2.361, allocations: 14.97 kB / 0.6663 GB, free: 80.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04039/2.401, allocations: 13.27 MB / 0.6792 GB, free: 78.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-05/2.401, allocations: 11.72 kB / 0.6792 GB, free: 78.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003805/2.405, allocations: 422.5 kB / 0.6796 GB, free: 78.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004944/2.41, allocations: 0.8863 MB / 0.6805 GB, free: 78.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005942/2.41, allocations: 54.92 kB / 0.6805 GB, free: 78.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009376/2.42, allocations: 4.417 MB / 0.6849 GB, free: 77.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.631e-05/2.42, allocations: 26.2 kB / 0.6849 GB, free: 77.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02062/2.441, allocations: 9.03 MB / 0.6937 GB, free: 74.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002907/2.444, allocations: 0.7295 MB / 0.6944 GB, free: 73.95 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001192/2.445, allocations: 53.78 kB / 0.6945 GB, free: 73.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003284/2.448, allocations: 144.5 kB / 0.6946 GB, free: 73.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008019/2.449, allocations: 169.5 kB / 0.6948 GB, free: 73.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002786/2.449, allocations: 78.44 kB / 0.6948 GB, free: 73.85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005377/2.455, allocations: 1.951 MB / 0.6967 GB, free: 73.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.81e-07/2.455, allocations: 1.594 kB / 0.6967 GB, free: 73.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007806/2.463, allocations: 1.116 MB / 0.6978 GB, free: 73.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (209): * Single equations (assignments): 202 * Array equations: 6 * 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 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02208/2.485, allocations: 12.54 MB / 0.7101 GB, free: 65.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01445/2.499, allocations: 5.935 MB / 0.7159 GB, free: 63.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-05/2.499, allocations: 3.969 kB / 0.7159 GB, free: 63.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005566/2.505, allocations: 2.228 MB / 0.7181 GB, free: 62.85 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003665/2.509, allocations: 381.3 kB / 0.7184 GB, free: 62.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0367/2.545, allocations: 11.41 MB / 0.7296 GB, free: 58.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00931/2.555, allocations: 3.926 MB / 0.7334 GB, free: 56.58 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.009688/2.564, allocations: 2.205 MB / 0.7356 GB, free: 55.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005594/2.57, allocations: 2.227 MB / 0.7377 GB, free: 53.17 MB / 426.7 MB Notification: Performance of SimCode: time 1.402e-06/2.57, allocations: 0 / 0.7377 GB, free: 53.17 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5598/3.13, allocations: 78.75 MB / 0.8146 GB, free: 72.88 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002562/3.13, allocations: 160 kB / 0.8148 GB, free: 72.66 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.241/8.371, allocations: 0 / 0.8148 GB, free: 72.66 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat