Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.614/2.614, allocations: 270 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.407e-05/4.414e-05, allocations: 7.938 kB / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.1623, allocations: 61.88 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6641/0.8265, allocations: 103.2 MB / 0.5015 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003617/0.8269, allocations: 79.95 kB / 0.5016 GB, free: 0.668 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4715/1.298, allocations: 84.67 MB / 0.5843 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.324e-06/1.298, allocations: 0 / 0.5843 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000268/1.299, allocations: 72 kB / 0.5843 GB, free: 11.25 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.02844/1.327, allocations: 3.867 MB / 0.5881 GB, free: 7.324 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/1.327, allocations: 8.031 kB / 0.5881 GB, free: 7.316 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003956/1.331, allocations: 0.75 MB / 0.5888 GB, free: 6.555 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0437/1.375, allocations: 5.879 MB / 0.5946 GB, free: 0.6602 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02218/1.397, allocations: 5.173 MB / 0.5996 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004337/1.398, allocations: 275.3 kB / 0.5999 GB, free: 11.17 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002679/1.4, allocations: 371.8 kB / 0.6002 GB, free: 10.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4135/1.814, allocations: 10.31 MB / 0.6103 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002749/1.814, allocations: 27.69 kB / 0.6103 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002382/1.817, allocations: 170.5 kB / 0.6105 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003417/1.82, allocations: 1.155 MB / 0.6116 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03325/1.853, allocations: 9.852 MB / 0.6213 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07884/1.932, allocations: 37.41 MB / 0.6578 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01909/1.951, allocations: 5.549 MB / 0.6632 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005085/1.957, allocations: 2.32 MB / 0.6655 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002351/1.959, allocations: 1.87 MB / 0.6673 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.389e-05/1.959, allocations: 59.39 kB / 0.6674 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=224): time 8.426e-06/1.959, allocations: 0 / 0.6674 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=231): time 0.05118/2.01, allocations: 12.36 MB / 0.6794 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001452/2.012, allocations: 1.516 MB / 0.6809 GB, free: 99.79 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005735/2.018, allocations: 2.475 MB / 0.6833 GB, free: 98.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007063/2.018, allocations: 50.62 kB / 0.6834 GB, free: 98.85 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002326/2.021, allocations: 2.682 MB / 0.686 GB, free: 96.94 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001507/2.022, allocations: 0.8527 MB / 0.6868 GB, free: 96.32 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007819/2.023, allocations: 110.1 kB / 0.6869 GB, free: 96.24 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004546/2.024, allocations: 0.5403 MB / 0.6874 GB, free: 95.83 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006245/2.03, allocations: 2.558 MB / 0.6899 GB, free: 95.01 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008376/2.038, allocations: 5.515 MB / 0.6953 GB, free: 90.22 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008418/2.047, allocations: 3.785 MB / 0.699 GB, free: 89.05 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/2.047, allocations: 29.53 kB / 0.6991 GB, free: 89.05 MB / 0.5105 GB Notification: Performance of matching and sorting (n=724) (initialization): time 0.115/2.162, allocations: 18.59 MB / 0.7172 GB, free: 77.65 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.954e-05/2.162, allocations: 52 kB / 0.7173 GB, free: 77.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08191/2.244, allocations: 11.96 MB / 0.7289 GB, free: 67.11 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09004/2.334, allocations: 10.31 MB / 0.739 GB, free: 56.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007941/2.342, allocations: 1.252 MB / 0.7402 GB, free: 55.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04327/2.385, allocations: 15.86 MB / 0.7557 GB, free: 39.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006993/2.392, allocations: 436.9 kB / 0.7561 GB, free: 38.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001592/2.394, allocations: 316 kB / 0.7564 GB, free: 38.66 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 477 * Number of states: 0 () * Number of discrete variables: 24 (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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (652): * Single equations (assignments): 641 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001465/2.396, allocations: 0.499 MB / 0.7569 GB, free: 38.16 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007976/2.396, allocations: 272.4 kB / 0.7572 GB, free: 37.89 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01449/2.411, allocations: 5.076 MB / 0.7621 GB, free: 32.78 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01279/2.424, allocations: 4.357 MB / 0.7664 GB, free: 28.42 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.89e-05/2.424, allocations: 0 / 0.7664 GB, free: 28.42 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.404e-05/2.424, allocations: 7.969 kB / 0.7664 GB, free: 28.41 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03522/2.459, allocations: 12.94 MB / 0.779 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.461e-05/2.459, allocations: 8 kB / 0.779 GB, free: 15.31 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003697/2.463, allocations: 403.4 kB / 0.7794 GB, free: 14.92 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005241/2.468, allocations: 0.9385 MB / 0.7803 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005713/2.469, allocations: 48.67 kB / 0.7804 GB, free: 13.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009373/2.478, allocations: 5.433 MB / 0.7857 GB, free: 8.227 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00114/2.479, allocations: 1.463 MB / 0.7871 GB, free: 6.629 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01924/2.499, allocations: 8.288 MB / 0.7952 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/2.5, allocations: 329.6 kB / 0.7955 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009878/2.501, allocations: 49.16 kB / 0.7956 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002923/2.504, allocations: 201.2 kB / 0.7958 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005168/2.504, allocations: 133 kB / 0.7959 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002729/2.505, allocations: 68.91 kB / 0.796 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004115/2.509, allocations: 1.685 MB / 0.7976 GB, free: 11.56 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.61e-07/2.509, allocations: 0 / 0.7976 GB, free: 11.56 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007269/2.516, allocations: 1.115 MB / 0.7987 GB, free: 10.46 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4162/2.932, allocations: 10.88 MB / 0.8093 GB, free: 133.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01936/2.952, allocations: 6.305 MB / 0.8155 GB, free: 133.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/2.952, allocations: 1.594 kB / 0.8155 GB, free: 133.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007031/2.959, allocations: 2.47 MB / 0.8179 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003/2.962, allocations: 341 kB / 0.8182 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03684/2.999, allocations: 9.852 MB / 0.8278 GB, free: 131.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008697/3.007, allocations: 3.248 MB / 0.831 GB, free: 130.7 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009173/3.017, allocations: 2.064 MB / 0.833 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004527/3.021, allocations: 1.67 MB / 0.8347 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of SimCode: time 2.034e-06/3.021, allocations: 3.938 kB / 0.8347 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2326/3.254, allocations: 79.59 MB / 0.9124 GB, free: 93.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002363/3.254, allocations: 182 kB / 0.9126 GB, free: 92.87 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.02/8.274, allocations: 0 / 0.9126 GB, free: 92.87 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat