Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_SphericalSpherical2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.536/2.536, allocations: 235.1 MB / 242.2 MB, free: 15.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.63e-05/3.634e-05, allocations: 4 kB / 299.5 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3789, allocations: 54.85 MB / 354.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2324/0.6114, allocations: 110.2 MB / 464.6 MB, free: 3.922 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/0.6117, allocations: 79.95 kB / 464.7 MB, free: 3.844 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.484/2.095, allocations: 223.4 MB / 0.6719 GB, free: 32.66 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.104e-06/2.095, allocations: 0 / 0.6719 GB, free: 32.66 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008645/2.096, allocations: 279.5 kB / 0.6722 GB, free: 32.65 MB / 458.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.09076/2.187, allocations: 13.78 MB / 0.6856 GB, free: 28.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/2.187, allocations: 11.03 kB / 0.6856 GB, free: 28.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08114/2.268, allocations: 10.93 MB / 0.6963 GB, free: 27.45 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05498/2.323, allocations: 15.5 MB / 0.7114 GB, free: 26.11 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009404/2.324, allocations: 476.6 kB / 0.7119 GB, free: 26.11 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007229/2.331, allocations: 0.8569 MB / 0.7127 GB, free: 26.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05109/2.383, allocations: 18.1 MB / 0.7304 GB, free: 26.03 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07532/2.458, allocations: 26.81 MB / 0.7566 GB, free: 18.66 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001221/2.459, allocations: 153.4 kB / 0.7567 GB, free: 18.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006442/2.466, allocations: 70.5 kB / 0.7568 GB, free: 18.64 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005346/2.471, allocations: 2.332 MB / 0.7591 GB, free: 18.25 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6548/3.126, allocations: 125 MB / 0.8812 GB, free: 22.21 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01356/3.14, allocations: 7.256 MB / 0.8882 GB, free: 21.53 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01039/3.15, allocations: 5.62 MB / 0.8937 GB, free: 21.48 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005931/3.156, allocations: 4.849 MB / 0.8985 GB, free: 17.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.833e-05/3.156, allocations: 83.45 kB / 0.8986 GB, free: 17.45 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=435): time 8.186e-06/3.156, allocations: 0 / 0.8986 GB, free: 17.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=569): time 0.44/3.596, allocations: 98.84 MB / 0.9951 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002281/3.597, allocations: 351.2 kB / 0.9954 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02148/3.618, allocations: 7.495 MB / 1.003 GB, free: 7.312 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001744/3.62, allocations: 25.7 kB / 1.003 GB, free: 7.281 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.01055/3.63, allocations: 8.927 MB / 1.011 GB, free: 15.54 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004905/3.635, allocations: 2.13 MB / 1.014 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003264/3.639, allocations: 0 / 1.014 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.002372/3.641, allocations: 1.005 MB / 1.015 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02439/3.666, allocations: 8.971 MB / 1.023 GB, free: 4.742 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.08661/3.752, allocations: 19.66 MB / 1.042 GB, free: 2.637 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04585/3.798, allocations: 12.6 MB / 1.055 GB, free: 7.273 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004605/3.799, allocations: 100 kB / 1.055 GB, free: 7.176 MB / 0.573 GB Notification: Performance of matching and sorting (n=2145) (initialization): time 0.5294/4.328, allocations: 34.4 MB / 1.088 GB, free: 140.7 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003203/4.328, allocations: 146.9 kB / 1.089 GB, free: 140.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08824/4.417, allocations: 22.95 MB / 1.111 GB, free: 140.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06484/4.482, allocations: 10.86 MB / 1.122 GB, free: 140.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02485/4.507, allocations: 3.938 MB / 1.125 GB, free: 140.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08964/4.596, allocations: 47.2 MB / 1.172 GB, free: 126.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02843/4.625, allocations: 1.502 MB / 1.173 GB, free: 126.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004714/4.63, allocations: 0.9954 MB / 1.174 GB, free: 126 MB / 0.5886 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 (1969): * Single equations (assignments): 1940 * 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,4,4,4,4} * 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.007353/4.637, allocations: 0.9298 MB / 1.175 GB, free: 125.8 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.1169/4.754, allocations: 27.63 MB / 1.202 GB, free: 119.1 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003575/4.757, allocations: 0.8372 MB / 1.203 GB, free: 119.1 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1191/4.877, allocations: 28.39 MB / 1.23 GB, free: 104.8 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1481/5.025, allocations: 26.75 MB / 1.257 GB, free: 78 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.886e-05/5.025, allocations: 28 kB / 1.257 GB, free: 77.97 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001912/5.025, allocations: 27.89 kB / 1.257 GB, free: 77.95 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5898/5.615, allocations: 60.27 MB / 1.315 GB, free: 141.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.142e-05/5.615, allocations: 3.625 kB / 1.315 GB, free: 141.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009725/5.625, allocations: 1.016 MB / 1.316 GB, free: 141.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09321/5.718, allocations: 15.58 MB / 1.332 GB, free: 141.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001904/5.72, allocations: 100.1 kB / 1.332 GB, free: 141.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1683/5.888, allocations: 61.5 MB / 1.392 GB, free: 122.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.04994/5.938, allocations: 23.44 MB / 1.415 GB, free: 109.7 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1316/6.07, allocations: 40.51 MB / 1.454 GB, free: 84.46 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003699/6.074, allocations: 0.8948 MB / 1.455 GB, free: 83.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004683/6.078, allocations: 43.95 kB / 1.455 GB, free: 83.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01544/6.094, allocations: 0.824 MB / 1.456 GB, free: 83.08 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003705/6.098, allocations: 454.7 kB / 1.456 GB, free: 82.64 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001886/6.1, allocations: 181.5 kB / 1.457 GB, free: 82.47 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01294/6.113, allocations: 4.992 MB / 1.461 GB, free: 77.52 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.102e-06/6.113, allocations: 3.281 kB / 1.461 GB, free: 77.52 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02687/6.14, allocations: 4.27 MB / 1.466 GB, free: 73.25 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 32 ($STATESET140311963176965.x[2],$STATESET140311963176965.x[1],$STATESET140311963176964.x[5],$STATESET140311963176964.x[4],$STATESET140311963176964.x[3],$STATESET140311963176964.x[2],$STATESET140311963176964.x[1],$STATESET140311963176963.x[6],$STATESET140311963176963.x[5],$STATESET140311963176963.x[4],$STATESET140311963176963.x[3],$STATESET140311963176963.x[2],$STATESET140311963176963.x[1],$STATESET140311963176962.x[3],$STATESET140311963176962.x[2],$STATESET140311963176962.x[1],$STATESET140311963176961.x[2],$STATESET140311963176961.x[1],$STATESET140311963176960.x[5],$STATESET140311963176960.x[4],$STATESET140311963176960.x[3],$STATESET140311963176960.x[2],$STATESET140311963176960.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.5671/6.707, allocations: 41.78 MB / 1.506 GB, free: 140.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.05097/6.758, allocations: 22.77 MB / 1.529 GB, free: 138.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/6.758, allocations: 0 / 1.529 GB, free: 138.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.03077/6.789, allocations: 11.37 MB / 1.54 GB, free: 137.3 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01132/6.8, allocations: 1.118 MB / 1.541 GB, free: 137.2 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1404/6.94, allocations: 35.51 MB / 1.576 GB, free: 131.6 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02586/6.966, allocations: 9.429 MB / 1.585 GB, free: 129.3 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.02665/6.993, allocations: 5.108 MB / 1.59 GB, free: 129.2 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01792/7.011, allocations: 6.403 MB / 1.596 GB, free: 123.9 MB / 0.5886 GB Notification: Performance of SimCode: time 2.495e-06/7.011, allocations: 4 kB / 1.596 GB, free: 123.9 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.007/8.018, allocations: 288 MB / 1.877 GB, free: 43.68 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002431/8.019, allocations: 151 kB / 1.877 GB, free: 43.48 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/20.46, allocations: 0 / 1.877 GB, free: 43.48 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.SphericalSpherical2_res.mat does not exist to compare? outputFormat=mat