Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_SphericalSpherical2",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(ModelicaTest): time 2.677/2.677, allocations: 235 MB / 242 MB, free: 9.758 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1946/2.871, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/3.203, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5213/3.724, allocations: 110.2 MB / 464.3 MB, free: 30.18 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003186/3.725, allocations: 79.89 kB / 464.3 MB, free: 30.18 MB / 378.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 1.527/5.252, allocations: 234.5 MB / 0.6824 GB, free: 49.81 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.745e-05/5.252, allocations: 10.56 kB / 0.6824 GB, free: 49.81 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1367/5.389, allocations: 10.38 MB / 0.6926 GB, free: 48.92 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0632/5.452, allocations: 15.59 MB / 0.7078 GB, free: 47.48 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001009/5.453, allocations: 476.3 kB / 0.7082 GB, free: 47.47 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007623/5.461, allocations: 0.8629 MB / 0.7091 GB, free: 47.46 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06616/5.527, allocations: 18.68 MB / 0.7273 GB, free: 43.15 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08882/5.616, allocations: 27.36 MB / 0.754 GB, free: 17.25 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001198/5.617, allocations: 153.9 kB / 0.7542 GB, free: 17.11 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007425/5.625, allocations: 72 kB / 0.7543 GB, free: 17.04 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005722/5.631, allocations: 2.481 MB / 0.7567 GB, free: 14.97 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7316/6.362, allocations: 127.4 MB / 0.8811 GB, free: 69.05 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01739/6.38, allocations: 7.375 MB / 0.8883 GB, free: 68.39 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0154/6.395, allocations: 6.294 MB / 0.8945 GB, free: 68.34 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08141/6.477, allocations: 23.44 MB / 0.9174 GB, free: 59.33 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001197/6.477, allocations: 88.33 kB / 0.9174 GB, free: 59.26 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=411): time 1.549e-05/6.477, allocations: 0 / 0.9174 GB, free: 59.26 MB / 0.5262 GB Notification: Performance of matching and sorting (n=542): time 0.6033/7.08, allocations: 89.94 MB / 1.005 GB, free: 22.25 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001895/7.08, allocations: 344.3 kB / 1.006 GB, free: 21.85 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03435/7.115, allocations: 7.622 MB / 1.013 GB, free: 15.31 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.002747/7.118, allocations: 29.7 kB / 1.013 GB, free: 15.28 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.01391/7.132, allocations: 8.284 MB / 1.021 GB, free: 7.859 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.007499/7.139, allocations: 2.043 MB / 1.023 GB, free: 6.023 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00365/7.143, allocations: 0 / 1.023 GB, free: 6.023 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.002717/7.146, allocations: 0.9993 MB / 1.024 GB, free: 5.211 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05629/7.202, allocations: 10.35 MB / 1.034 GB, free: 0 / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2646/7.467, allocations: 18.57 MB / 1.052 GB, free: 126.3 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03714/7.504, allocations: 13.11 MB / 1.065 GB, free: 126.2 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005745/7.504, allocations: 94.62 kB / 1.065 GB, free: 126.2 MB / 0.5262 GB Notification: Performance of matching and sorting (n=2127) (initialization): time 0.1623/7.667, allocations: 34.48 MB / 1.099 GB, free: 125.2 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/7.667, allocations: 7.188 kB / 1.099 GB, free: 125.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1266/7.794, allocations: 23.05 MB / 1.121 GB, free: 119.8 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1089/7.902, allocations: 10.34 MB / 1.132 GB, free: 117.9 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0464/7.949, allocations: 3.767 MB / 1.135 GB, free: 117.5 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1539/8.103, allocations: 45.81 MB / 1.18 GB, free: 87.21 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03599/8.139, allocations: 1.083 MB / 1.181 GB, free: 86.48 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005851/8.145, allocations: 1.015 MB / 1.182 GB, free: 85.54 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1529 * 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 (1960): * Single equations (assignments): 1931 * 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%) 29,(1,100.0%) 3,(4,93.8%) 17,(7,63.3%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009268/8.154, allocations: 0.9178 MB / 1.183 GB, free: 84.82 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004108/8.158, allocations: 0.8274 MB / 1.184 GB, free: 84.45 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2115/8.37, allocations: 27.6 MB / 1.211 GB, free: 64.21 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.4482/8.818, allocations: 26.19 MB / 1.236 GB, free: 118.5 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001584/8.818, allocations: 26.75 kB / 1.236 GB, free: 118.5 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002341/8.819, allocations: 24.19 kB / 1.236 GB, free: 118.5 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2778/9.096, allocations: 55.23 MB / 1.29 GB, free: 115.3 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.633e-05/9.097, allocations: 3.688 kB / 1.29 GB, free: 115.3 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01181/9.108, allocations: 0.8441 MB / 1.291 GB, free: 115.3 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1257/9.234, allocations: 14.47 MB / 1.305 GB, free: 113.3 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002557/9.237, allocations: 100.5 kB / 1.305 GB, free: 113.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1978/9.435, allocations: 59.75 MB / 1.364 GB, free: 86.91 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.07413/9.509, allocations: 21.69 MB / 1.385 GB, free: 71.22 MB / 0.5262 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.4678/9.977, allocations: 39.49 MB / 1.423 GB, free: 114.7 MB / 0.5262 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2895/10.27, allocations: 74.16 MB / 1.496 GB, free: 102.5 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003833/10.27, allocations: 0.8822 MB / 1.497 GB, free: 102.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005484/10.28, allocations: 42.56 kB / 1.497 GB, free: 102.3 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02698/10.3, allocations: 0.5075 MB / 1.497 GB, free: 102.3 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004186/10.31, allocations: 301.7 kB / 1.497 GB, free: 102.3 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003763/10.31, allocations: 182.2 kB / 1.498 GB, free: 102.3 MB / 0.5262 GB Notification: Performance of sort global known variables: time 0.0245/10.34, allocations: 5.106 MB / 1.503 GB, free: 100.5 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.04362/10.38, allocations: 4.197 MB / 1.507 GB, free: 100.5 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 32 ($STATESET6.x[5],$STATESET6.x[4],$STATESET6.x[3],$STATESET6.x[2],$STATESET6.x[1],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[6],$STATESET3.x[5],$STATESET3.x[4],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[2],$STATESET1.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 (385): * Single equations (assignments): 370 * 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,4,8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(8,82.8%) 29,(7,93.9%) 12,(4,93.8%) 17,(3,100.0%) 3,(7,63.3%) 20} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003719/10.38, allocations: 213.6 kB / 1.507 GB, free: 100.4 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0985/10.48, allocations: 23.15 MB / 1.53 GB, free: 91.95 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-05/10.48, allocations: 1.094 kB / 1.53 GB, free: 91.95 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.04329/10.52, allocations: 10.9 MB / 1.54 GB, free: 84.45 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0138/10.54, allocations: 1.087 MB / 1.541 GB, free: 83.59 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1553/10.69, allocations: 31.79 MB / 1.572 GB, free: 55.97 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03852/10.73, allocations: 10.27 MB / 1.582 GB, free: 48.41 MB / 0.5262 GB Notification: Performance of SimCode: time 2.013e-06/10.73, allocations: 2.406 kB / 1.582 GB, free: 48.41 MB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.SphericalSpherical2_res.mat does not exist to compare? outputFormat=mat