Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",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.584/2.584, allocations: 235.1 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2046/2.789, allocations: 57.2 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/3.08, allocations: 54.86 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4323/3.513, allocations: 100.5 MB / 454.6 MB, free: 33.94 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/3.513, allocations: 84.84 kB / 454.7 MB, free: 33.93 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: 2410 * Number of variables: 2410 Notification: Performance of Generate backend data structure: time 0.6624/4.175, allocations: 135.1 MB / 0.576 GB, free: 8.805 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.546e-05/4.176, allocations: 8 kB / 0.576 GB, free: 8.797 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06305/4.239, allocations: 6.749 MB / 0.5826 GB, free: 2.027 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03457/4.273, allocations: 7.315 MB / 0.5897 GB, free: 10.65 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006128/4.274, allocations: 223.9 kB / 0.59 GB, free: 10.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004202/4.278, allocations: 399.9 kB / 0.5903 GB, free: 10.04 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03806/4.316, allocations: 9.809 MB / 0.5999 GB, free: 232 kB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05575/4.372, allocations: 14.67 MB / 0.6142 GB, free: 208 kB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008637/4.373, allocations: 91.11 kB / 0.6143 GB, free: 116 kB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004883/4.378, allocations: 40 kB / 0.6144 GB, free: 76 kB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2222/4.6, allocations: 1.667 MB / 0.616 GB, free: 120.5 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1444/4.745, allocations: 68.41 MB / 0.6828 GB, free: 83.33 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01696/4.762, allocations: 5.916 MB / 0.6886 GB, free: 82.66 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01053/4.772, allocations: 4.119 MB / 0.6926 GB, free: 82.62 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03573/4.808, allocations: 11.26 MB / 0.7036 GB, free: 78.84 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.377e-05/4.808, allocations: 67.61 kB / 0.7037 GB, free: 78.78 MB / 474.7 MB Notification: Performance of pre-optimization done (n=272): time 8.807e-06/4.808, allocations: 0 / 0.7037 GB, free: 78.78 MB / 474.7 MB Notification: Performance of matching and sorting (n=314): time 0.1565/4.965, allocations: 26.3 MB / 0.7293 GB, free: 69.35 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.873e-05/4.965, allocations: 211.4 kB / 0.7295 GB, free: 69.13 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0188/4.984, allocations: 4.391 MB / 0.7338 GB, free: 67.55 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001281/4.985, allocations: 25.7 kB / 0.7339 GB, free: 67.52 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005877/4.991, allocations: 4.366 MB / 0.7381 GB, free: 64.21 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0033/4.994, allocations: 1.145 MB / 0.7392 GB, free: 63.36 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002251/4.997, allocations: 0 / 0.7392 GB, free: 63.36 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001764/4.999, allocations: 0.6749 MB / 0.7399 GB, free: 62.89 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01656/5.015, allocations: 3.699 MB / 0.7435 GB, free: 61.59 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0215/5.037, allocations: 8.704 MB / 0.752 GB, free: 53.55 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02154/5.058, allocations: 5.636 MB / 0.7575 GB, free: 51.15 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004149/5.059, allocations: 52 kB / 0.7576 GB, free: 51.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=1155) (initialization): time 0.05522/5.114, allocations: 12.66 MB / 0.7699 GB, free: 40.45 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/5.114, allocations: 4 kB / 0.7699 GB, free: 40.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003266/5.115, allocations: 176 kB / 0.7701 GB, free: 40.28 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01023/5.125, allocations: 1.61 MB / 0.7717 GB, free: 39.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02189/5.147, allocations: 2.107 MB / 0.7737 GB, free: 37.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02876/5.176, allocations: 10.43 MB / 0.7839 GB, free: 27.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01405/5.19, allocations: 305.7 kB / 0.7842 GB, free: 27.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002816/5.193, allocations: 0.5215 MB / 0.7847 GB, free: 27.06 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 812 * Number of states: 0 () * Number of discrete variables: 51 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[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 (1083): * Single equations (assignments): 1078 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004281/5.197, allocations: 0.5443 MB / 0.7852 GB, free: 26.51 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002822/5.2, allocations: 485.8 kB / 0.7857 GB, free: 26.03 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03151/5.231, allocations: 7.022 MB / 0.7926 GB, free: 20.25 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001347/5.231, allocations: 28 kB / 0.7926 GB, free: 20.22 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.558e-05/5.231, allocations: 15.91 kB / 0.7926 GB, free: 20.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.313e-05/5.232, allocations: 15.09 kB / 0.7926 GB, free: 20.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05624/5.288, allocations: 14.28 MB / 0.8066 GB, free: 8.535 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.882e-05/5.288, allocations: 0 / 0.8066 GB, free: 8.535 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01174/5.3, allocations: 0.556 MB / 0.8071 GB, free: 8.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008254/5.308, allocations: 1.332 MB / 0.8084 GB, free: 7.117 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009589/5.309, allocations: 8 kB / 0.8084 GB, free: 7.109 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2599/5.569, allocations: 9.646 MB / 0.8178 GB, free: 109.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/5.569, allocations: 3.531 kB / 0.8178 GB, free: 109.1 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03657/5.606, allocations: 11.76 MB / 0.8293 GB, free: 108.5 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05477/5.66, allocations: 16.5 MB / 0.8454 GB, free: 107.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004779/5.665, allocations: 1.058 MB / 0.8465 GB, free: 107.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002675/5.668, allocations: 0 / 0.8465 GB, free: 107.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007517/5.676, allocations: 154.3 kB / 0.8466 GB, free: 107.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001305/5.677, allocations: 142.1 kB / 0.8468 GB, free: 107.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005627/5.677, allocations: 77.06 kB / 0.8468 GB, free: 107.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.009448/5.687, allocations: 2.956 MB / 0.8497 GB, free: 107.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01417/5.701, allocations: 1.425 MB / 0.8511 GB, free: 107.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (258): * Single equations (assignments): 253 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001441/5.703, allocations: 154.4 kB / 0.8513 GB, free: 107.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02709/5.73, allocations: 9.056 MB / 0.8601 GB, free: 106.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/5.73, allocations: 0 / 0.8601 GB, free: 106.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01439/5.744, allocations: 3.562 MB / 0.8636 GB, free: 106.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007356/5.752, allocations: 487.1 kB / 0.864 GB, free: 106.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04727/5.799, allocations: 13.19 MB / 0.8769 GB, free: 104.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0203/5.819, allocations: 5.386 MB / 0.8822 GB, free: 102.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.834e-06/5.819, allocations: 0 / 0.8822 GB, free: 102.7 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat does not exist to compare? outputFormat=mat