Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques",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.573/2.573, allocations: 235 MB / 242 MB, free: 9.773 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2016/2.774, allocations: 57.2 MB / 299.2 MB, free: 460 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3149/3.089, allocations: 54.85 MB / 354.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.535/3.624, allocations: 102.1 MB / 456.2 MB, free: 34.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004665/3.625, allocations: 79.77 kB / 456.3 MB, free: 34.52 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.803/4.428, allocations: 140.8 MB / 0.583 GB, free: 1.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.237e-05/4.428, allocations: 15.98 kB / 0.583 GB, free: 1.574 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08607/4.514, allocations: 6.799 MB / 0.5897 GB, free: 10.75 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04021/4.554, allocations: 7.597 MB / 0.5971 GB, free: 3.066 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006535/4.555, allocations: 228 kB / 0.5973 GB, free: 2.844 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004351/4.56, allocations: 415.8 kB / 0.5977 GB, free: 2.438 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03435/4.594, allocations: 10.11 MB / 0.6076 GB, free: 8.32 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2737/4.868, allocations: 15.1 MB / 0.6223 GB, free: 110.3 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000537/4.868, allocations: 86.62 kB / 0.6224 GB, free: 110.3 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003417/4.872, allocations: 43.62 kB / 0.6225 GB, free: 110.3 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003753/4.875, allocations: 1.73 MB / 0.6241 GB, free: 110.3 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1387/5.014, allocations: 70.73 MB / 0.6932 GB, free: 71.71 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01518/5.029, allocations: 5.91 MB / 0.699 GB, free: 71.02 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01346/5.043, allocations: 4.083 MB / 0.703 GB, free: 70.97 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03871/5.082, allocations: 10.81 MB / 0.7135 GB, free: 66.43 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.766e-05/5.082, allocations: 66.03 kB / 0.7136 GB, free: 66.37 MB / 474.7 MB Notification: Performance of pre-optimization done (n=278): time 7.925e-06/5.082, allocations: 3.875 kB / 0.7136 GB, free: 66.37 MB / 474.7 MB Notification: Performance of matching and sorting (n=320): time 0.1181/5.2, allocations: 26.82 MB / 0.7398 GB, free: 55.85 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/5.2, allocations: 238.2 kB / 0.74 GB, free: 55.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01512/5.215, allocations: 4.683 MB / 0.7446 GB, free: 53.95 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001187/5.216, allocations: 28.75 kB / 0.7446 GB, free: 53.92 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004571/5.221, allocations: 4.544 MB / 0.7491 GB, free: 50.48 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002443/5.224, allocations: 1.171 MB / 0.7502 GB, free: 49.61 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001408/5.225, allocations: 0 / 0.7502 GB, free: 49.61 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000753/5.226, allocations: 0.6961 MB / 0.7509 GB, free: 49.13 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01146/5.237, allocations: 3.654 MB / 0.7545 GB, free: 47.85 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01591/5.253, allocations: 8.879 MB / 0.7631 GB, free: 39.52 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01714/5.27, allocations: 5.668 MB / 0.7687 GB, free: 37.73 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002554/5.271, allocations: 52.81 kB / 0.7687 GB, free: 37.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=1203) (initialization): time 0.04799/5.319, allocations: 12.73 MB / 0.7811 GB, free: 30.79 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.024e-05/5.319, allocations: 11.28 kB / 0.7811 GB, free: 30.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003842/5.319, allocations: 184 kB / 0.7813 GB, free: 30.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008969/5.328, allocations: 1.625 MB / 0.7829 GB, free: 29.33 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01945/5.348, allocations: 2.142 MB / 0.785 GB, free: 27.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03096/5.379, allocations: 10.38 MB / 0.7951 GB, free: 18.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01416/5.393, allocations: 306.9 kB / 0.7954 GB, free: 17.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00283/5.396, allocations: 0.5491 MB / 0.796 GB, free: 17.33 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 848 * Number of states: 0 () * Number of discrete variables: 54 (FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],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 (1131): * Single equations (assignments): 1126 * 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.004463/5.4, allocations: 0.5586 MB / 0.7965 GB, free: 16.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002041/5.402, allocations: 0.5013 MB / 0.797 GB, free: 16.26 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02708/5.43, allocations: 6.833 MB / 0.8037 GB, free: 10.68 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001478/5.43, allocations: 28 kB / 0.8037 GB, free: 10.65 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.231e-05/5.43, allocations: 15.38 kB / 0.8037 GB, free: 10.64 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-05/5.43, allocations: 17.36 kB / 0.8037 GB, free: 10.63 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2844/5.714, allocations: 14.27 MB / 0.8177 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.052e-05/5.715, allocations: 10.94 kB / 0.8177 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008304/5.723, allocations: 0.5221 MB / 0.8182 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008601/5.732, allocations: 1.319 MB / 0.8195 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009838/5.733, allocations: 12.66 kB / 0.8195 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02738/5.76, allocations: 9.649 MB / 0.8289 GB, free: 101.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/5.76, allocations: 3.828 kB / 0.8289 GB, free: 101.7 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04177/5.802, allocations: 11.5 MB / 0.8402 GB, free: 101 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04772/5.85, allocations: 16.07 MB / 0.8558 GB, free: 99.91 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004743/5.854, allocations: 1.056 MB / 0.8569 GB, free: 99.82 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002194/5.857, allocations: 6.562 kB / 0.8569 GB, free: 99.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007407/5.864, allocations: 107.8 kB / 0.857 GB, free: 99.82 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00134/5.866, allocations: 149.7 kB / 0.8571 GB, free: 99.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005177/5.866, allocations: 76.03 kB / 0.8572 GB, free: 99.82 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01083/5.877, allocations: 3.167 MB / 0.8603 GB, free: 99.64 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01531/5.892, allocations: 1.449 MB / 0.8617 GB, free: 99.64 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (264): * Single equations (assignments): 259 * 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.001464/5.894, allocations: 152.8 kB / 0.8619 GB, free: 99.55 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03216/5.926, allocations: 8.938 MB / 0.8706 GB, free: 99.32 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/5.926, allocations: 0 / 0.8706 GB, free: 99.32 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01745/5.944, allocations: 3.448 MB / 0.8739 GB, free: 99.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008895/5.952, allocations: 0.5097 MB / 0.8744 GB, free: 99.08 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07373/6.026, allocations: 13.5 MB / 0.8876 GB, free: 95.25 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02675/6.053, allocations: 5.588 MB / 0.8931 GB, free: 93.55 MB / 474.7 MB Notification: Performance of SimCode: time 2.665e-06/6.053, allocations: 0 / 0.8931 GB, free: 93.55 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques_res.mat does not exist to compare? outputFormat=mat