Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_SphericalSpherical2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.024/2.024, allocations: 209.4 MB / 216.5 MB, free: 6.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.279e-05/3.292e-05, allocations: 4 kB / 267.6 MB, free: 4.957 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 48.7 MB / 316.3 MB, free: 4.164 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4743/0.5818, allocations: 103.7 MB / 420 MB, free: 5.352 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003077/0.5821, allocations: 78.12 kB / 420.1 MB, free: 5.316 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.144/1.726, allocations: 223.2 MB / 0.6282 GB, free: 2.105 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.726, allocations: 0 / 0.6282 GB, free: 2.105 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009454/1.727, allocations: 275.9 kB / 0.6284 GB, free: 1.836 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4609 * Number of variables: 4609 Notification: Performance of Generate backend data structure: time 0.1055/1.832, allocations: 13.77 MB / 0.6419 GB, free: 3.961 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.432e-05/1.833, allocations: 15.97 kB / 0.6419 GB, free: 3.945 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4252/2.258, allocations: 10.86 MB / 0.6525 GB, free: 35.83 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05718/2.315, allocations: 15.47 MB / 0.6676 GB, free: 35.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001041/2.316, allocations: 482.7 kB / 0.6681 GB, free: 35.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007263/2.323, allocations: 0.861 MB / 0.6689 GB, free: 35.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05486/2.378, allocations: 18.11 MB / 0.6866 GB, free: 35.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07936/2.458, allocations: 26.81 MB / 0.7128 GB, free: 28.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008927/2.459, allocations: 148.3 kB / 0.7129 GB, free: 28.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005945/2.465, allocations: 69.12 kB / 0.713 GB, free: 28.17 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005861/2.471, allocations: 2.337 MB / 0.7153 GB, free: 27.78 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6386/3.109, allocations: 125 MB / 0.8374 GB, free: 29.22 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01537/3.125, allocations: 7.248 MB / 0.8444 GB, free: 28.55 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01125/3.136, allocations: 5.632 MB / 0.8499 GB, free: 28.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006466/3.143, allocations: 4.841 MB / 0.8547 GB, free: 24.51 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001398/3.143, allocations: 81.83 kB / 0.8547 GB, free: 24.47 MB / 490.7 MB Notification: Performance of pre-optimization done (n=435): time 1.218e-05/3.143, allocations: 1.938 kB / 0.8547 GB, free: 24.47 MB / 490.7 MB Notification: Performance of matching and sorting (n=569): time 0.4999/3.643, allocations: 98.69 MB / 0.9511 GB, free: 2.336 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002946/3.643, allocations: 336.7 kB / 0.9514 GB, free: 1.941 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03728/3.68, allocations: 8.374 MB / 0.9596 GB, free: 13.72 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001888/3.682, allocations: 29.7 kB / 0.9596 GB, free: 13.68 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.01041/3.693, allocations: 8.928 MB / 0.9684 GB, free: 5.629 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.004759/3.698, allocations: 2.125 MB / 0.9704 GB, free: 3.715 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002627/3.7, allocations: 4 kB / 0.9704 GB, free: 3.711 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001442/3.702, allocations: 1.007 MB / 0.9714 GB, free: 2.895 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03919/3.741, allocations: 10 MB / 0.9812 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0333/3.774, allocations: 18.33 MB / 0.9991 GB, free: 7.391 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03021/3.804, allocations: 12.49 MB / 1.011 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003858/3.805, allocations: 96 kB / 1.011 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2145) (initialization): time 0.5111/4.316, allocations: 33.98 MB / 1.045 GB, free: 133.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002557/4.316, allocations: 152.7 kB / 1.045 GB, free: 133.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09045/4.407, allocations: 22.62 MB / 1.067 GB, free: 133.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06325/4.47, allocations: 10.51 MB / 1.077 GB, free: 133.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02713/4.497, allocations: 3.999 MB / 1.081 GB, free: 133.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08677/4.584, allocations: 45.61 MB / 1.126 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02898/4.613, allocations: 1.497 MB / 1.127 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004999/4.618, allocations: 1.004 MB / 1.128 GB, free: 114.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1520 * Number of states: 0 () * Number of discrete variables: 75 (freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.arrowColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],rs3.arrowColor[3],rs3.arrowColor[2],rs3.arrowColor[1],rs2.arrowColor[3],rs2.arrowColor[2],rs2.arrowColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],sphericalSpherical1.massColor[3],sphericalSpherical1.massColor[2],sphericalSpherical1.massColor[1],sphericalSpherical1.sphereColor[3],sphericalSpherical1.sphereColor[2],sphericalSpherical1.sphereColor[1],sphericalSpherical1.rodColor[3],sphericalSpherical1.rodColor[2],sphericalSpherical1.rodColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],rs1.arrowColor[3],rs1.arrowColor[2],rs1.arrowColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (1981): * Single equations (assignments): 1952 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(8,82.8%) 32,(1,100.0%) 3,(4,93.8%) 20,(7,63.3%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007172/4.625, allocations: 0.9358 MB / 1.129 GB, free: 113.8 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.1195/4.745, allocations: 27.62 MB / 1.156 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003658/4.749, allocations: 0.8478 MB / 1.157 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1419/4.891, allocations: 28.39 MB / 1.184 GB, free: 81.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1138/5.004, allocations: 26.75 MB / 1.211 GB, free: 54.29 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-05/5.005, allocations: 24 kB / 1.211 GB, free: 54.27 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001874/5.005, allocations: 27.91 kB / 1.211 GB, free: 54.24 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5757/5.58, allocations: 60.26 MB / 1.269 GB, free: 127.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.509e-05/5.581, allocations: 6.25 kB / 1.269 GB, free: 127.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01019/5.591, allocations: 1.015 MB / 1.27 GB, free: 127.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09555/5.686, allocations: 15.59 MB / 1.286 GB, free: 127.7 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002315/5.689, allocations: 98.31 kB / 1.286 GB, free: 127.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1298/5.819, allocations: 61.5 MB / 1.346 GB, free: 100.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05148/5.87, allocations: 23.44 MB / 1.369 GB, free: 83.61 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1361/6.006, allocations: 40.51 MB / 1.408 GB, free: 45.82 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003726/6.01, allocations: 0.8919 MB / 1.409 GB, free: 45.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004747/6.015, allocations: 47.92 kB / 1.409 GB, free: 45.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01598/6.031, allocations: 0.817 MB / 1.41 GB, free: 44.51 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003802/6.035, allocations: 452.1 kB / 1.41 GB, free: 44.07 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001874/6.037, allocations: 185.5 kB / 1.411 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.4072/6.444, allocations: 4.983 MB / 1.415 GB, free: 131.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.293e-06/6.444, allocations: 0 / 1.415 GB, free: 131.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.03051/6.475, allocations: 4.25 MB / 1.42 GB, free: 131.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 32 ($STATESET140714473439629.x[2],$STATESET140714473439629.x[1],$STATESET140714473439628.x[5],$STATESET140714473439628.x[4],$STATESET140714473439628.x[3],$STATESET140714473439628.x[2],$STATESET140714473439628.x[1],$STATESET140714473439627.x[6],$STATESET140714473439627.x[5],$STATESET140714473439627.x[4],$STATESET140714473439627.x[3],$STATESET140714473439627.x[2],$STATESET140714473439627.x[1],$STATESET140714473439626.x[3],$STATESET140714473439626.x[2],$STATESET140714473439626.x[1],$STATESET140714473439625.x[2],$STATESET140714473439625.x[1],$STATESET140714473439624.x[5],$STATESET140714473439624.x[4],$STATESET140714473439624.x[3],$STATESET140714473439624.x[2],$STATESET140714473439624.x[1],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyBox1.body.w_a[1],bodyBox1.body.w_a[2],bodyBox1.body.w_a[3],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 (412): * Single equations (assignments): 397 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {3,8,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 17,(3,100.0%) 3,(8,82.8%) 29,(7,93.9%) 12,(7,63.3%) 20} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.1645/6.639, allocations: 41.78 MB / 1.46 GB, free: 128.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0503/6.689, allocations: 22.25 MB / 1.482 GB, free: 127.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/6.69, allocations: 0 / 1.482 GB, free: 127.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.03139/6.721, allocations: 11.37 MB / 1.493 GB, free: 124.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01201/6.733, allocations: 1.112 MB / 1.494 GB, free: 123.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1237/6.857, allocations: 35.51 MB / 1.529 GB, free: 109.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02722/6.884, allocations: 9.417 MB / 1.538 GB, free: 103 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.02782/6.912, allocations: 5.117 MB / 1.543 GB, free: 99.83 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01708/6.929, allocations: 6.412 MB / 1.549 GB, free: 93.93 MB / 0.5417 GB Notification: Performance of SimCode: time 2.064e-06/6.929, allocations: 0 / 1.549 GB, free: 93.93 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.385/8.314, allocations: 285.4 MB / 1.828 GB, free: 93.02 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002289/8.315, allocations: 147.1 kB / 1.828 GB, free: 92.83 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/20.87, allocations: 4 kB / 1.828 GB, free: 92.83 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.SphericalSpherical2_res.mat does not exist to compare? outputFormat=mat