Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) [: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(Modelica): time 1.702/1.702, allocations: 171.2 MB / 178.1 MB, free: 8.285 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1929/1.895, allocations: 41.12 MB / 219.3 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08697/1.982, allocations: 38.76 MB / 258 MB, free: 4.352 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3432/2.326, allocations: 88.48 MB / 346.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003778/2.326, allocations: 82.14 kB / 346.6 MB, free: 15.77 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1732 * Number of variables: 1732 Notification: Performance of Generate backend data structure: time 0.6899/3.016, allocations: 98.5 MB / 445.1 MB, free: 75.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/3.016, allocations: 19.06 kB / 445.1 MB, free: 75.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04217/3.058, allocations: 4.142 MB / 449.2 MB, free: 74.97 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02113/3.079, allocations: 5.082 MB / 454.3 MB, free: 74.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004519/3.08, allocations: 159 kB / 454.5 MB, free: 74.28 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003307/3.083, allocations: 276.5 kB / 454.8 MB, free: 74.28 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02146/3.105, allocations: 7.16 MB / 461.9 MB, free: 72.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04027/3.145, allocations: 10.76 MB / 472.7 MB, free: 67.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004354/3.146, allocations: 61.11 kB / 472.7 MB, free: 67.22 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002703/3.148, allocations: 31.62 kB / 472.8 MB, free: 67.22 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003019/3.151, allocations: 1.273 MB / 474 MB, free: 66.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1163/3.268, allocations: 51.27 MB / 0.513 GB, free: 20.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01219/3.28, allocations: 4.203 MB / 0.5171 GB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007322/3.287, allocations: 2.583 MB / 0.5196 GB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02825/3.316, allocations: 7.268 MB / 0.5267 GB, free: 5.945 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.687e-05/3.316, allocations: 51.88 kB / 0.5268 GB, free: 5.887 MB / 346.7 MB Notification: Performance of pre-optimization done (n=192): time 7.394e-06/3.316, allocations: 4 kB / 0.5268 GB, free: 5.883 MB / 346.7 MB Notification: Performance of matching and sorting (n=213): time 0.2822/3.598, allocations: 15.37 MB / 0.5418 GB, free: 104.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/3.598, allocations: 180.7 kB / 0.542 GB, free: 104.6 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01333/3.612, allocations: 3.448 MB / 0.5453 GB, free: 104.2 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007781/3.612, allocations: 31.72 kB / 0.5453 GB, free: 104.1 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004421/3.617, allocations: 3.294 MB / 0.5486 GB, free: 102.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002051/3.619, allocations: 0.796 MB / 0.5493 GB, free: 101.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001144/3.62, allocations: 0 / 0.5493 GB, free: 101.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0009145/3.621, allocations: 0.5904 MB / 0.5499 GB, free: 101.4 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009825/3.631, allocations: 2.431 MB / 0.5523 GB, free: 101.4 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01282/3.644, allocations: 6.444 MB / 0.5586 GB, free: 96.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/3.654, allocations: 3.97 MB / 0.5625 GB, free: 96.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002127/3.654, allocations: 43.09 kB / 0.5625 GB, free: 96.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=891) (initialization): time 0.02775/3.682, allocations: 8.649 MB / 0.571 GB, free: 94.39 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/3.682, allocations: 3.219 kB / 0.571 GB, free: 94.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002903/3.682, allocations: 145.9 kB / 0.5711 GB, free: 94.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004153/3.687, allocations: 0.8854 MB / 0.572 GB, free: 94.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0113/3.698, allocations: 1.603 MB / 0.5735 GB, free: 94.06 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01257/3.711, allocations: 5.328 MB / 0.5787 GB, free: 91.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0085/3.719, allocations: 210.1 kB / 0.5789 GB, free: 91.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001923/3.721, allocations: 419.2 kB / 0.5793 GB, free: 91.27 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 654 * Number of states: 0 () * Number of discrete variables: 39 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (843): * Single equations (assignments): 839 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003045/3.724, allocations: 470.3 kB / 0.5798 GB, free: 90.88 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001195/3.725, allocations: 356.5 kB / 0.5801 GB, free: 90.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01289/3.738, allocations: 3.887 MB / 0.5839 GB, free: 89.33 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001066/3.738, allocations: 18 kB / 0.5839 GB, free: 89.33 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.115e-05/3.739, allocations: 11 kB / 0.5839 GB, free: 89.33 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.302e-05/3.739, allocations: 12.38 kB / 0.584 GB, free: 89.33 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0323/3.771, allocations: 8.478 MB / 0.5922 GB, free: 86.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.101e-05/3.771, allocations: 1.188 kB / 0.5922 GB, free: 86.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004716/3.776, allocations: 367.1 kB / 0.5926 GB, free: 86.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003954/3.78, allocations: 0.6659 MB / 0.5932 GB, free: 85.86 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006349/3.78, allocations: 11.42 kB / 0.5932 GB, free: 85.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01124/3.792, allocations: 4.825 MB / 0.598 GB, free: 81.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/3.792, allocations: 7.938 kB / 0.598 GB, free: 81.49 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01817/3.81, allocations: 7.035 MB / 0.6048 GB, free: 75.25 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02335/3.833, allocations: 9.963 MB / 0.6146 GB, free: 66.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002846/3.836, allocations: 0.72 MB / 0.6153 GB, free: 65.64 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001737/3.838, allocations: 4 kB / 0.6153 GB, free: 65.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00564/3.844, allocations: 65.36 kB / 0.6153 GB, free: 65.6 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001155/3.845, allocations: 96.97 kB / 0.6154 GB, free: 65.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006725/3.846, allocations: 58.77 kB / 0.6155 GB, free: 65.49 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.008762/3.854, allocations: 2.315 MB / 0.6177 GB, free: 63.46 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.01486/3.869, allocations: 0.9718 MB / 0.6187 GB, free: 62.49 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (174): * Single equations (assignments): 170 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001259/3.871, allocations: 152.4 kB / 0.6188 GB, free: 62.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.02087/3.892, allocations: 5.89 MB / 0.6246 GB, free: 57 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/3.892, allocations: 0 / 0.6246 GB, free: 57 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008314/3.9, allocations: 2.056 MB / 0.6266 GB, free: 55.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00486/3.905, allocations: 341.6 kB / 0.6269 GB, free: 54.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03535/3.94, allocations: 8.98 MB / 0.6357 GB, free: 46.79 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01227/3.953, allocations: 4.062 MB / 0.6397 GB, free: 43.65 MB / 346.7 MB Notification: Performance of SimCode: time 2.033e-06/3.953, allocations: 0 / 0.6397 GB, free: 43.65 MB / 346.7 MB