Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_FrameTorques2",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.427/2.427, allocations: 235 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1987/2.626, allocations: 57.19 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/2.951, allocations: 54.87 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4507/3.402, allocations: 98.82 MB / 452.9 MB, free: 33.13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/3.402, allocations: 77.83 kB / 453 MB, free: 33.13 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: 2948 * Number of variables: 2948 Notification: Performance of Generate backend data structure: time 0.8957/4.298, allocations: 172.8 MB / 0.6111 GB, free: 4.516 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/4.298, allocations: 8 kB / 0.6112 GB, free: 4.508 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5003/4.798, allocations: 11.65 MB / 0.6225 GB, free: 100.6 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05103/4.849, allocations: 11.06 MB / 0.6333 GB, free: 100.1 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001003/4.85, allocations: 279.5 kB / 0.6336 GB, free: 100.1 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005975/4.856, allocations: 0.5108 MB / 0.6341 GB, free: 100.1 MB / 474.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03684/4.893, allocations: 11.86 MB / 0.6457 GB, free: 100 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06075/4.954, allocations: 17.6 MB / 0.6629 GB, free: 95.91 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009321/4.955, allocations: 106.5 kB / 0.663 GB, free: 95.9 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004883/4.96, allocations: 44.75 kB / 0.663 GB, free: 95.9 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004529/4.964, allocations: 1.96 MB / 0.6649 GB, free: 95.88 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1665/5.131, allocations: 80.92 MB / 0.7439 GB, free: 63.34 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01557/5.147, allocations: 6.384 MB / 0.7502 GB, free: 60.39 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01129/5.158, allocations: 4.539 MB / 0.7546 GB, free: 58.41 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04557/5.204, allocations: 13.99 MB / 0.7683 GB, free: 51.04 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.893e-05/5.204, allocations: 71 kB / 0.7683 GB, free: 50.98 MB / 490.8 MB Notification: Performance of pre-optimization done (n=300): time 1.04e-05/5.204, allocations: 0 / 0.7683 GB, free: 50.98 MB / 490.8 MB Notification: Performance of matching and sorting (n=327): time 0.1392/5.343, allocations: 30.88 MB / 0.7985 GB, free: 25.98 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/5.343, allocations: 289.7 kB / 0.7988 GB, free: 25.63 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01804/5.361, allocations: 5.637 MB / 0.8043 GB, free: 20.69 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001072/5.362, allocations: 25.7 kB / 0.8043 GB, free: 20.66 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005283/5.368, allocations: 5.334 MB / 0.8095 GB, free: 15.88 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002498/5.37, allocations: 1.212 MB / 0.8107 GB, free: 14.79 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001591/5.372, allocations: 0 / 0.8107 GB, free: 14.79 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0009682/5.373, allocations: 0.7263 MB / 0.8114 GB, free: 14.18 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01222/5.385, allocations: 3.437 MB / 0.8148 GB, free: 11.1 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2493/5.634, allocations: 9.331 MB / 0.8239 GB, free: 99.89 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01485/5.649, allocations: 5.635 MB / 0.8294 GB, free: 99.87 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002551/5.65, allocations: 61.06 kB / 0.8294 GB, free: 99.87 MB / 490.8 MB Notification: Performance of matching and sorting (n=1304) (initialization): time 0.03984/5.689, allocations: 12.26 MB / 0.8414 GB, free: 99.77 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/5.689, allocations: 4.75 kB / 0.8414 GB, free: 99.77 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006311/5.69, allocations: 215.2 kB / 0.8416 GB, free: 99.77 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005195/5.695, allocations: 1.055 MB / 0.8426 GB, free: 99.74 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0186/5.714, allocations: 2.298 MB / 0.8449 GB, free: 99.6 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02156/5.736, allocations: 10.65 MB / 0.8553 GB, free: 94.47 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01537/5.751, allocations: 309.3 kB / 0.8556 GB, free: 94.47 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002958/5.754, allocations: 0.5958 MB / 0.8562 GB, free: 94.47 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * Number of states: 0 () * Number of discrete variables: 63 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (1224): * Single equations (assignments): 1217 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004042/5.758, allocations: 0.6276 MB / 0.8568 GB, free: 94.16 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001955/5.76, allocations: 0.598 MB / 0.8574 GB, free: 94.16 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02077/5.781, allocations: 5.715 MB / 0.8629 GB, free: 93.96 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001367/5.781, allocations: 35.66 kB / 0.863 GB, free: 93.96 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.67e-05/5.781, allocations: 10.94 kB / 0.863 GB, free: 93.96 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.95e-05/5.781, allocations: 13.55 kB / 0.863 GB, free: 93.96 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05054/5.832, allocations: 13.2 MB / 0.8759 GB, free: 93.35 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.798e-05/5.832, allocations: 3.656 kB / 0.8759 GB, free: 93.35 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007476/5.839, allocations: 0.5151 MB / 0.8764 GB, free: 93.32 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004476/5.844, allocations: 0.7015 MB / 0.8771 GB, free: 93.29 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009125/5.845, allocations: 12.38 kB / 0.8771 GB, free: 93.29 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01855/5.863, allocations: 9.506 MB / 0.8864 GB, free: 88.25 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/5.864, allocations: 6.594 kB / 0.8864 GB, free: 88.25 MB / 490.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03167/5.895, allocations: 9.846 MB / 0.896 GB, free: 87.46 MB / 490.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03875/5.934, allocations: 13.83 MB / 0.9095 GB, free: 84.57 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005174/5.939, allocations: 1.064 MB / 0.9105 GB, free: 83.95 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002834/5.942, allocations: 7.5 kB / 0.9106 GB, free: 83.95 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007622/5.95, allocations: 106.9 kB / 0.9107 GB, free: 83.95 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001256/5.951, allocations: 151.5 kB / 0.9108 GB, free: 83.93 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005109/5.952, allocations: 84.98 kB / 0.9109 GB, free: 83.91 MB / 490.8 MB Notification: Performance of sort global known variables: time 0.01387/5.966, allocations: 3.847 MB / 0.9146 GB, free: 82.55 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01732/5.983, allocations: 1.602 MB / 0.9162 GB, free: 82.55 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 263 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001548/5.985, allocations: 163.4 kB / 0.9164 GB, free: 82.43 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02437/6.009, allocations: 8.56 MB / 0.9247 GB, free: 79.31 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/6.009, allocations: 0 / 0.9247 GB, free: 79.31 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008838/6.018, allocations: 3.05 MB / 0.9277 GB, free: 77.96 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008346/6.026, allocations: 0.7138 MB / 0.9284 GB, free: 77.68 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06067/6.087, allocations: 14.97 MB / 0.943 GB, free: 71.25 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02668/6.114, allocations: 6.598 MB / 0.9495 GB, free: 66.34 MB / 490.8 MB Notification: Performance of SimCode: time 2.785e-06/6.114, allocations: 0 / 0.9495 GB, free: 66.34 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat does not exist to compare? outputFormat=mat