Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Joints,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_InitializationConversion_Joints",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.716/2.716, allocations: 235.1 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2163/2.932, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/3.279, allocations: 54.84 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4294/3.708, allocations: 106.4 MB / 460.5 MB, free: 35.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/3.709, allocations: 71.89 kB / 460.5 MB, free: 35.84 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: 3972 * Number of variables: 3972 Notification: Performance of Generate backend data structure: time 1.641/5.35, allocations: 263.7 MB / 0.7072 GB, free: 46.21 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/5.35, allocations: 7.031 kB / 0.7072 GB, free: 46.21 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2237/5.574, allocations: 25.52 MB / 0.7322 GB, free: 45.23 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1164/5.69, allocations: 27.25 MB / 0.7588 GB, free: 22.97 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001521/5.692, allocations: 388 kB / 0.7591 GB, free: 22.59 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009563/5.701, allocations: 0.7484 MB / 0.7599 GB, free: 21.84 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05619/5.757, allocations: 16.71 MB / 0.7762 GB, free: 5.145 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5724/6.33, allocations: 24.35 MB / 0.8 GB, free: 80.37 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001784/6.332, allocations: 178.8 kB / 0.8001 GB, free: 80.37 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006703/6.338, allocations: 59.5 kB / 0.8002 GB, free: 80.37 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006682/6.345, allocations: 2.636 MB / 0.8028 GB, free: 80.35 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.299/6.644, allocations: 120.8 MB / 0.9207 GB, free: 49.07 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02685/6.671, allocations: 11.2 MB / 0.9317 GB, free: 43.99 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02012/6.691, allocations: 9.736 MB / 0.9412 GB, free: 39.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07169/6.763, allocations: 25.5 MB / 0.9661 GB, free: 27.18 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.563e-05/6.763, allocations: 95.41 kB / 0.9662 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=544): time 1.318e-05/6.763, allocations: 0 / 0.9662 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=757): time 0.8644/7.628, allocations: 105.2 MB / 1.069 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003297/7.628, allocations: 0.6559 MB / 1.07 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03188/7.66, allocations: 8.396 MB / 1.078 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.003102/7.663, allocations: 29.17 kB / 1.078 GB, free: 114 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.007947/7.671, allocations: 6.798 MB / 1.084 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.006966/7.678, allocations: 2.657 MB / 1.087 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004932/7.683, allocations: 0 / 1.087 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001938/7.685, allocations: 0.9238 MB / 1.088 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03141/7.717, allocations: 9.722 MB / 1.097 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04095/7.758, allocations: 16.71 MB / 1.114 GB, free: 95 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04314/7.801, allocations: 12.69 MB / 1.126 GB, free: 90.61 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003439/7.801, allocations: 70.78 kB / 1.126 GB, free: 90.61 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1898) (initialization): time 0.3091/8.11, allocations: 40.96 MB / 1.166 GB, free: 74.47 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/8.11, allocations: 6.031 kB / 1.166 GB, free: 74.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.5389/8.649, allocations: 31.27 MB / 1.197 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2109/8.86, allocations: 17.09 MB / 1.213 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02959/8.89, allocations: 3.151 MB / 1.217 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2544/9.144, allocations: 57.53 MB / 1.273 GB, free: 97.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03725/9.182, allocations: 0.7343 MB / 1.273 GB, free: 97.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007739/9.189, allocations: 0.7964 MB / 1.274 GB, free: 97 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1091 * Number of states: 0 () * Number of discrete variables: 108 (freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],bodyBox8.color[3],bodyBox8.color[2],bodyBox8.color[1],bodyBox8.body.sphereColor[3],bodyBox8.body.sphereColor[2],bodyBox8.body.sphereColor[1],bodyBox7.color[3],bodyBox7.color[2],bodyBox7.color[1],bodyBox7.body.sphereColor[3],bodyBox7.body.sphereColor[2],bodyBox7.body.sphereColor[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],bodyBox6.color[3],bodyBox6.color[2],bodyBox6.color[1],bodyBox6.body.sphereColor[3],bodyBox6.body.sphereColor[2],bodyBox6.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],bodyBox5.color[3],bodyBox5.color[2],bodyBox5.color[1],bodyBox5.body.sphereColor[3],bodyBox5.body.sphereColor[2],bodyBox5.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],bodyBox4.color[3],bodyBox4.color[2],bodyBox4.color[1],bodyBox4.body.sphereColor[3],bodyBox4.body.sphereColor[2],bodyBox4.body.sphereColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],cylindrical.cylinderColor[3],cylindrical.cylinderColor[2],cylindrical.cylinderColor[1],cylindrical.revolute.cylinderColor[3],cylindrical.revolute.cylinderColor[2],cylindrical.revolute.cylinderColor[1],cylindrical.prismatic.boxColor[3],cylindrical.prismatic.boxColor[2],cylindrical.prismatic.boxColor[1],actuatedPrismatic.boxColor[3],actuatedPrismatic.boxColor[2],actuatedPrismatic.boxColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],actuatedRevolute.cylinderColor[3],actuatedRevolute.cylinderColor[2],actuatedRevolute.cylinderColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (1626): * Single equations (assignments): 1614 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(4,100.0%),(3,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(20,67.5%) 194} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.01297/9.203, allocations: 0.7601 MB / 1.275 GB, free: 96.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008199/9.211, allocations: 1.025 MB / 1.276 GB, free: 96.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.171/9.382, allocations: 27.65 MB / 1.303 GB, free: 87.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1429/9.525, allocations: 25.03 MB / 1.327 GB, free: 79.16 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002415/9.525, allocations: 43.47 kB / 1.327 GB, free: 79.12 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003396/9.525, allocations: 39.45 kB / 1.327 GB, free: 79.12 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.526/10.05, allocations: 56.81 MB / 1.383 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001104/10.05, allocations: 3.094 kB / 1.383 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01586/10.07, allocations: 1.069 MB / 1.384 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08209/10.15, allocations: 10.98 MB / 1.395 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004179/10.15, allocations: 50.95 kB / 1.395 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2021/10.36, allocations: 48.25 MB / 1.442 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002145/10.36, allocations: 1.609 MB / 1.443 GB, free: 98.98 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1823/10.54, allocations: 40.72 MB / 1.483 GB, free: 84.81 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.5714/11.11, allocations: 56.13 MB / 1.538 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01255/11.12, allocations: 2.784 MB / 1.541 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005775/11.13, allocations: 27.89 kB / 1.541 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01781/11.15, allocations: 401.4 kB / 1.541 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004059/11.15, allocations: 361.8 kB / 1.541 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003171/11.16, allocations: 199 kB / 1.542 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.02065/11.18, allocations: 5.91 MB / 1.547 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0396/11.22, allocations: 3.805 MB / 1.551 GB, free: 104.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 40 ($STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],revolute.phi,revolute.w,actuatedRevolute.phi,actuatedRevolute.w,prismatic.s,prismatic.v,actuatedPrismatic.s,actuatedPrismatic.v,cylindrical.s,cylindrical.phi,cylindrical.v,cylindrical.w,universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w,bodyBox7.body.w_a[1],bodyBox7.body.w_a[2],bodyBox7.body.w_a[3],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (519): * Single equations (assignments): 510 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(21,63.9%) 190} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004798/11.22, allocations: 208.9 kB / 1.551 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.08629/11.31, allocations: 25.02 MB / 1.576 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-05/11.31, allocations: 5.25 kB / 1.576 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.05641/11.36, allocations: 12.39 MB / 1.588 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01809/11.38, allocations: 1.333 MB / 1.589 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1715/11.55, allocations: 33.19 MB / 1.622 GB, free: 95.25 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04157/11.6, allocations: 10.32 MB / 1.632 GB, free: 92.62 MB / 0.5105 GB Notification: Performance of SimCode: time 4.168e-06/11.6, allocations: 0 / 1.632 GB, free: 92.62 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.InitializationConversion.Joints_res.mat does not exist to compare? outputFormat=mat