Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_FrameTorques",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.756/2.756, allocations: 235.1 MB / 242 MB, free: 9.758 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1712/2.927, allocations: 57.2 MB / 299.2 MB, free: 448 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/3.276, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4426/3.718, allocations: 100 MB / 454.1 MB, free: 33.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/3.719, allocations: 81.16 kB / 454.2 MB, free: 33.7 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: 1956 * Number of variables: 1956 Notification: Performance of Generate backend data structure: time 0.6256/4.344, allocations: 116.2 MB / 0.5571 GB, free: 12.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.199e-05/4.344, allocations: 12 kB / 0.5571 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08405/4.429, allocations: 6.582 MB / 0.5635 GB, free: 5.645 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03536/4.464, allocations: 6.923 MB / 0.5703 GB, free: 14.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005156/4.465, allocations: 188 kB / 0.5704 GB, free: 14.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003656/4.468, allocations: 331.8 kB / 0.5708 GB, free: 14.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02752/4.496, allocations: 7.695 MB / 0.5783 GB, free: 6.457 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04207/4.538, allocations: 11.96 MB / 0.5899 GB, free: 9.238 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004446/4.538, allocations: 83.33 kB / 0.59 GB, free: 9.156 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002954/4.541, allocations: 36 kB / 0.5901 GB, free: 9.121 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003664/4.545, allocations: 1.34 MB / 0.5914 GB, free: 7.777 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3222/4.867, allocations: 58.67 MB / 0.6487 GB, free: 95.49 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008723/4.876, allocations: 3.731 MB / 0.6523 GB, free: 94.8 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005734/4.882, allocations: 2.386 MB / 0.6546 GB, free: 94.76 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02068/4.903, allocations: 6.969 MB / 0.6614 GB, free: 93.21 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.13e-05/4.903, allocations: 57.73 kB / 0.6615 GB, free: 93.17 MB / 474.7 MB Notification: Performance of pre-optimization done (n=174): time 6.933e-06/4.903, allocations: 0 / 0.6615 GB, free: 93.17 MB / 474.7 MB Notification: Performance of matching and sorting (n=188): time 0.06953/4.972, allocations: 16.9 MB / 0.678 GB, free: 88.77 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001442/4.973, allocations: 226.7 kB / 0.6782 GB, free: 88.52 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01865/4.991, allocations: 4.217 MB / 0.6823 GB, free: 88.12 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000762/4.992, allocations: 25.7 kB / 0.6824 GB, free: 88.09 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00596/4.998, allocations: 3.849 MB / 0.6861 GB, free: 85.97 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00202/5, allocations: 0.736 MB / 0.6868 GB, free: 85.56 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001612/5.002, allocations: 0 / 0.6868 GB, free: 85.56 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001225/5.003, allocations: 0.6134 MB / 0.6874 GB, free: 85.25 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01052/5.014, allocations: 2.247 MB / 0.6896 GB, free: 85.23 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01325/5.027, allocations: 6.903 MB / 0.6964 GB, free: 79.16 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01169/5.039, allocations: 3.952 MB / 0.7002 GB, free: 78.94 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002855/5.039, allocations: 50.41 kB / 0.7003 GB, free: 78.94 MB / 474.7 MB Notification: Performance of matching and sorting (n=972) (initialization): time 0.02826/5.067, allocations: 8.424 MB / 0.7085 GB, free: 76.64 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/5.068, allocations: 10.03 kB / 0.7085 GB, free: 76.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003232/5.068, allocations: 169.4 kB / 0.7087 GB, free: 76.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003071/5.071, allocations: 0.6158 MB / 0.7093 GB, free: 76.54 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01288/5.084, allocations: 1.694 MB / 0.7109 GB, free: 76.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/5.095, allocations: 5.45 MB / 0.7163 GB, free: 72.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0103/5.105, allocations: 227.1 kB / 0.7165 GB, free: 72.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002249/5.107, allocations: 466.2 kB / 0.7169 GB, free: 72.58 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 764 * Number of states: 0 () * Number of discrete variables: 42 (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],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.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 (920): * Single equations (assignments): 915 * 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 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002538/5.11, allocations: 0.5159 MB / 0.7174 GB, free: 72.15 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0013/5.111, allocations: 426.2 kB / 0.7178 GB, free: 71.92 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01096/5.122, allocations: 2.891 MB / 0.7207 GB, free: 70.91 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000114/5.122, allocations: 19.62 kB / 0.7207 GB, free: 70.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.634e-05/5.122, allocations: 7.344 kB / 0.7207 GB, free: 70.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.66e-05/5.122, allocations: 6.75 kB / 0.7207 GB, free: 70.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02727/5.15, allocations: 7.219 MB / 0.7277 GB, free: 68.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.13e-05/5.15, allocations: 0 / 0.7277 GB, free: 68.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003583/5.153, allocations: 262.7 kB / 0.728 GB, free: 68.29 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002198/5.156, allocations: 363.7 kB / 0.7283 GB, free: 68.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004606/5.156, allocations: 11.09 kB / 0.7283 GB, free: 68.19 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009665/5.166, allocations: 4.743 MB / 0.733 GB, free: 64.78 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/5.166, allocations: 4.562 kB / 0.733 GB, free: 64.78 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0164/5.182, allocations: 5.612 MB / 0.7385 GB, free: 62.35 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02112/5.204, allocations: 7.934 MB / 0.7462 GB, free: 58.04 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002896/5.206, allocations: 0.7016 MB / 0.7469 GB, free: 57.36 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001475/5.208, allocations: 3.906 kB / 0.7469 GB, free: 57.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004146/5.212, allocations: 45.95 kB / 0.7469 GB, free: 57.33 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005872/5.213, allocations: 81.5 kB / 0.747 GB, free: 57.29 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002611/5.213, allocations: 51.97 kB / 0.7471 GB, free: 57.24 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.008411/5.221, allocations: 2.859 MB / 0.7499 GB, free: 54.75 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01153/5.233, allocations: 1.048 MB / 0.7509 GB, free: 53.71 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (147): * Single equations (assignments): 142 * 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 {(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.0008534/5.234, allocations: 146.8 kB / 0.751 GB, free: 53.57 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01431/5.248, allocations: 5.474 MB / 0.7564 GB, free: 48.62 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.198e-06/5.248, allocations: 4 kB / 0.7564 GB, free: 48.62 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00414/5.252, allocations: 1.631 MB / 0.758 GB, free: 47.12 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004675/5.257, allocations: 468 kB / 0.7584 GB, free: 46.73 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03428/5.292, allocations: 9.555 MB / 0.7677 GB, free: 38.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02131/5.313, allocations: 4.571 MB / 0.7722 GB, free: 34.73 MB / 474.7 MB Notification: Performance of SimCode: time 1.683e-06/5.313, allocations: 0 / 0.7722 GB, free: 34.73 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat does not exist to compare? outputFormat=mat