Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_Torque3",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.401/2.401, allocations: 235 MB / 242 MB, free: 9.746 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2024/2.603, allocations: 57.21 MB / 299.2 MB, free: 428 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/2.883, allocations: 54.83 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4954/3.378, allocations: 103.1 MB / 457.2 MB, free: 34.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000309/3.378, allocations: 81.05 kB / 457.3 MB, free: 34.6 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: 4184 * Number of variables: 4184 Notification: Performance of Generate backend data structure: time 1.447/4.826, allocations: 227.7 MB / 0.6689 GB, free: 46.89 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/4.826, allocations: 7 kB / 0.669 GB, free: 46.89 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.107/4.933, allocations: 12.2 MB / 0.6809 GB, free: 46.08 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0638/4.997, allocations: 12.67 MB / 0.6932 GB, free: 44.69 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001069/4.998, allocations: 393.8 kB / 0.6936 GB, free: 44.69 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007799/5.006, allocations: 0.7053 MB / 0.6943 GB, free: 44.68 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06092/5.067, allocations: 17.27 MB / 0.7112 GB, free: 44.62 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09321/5.16, allocations: 24.97 MB / 0.7355 GB, free: 29.93 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001018/5.161, allocations: 143.1 kB / 0.7357 GB, free: 29.85 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006645/5.168, allocations: 63.8 kB / 0.7357 GB, free: 29.79 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006745/5.175, allocations: 2.865 MB / 0.7385 GB, free: 27.46 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7419/5.916, allocations: 112.7 MB / 0.8486 GB, free: 55.34 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04882/5.965, allocations: 11.43 MB / 0.8597 GB, free: 54.09 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01926/5.985, allocations: 8.161 MB / 0.8677 GB, free: 54.03 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07052/6.055, allocations: 23.08 MB / 0.8903 GB, free: 49.2 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001805/6.055, allocations: 92.56 kB / 0.8903 GB, free: 49.16 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=524): time 1.587e-05/6.056, allocations: 0 / 0.8903 GB, free: 49.16 MB / 0.4949 GB Notification: Performance of matching and sorting (n=609): time 0.2683/6.324, allocations: 51.64 MB / 0.9408 GB, free: 34.5 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/6.324, allocations: 322.3 kB / 0.9411 GB, free: 34.17 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.031/6.355, allocations: 7.187 MB / 0.9481 GB, free: 31.65 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.002466/6.358, allocations: 28.42 kB / 0.9481 GB, free: 31.62 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.009693/6.367, allocations: 7.154 MB / 0.9551 GB, free: 26.25 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.007052/6.374, allocations: 2.166 MB / 0.9572 GB, free: 24.62 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004391/6.379, allocations: 0 / 0.9572 GB, free: 24.62 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.003351/6.382, allocations: 0.9198 MB / 0.9581 GB, free: 24.06 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02695/6.409, allocations: 6.351 MB / 0.9643 GB, free: 21.8 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02803/6.437, allocations: 14.15 MB / 0.9781 GB, free: 7.48 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02968/6.467, allocations: 9.456 MB / 0.9874 GB, free: 28 kB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001189/6.468, allocations: 118 kB / 0.9875 GB, free: 28 kB / 0.4949 GB Notification: Performance of matching and sorting (n=1904) (initialization): time 0.385/6.854, allocations: 21.61 MB / 1.009 GB, free: 100.6 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/6.854, allocations: 10.75 kB / 1.009 GB, free: 100.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005414/6.854, allocations: 272.8 kB / 1.009 GB, free: 100.6 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01869/6.873, allocations: 3.113 MB / 1.012 GB, free: 100.6 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03706/6.91, allocations: 3.466 MB / 1.015 GB, free: 100.3 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05991/6.97, allocations: 20.67 MB / 1.035 GB, free: 95.08 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02371/6.994, allocations: 490.3 kB / 1.036 GB, free: 95.08 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00455/6.998, allocations: 0.8356 MB / 1.037 GB, free: 95.08 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1255 * Number of states: 0 () * Number of discrete variables: 105 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[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],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1784): * Single equations (assignments): 1777 * 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 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007488/7.006, allocations: 0.8214 MB / 1.038 GB, free: 94.67 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004135/7.01, allocations: 0.8123 MB / 1.038 GB, free: 94.67 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05385/7.064, allocations: 13.53 MB / 1.052 GB, free: 94.39 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002227/7.064, allocations: 58.03 kB / 1.052 GB, free: 94.39 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.68e-05/7.064, allocations: 21.16 kB / 1.052 GB, free: 94.39 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001936/7.065, allocations: 31.5 kB / 1.052 GB, free: 94.39 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1146/7.179, allocations: 27.18 MB / 1.078 GB, free: 90.18 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.742e-05/7.179, allocations: 3.219 kB / 1.078 GB, free: 90.18 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01581/7.195, allocations: 1.089 MB / 1.079 GB, free: 90.1 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02254/7.218, allocations: 2.63 MB / 1.082 GB, free: 89.55 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002297/7.22, allocations: 15.72 kB / 1.082 GB, free: 89.54 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06079/7.281, allocations: 19.23 MB / 1.101 GB, free: 79.64 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.368e-06/7.281, allocations: 1.375 kB / 1.101 GB, free: 79.64 MB / 0.4949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07437/7.355, allocations: 21.53 MB / 1.122 GB, free: 63.76 MB / 0.4949 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.09585/7.451, allocations: 29.88 MB / 1.151 GB, free: 37.32 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2923/7.744, allocations: 1.934 MB / 1.153 GB, free: 97.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006572/7.75, allocations: 3.875 kB / 1.153 GB, free: 97.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01948/7.77, allocations: 262.6 kB / 1.153 GB, free: 97.5 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003334/7.773, allocations: 283.3 kB / 1.153 GB, free: 97.5 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002473/7.776, allocations: 155.4 kB / 1.153 GB, free: 97.5 MB / 0.4949 GB Notification: Performance of sort global known variables: time 0.01853/7.794, allocations: 4.869 MB / 1.158 GB, free: 97.25 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.02457/7.819, allocations: 2.495 MB / 1.161 GB, free: 97.25 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (522): * Single equations (assignments): 515 * 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 {(4,75.0%) 18,(4,75.0%) 18,(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.002571/7.822, allocations: 183.2 kB / 1.161 GB, free: 97.16 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.05536/7.877, allocations: 15.85 MB / 1.176 GB, free: 96.65 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.612e-05/7.877, allocations: 0 / 1.176 GB, free: 96.65 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.02504/7.902, allocations: 6.672 MB / 1.183 GB, free: 96.2 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01075/7.913, allocations: 0.8383 MB / 1.184 GB, free: 96.17 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1095/8.022, allocations: 23.72 MB / 1.207 GB, free: 92.27 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04053/8.063, allocations: 8.993 MB / 1.216 GB, free: 91.25 MB / 0.4949 GB Notification: Performance of SimCode: time 2.003e-06/8.063, allocations: 3.656 kB / 1.216 GB, free: 91.25 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat