Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Worldtorque,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_Worldtorque",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.548/2.548, allocations: 235 MB / 242 MB, free: 9.762 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1719/2.72, allocations: 57.2 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/2.996, allocations: 54.86 MB / 354.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4543/3.451, allocations: 98.93 MB / 453 MB, free: 33.01 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/3.451, allocations: 77.3 kB / 453.1 MB, free: 33 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: 2470 * Number of variables: 2470 Notification: Performance of Generate backend data structure: time 0.8048/4.256, allocations: 145.2 MB / 0.5842 GB, free: 216 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.292e-05/4.256, allocations: 12 kB / 0.5842 GB, free: 204 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1164/4.372, allocations: 9.127 MB / 0.5932 GB, free: 7.043 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04216/4.415, allocations: 8.937 MB / 0.6019 GB, free: 14.02 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006209/4.415, allocations: 232 kB / 0.6021 GB, free: 13.79 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004351/4.42, allocations: 419.8 kB / 0.6025 GB, free: 13.38 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03364/4.453, allocations: 9.76 MB / 0.612 GB, free: 3.613 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2479/4.701, allocations: 14.92 MB / 0.6266 GB, free: 109.8 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005716/4.702, allocations: 99.25 kB / 0.6267 GB, free: 109.8 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003871/4.706, allocations: 41.47 kB / 0.6267 GB, free: 109.8 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003862/4.71, allocations: 1.643 MB / 0.6283 GB, free: 109.8 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1271/4.837, allocations: 71.1 MB / 0.6978 GB, free: 69.48 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01194/4.849, allocations: 5.07 MB / 0.7027 GB, free: 68.79 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008616/4.857, allocations: 3.434 MB / 0.7061 GB, free: 68.75 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03031/4.888, allocations: 9.776 MB / 0.7156 GB, free: 64.01 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.497e-05/4.888, allocations: 66.64 kB / 0.7157 GB, free: 63.96 MB / 474.7 MB Notification: Performance of pre-optimization done (n=243): time 6.843e-06/4.888, allocations: 3.906 kB / 0.7157 GB, free: 63.96 MB / 474.7 MB Notification: Performance of matching and sorting (n=263): time 0.1224/5.01, allocations: 23.3 MB / 0.7384 GB, free: 53.68 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/5.011, allocations: 256.3 kB / 0.7387 GB, free: 53.39 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02202/5.033, allocations: 4.992 MB / 0.7436 GB, free: 51.61 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009242/5.034, allocations: 25.7 kB / 0.7436 GB, free: 51.58 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006269/5.04, allocations: 4.634 MB / 0.7481 GB, free: 48.11 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002859/5.043, allocations: 0.9938 MB / 0.7491 GB, free: 47.38 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00206/5.045, allocations: 0 / 0.7491 GB, free: 47.38 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001859/5.047, allocations: 0.6836 MB / 0.7498 GB, free: 46.91 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01107/5.058, allocations: 2.86 MB / 0.7525 GB, free: 45.92 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01326/5.071, allocations: 8.313 MB / 0.7607 GB, free: 37.54 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01501/5.087, allocations: 4.866 MB / 0.7654 GB, free: 36.11 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002375/5.087, allocations: 54.34 kB / 0.7655 GB, free: 36.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=1160) (initialization): time 0.04201/5.129, allocations: 10.49 MB / 0.7757 GB, free: 32.51 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/5.129, allocations: 9.219 kB / 0.7757 GB, free: 32.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004469/5.129, allocations: 196.6 kB / 0.7759 GB, free: 32.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004245/5.134, allocations: 0.8459 MB / 0.7767 GB, free: 32.29 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02042/5.154, allocations: 2.042 MB / 0.7787 GB, free: 30.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02074/5.175, allocations: 8.072 MB / 0.7866 GB, free: 22.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01285/5.188, allocations: 279.6 kB / 0.7869 GB, free: 22.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002594/5.19, allocations: 0.5345 MB / 0.7874 GB, free: 22.05 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 891 * Number of states: 0 () * Number of discrete variables: 54 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (1094): * Single equations (assignments): 1088 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003549/5.194, allocations: 0.5835 MB / 0.788 GB, free: 21.46 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001719/5.196, allocations: 0.5163 MB / 0.7885 GB, free: 20.94 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01969/5.216, allocations: 4.35 MB / 0.7927 GB, free: 17.32 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001671/5.216, allocations: 27.91 kB / 0.7928 GB, free: 17.29 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-05/5.216, allocations: 8 kB / 0.7928 GB, free: 17.28 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.412e-05/5.216, allocations: 11.2 kB / 0.7928 GB, free: 17.28 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05187/5.268, allocations: 10.14 MB / 0.8027 GB, free: 9.012 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-05/5.268, allocations: 3.906 kB / 0.8027 GB, free: 9.008 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009508/5.277, allocations: 413.2 kB / 0.8031 GB, free: 8.672 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005435/5.283, allocations: 0.5302 MB / 0.8036 GB, free: 8.254 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008485/5.284, allocations: 11.19 kB / 0.8036 GB, free: 8.246 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02113/5.305, allocations: 7.13 MB / 0.8106 GB, free: 1.363 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.22e-05/5.305, allocations: 4.047 kB / 0.8106 GB, free: 1.359 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.296/5.601, allocations: 8.076 MB / 0.8185 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03063/5.632, allocations: 11 MB / 0.8292 GB, free: 101.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003864/5.636, allocations: 0.886 MB / 0.8301 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001727/5.638, allocations: 9.531 kB / 0.8301 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005263/5.643, allocations: 85.62 kB / 0.8302 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007481/5.644, allocations: 121.6 kB / 0.8303 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003739/5.644, allocations: 71.17 kB / 0.8303 GB, free: 101.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01049/5.654, allocations: 3.394 MB / 0.8337 GB, free: 101.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01471/5.669, allocations: 1.333 MB / 0.835 GB, free: 101.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 209 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(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.001099/5.67, allocations: 153.4 kB / 0.8351 GB, free: 101.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01889/5.689, allocations: 7.085 MB / 0.842 GB, free: 101 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.686e-06/5.689, allocations: 0 / 0.842 GB, free: 101 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00648/5.696, allocations: 2.401 MB / 0.8444 GB, free: 100.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00906/5.705, allocations: 0.5799 MB / 0.8449 GB, free: 100.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05236/5.757, allocations: 12.35 MB / 0.857 GB, free: 98.37 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01796/5.775, allocations: 5.626 MB / 0.8625 GB, free: 97.49 MB / 474.7 MB Notification: Performance of SimCode: time 2.234e-06/5.775, allocations: 3.281 kB / 0.8625 GB, free: 97.49 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.Worldtorque_res.mat does not exist to compare? outputFormat=mat