Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_Torque",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.44/2.44, allocations: 235 MB / 242 MB, free: 9.762 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2065/2.647, allocations: 57.21 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/2.942, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4672/3.409, allocations: 100.7 MB / 454.7 MB, free: 33.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003637/3.409, allocations: 79.38 kB / 454.8 MB, free: 33.98 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: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.7617/4.171, allocations: 134.3 MB / 0.5753 GB, free: 9.469 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/4.171, allocations: 12 kB / 0.5754 GB, free: 9.457 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06921/4.241, allocations: 6.764 MB / 0.582 GB, free: 2.668 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03715/4.278, allocations: 7.516 MB / 0.5893 GB, free: 11.07 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008307/4.279, allocations: 224 kB / 0.5895 GB, free: 10.85 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004503/4.283, allocations: 391.9 kB / 0.5899 GB, free: 10.46 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03235/4.316, allocations: 9.536 MB / 0.5992 GB, free: 0.9219 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05096/4.367, allocations: 14.61 MB / 0.6135 GB, free: 0.8359 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006224/4.367, allocations: 95.2 kB / 0.6136 GB, free: 0.7422 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003798/4.371, allocations: 44 kB / 0.6136 GB, free: 0.6992 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.227/4.598, allocations: 1.643 MB / 0.6152 GB, free: 119.1 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1503/4.749, allocations: 71.03 MB / 0.6846 GB, free: 78.39 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01636/4.765, allocations: 5.536 MB / 0.69 GB, free: 77.71 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01186/4.777, allocations: 3.823 MB / 0.6937 GB, free: 77.66 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04162/4.819, allocations: 10.12 MB / 0.7036 GB, free: 74.91 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.981e-05/4.819, allocations: 62.81 kB / 0.7036 GB, free: 74.86 MB / 474.7 MB Notification: Performance of pre-optimization done (n=254): time 1.118e-05/4.819, allocations: 0 / 0.7036 GB, free: 74.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=298): time 0.1413/4.96, allocations: 25.62 MB / 0.7287 GB, free: 64.73 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001609/4.96, allocations: 236.5 kB / 0.7289 GB, free: 64.47 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02173/4.982, allocations: 4.887 MB / 0.7337 GB, free: 62.77 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001319/4.983, allocations: 25.7 kB / 0.7337 GB, free: 62.73 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00626/4.99, allocations: 4.518 MB / 0.7381 GB, free: 59.27 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003078/4.993, allocations: 1.112 MB / 0.7392 GB, free: 58.46 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002003/4.995, allocations: 0 / 0.7392 GB, free: 58.46 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001433/4.996, allocations: 0.6969 MB / 0.7399 GB, free: 57.98 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01462/5.011, allocations: 3.494 MB / 0.7433 GB, free: 56.77 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02406/5.035, allocations: 8.936 MB / 0.752 GB, free: 48.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02503/5.06, allocations: 5.56 MB / 0.7574 GB, free: 46.55 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004671/5.061, allocations: 55.91 kB / 0.7575 GB, free: 46.55 MB / 474.7 MB Notification: Performance of matching and sorting (n=1214) (initialization): time 0.0626/5.124, allocations: 12.52 MB / 0.7697 GB, free: 38.25 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/5.124, allocations: 7.281 kB / 0.7697 GB, free: 38.24 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003763/5.124, allocations: 199.9 kB / 0.7699 GB, free: 38.05 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0136/5.138, allocations: 1.642 MB / 0.7715 GB, free: 36.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02113/5.159, allocations: 2.144 MB / 0.7736 GB, free: 34.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02997/5.189, allocations: 10.27 MB / 0.7836 GB, free: 25.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01928/5.208, allocations: 313.2 kB / 0.7839 GB, free: 25.36 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002965/5.211, allocations: 0.5505 MB / 0.7845 GB, free: 24.83 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 886 * Number of states: 0 () * Number of discrete variables: 60 (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],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (1142): * Single equations (assignments): 1137 * 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.003345/5.215, allocations: 0.5911 MB / 0.7851 GB, free: 24.23 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001703/5.216, allocations: 0.5121 MB / 0.7856 GB, free: 23.72 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02496/5.241, allocations: 6.355 MB / 0.7918 GB, free: 18.55 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001442/5.242, allocations: 28 kB / 0.7918 GB, free: 18.52 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.649e-05/5.242, allocations: 14.55 kB / 0.7918 GB, free: 18.51 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.531e-05/5.242, allocations: 14.55 kB / 0.7918 GB, free: 18.51 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04952/5.291, allocations: 13.24 MB / 0.8047 GB, free: 7.762 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.57e-05/5.291, allocations: 4 kB / 0.8047 GB, free: 7.758 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00677/5.298, allocations: 474.5 kB / 0.8052 GB, free: 7.375 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008431/5.307, allocations: 1.323 MB / 0.8065 GB, free: 6.41 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001111/5.308, allocations: 8 kB / 0.8065 GB, free: 6.402 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.262/5.57, allocations: 9.671 MB / 0.8159 GB, free: 107.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/5.57, allocations: 0 / 0.8159 GB, free: 107.8 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03885/5.609, allocations: 10.7 MB / 0.8264 GB, free: 107.1 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04669/5.655, allocations: 14.9 MB / 0.8409 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005277/5.661, allocations: 1.015 MB / 0.8419 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003647/5.665, allocations: 3.531 kB / 0.8419 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009608/5.674, allocations: 107 kB / 0.842 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001726/5.676, allocations: 136.7 kB / 0.8422 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000892/5.677, allocations: 78.2 kB / 0.8422 GB, free: 105.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0148/5.692, allocations: 3.297 MB / 0.8455 GB, free: 105.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.02308/5.715, allocations: 1.404 MB / 0.8468 GB, free: 105.7 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 (241): * Single equations (assignments): 236 * 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.002016/5.717, allocations: 156.1 kB / 0.847 GB, free: 105.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03426/5.751, allocations: 8.542 MB / 0.8553 GB, free: 105.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/5.751, allocations: 0 / 0.8553 GB, free: 105.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0138/5.765, allocations: 3.201 MB / 0.8584 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007761/5.773, allocations: 0.5097 MB / 0.8589 GB, free: 105.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05443/5.827, allocations: 13.04 MB / 0.8717 GB, free: 102.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01808/5.846, allocations: 5.447 MB / 0.877 GB, free: 102 MB / 474.7 MB Notification: Performance of SimCode: time 1.823e-06/5.846, allocations: 2.938 kB / 0.877 GB, free: 102 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat