Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_CoupledClutches",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.626/1.626, allocations: 194.9 MB / 202.5 MB, free: 6.926 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2335/1.859, allocations: 46.83 MB / 249.3 MB, free: 5.371 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08832/1.947, allocations: 44.51 MB / 293.8 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.364/2.312, allocations: 73.67 MB / 367.5 MB, free: 7.078 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003353/2.312, allocations: 68.92 kB / 367.6 MB, free: 7.078 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.06064/2.373, allocations: 9.574 MB / 377.2 MB, free: 5.707 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/2.373, allocations: 7.75 kB / 377.2 MB, free: 5.707 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000271/2.373, allocations: 62.62 kB / 377.2 MB, free: 5.676 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006862/2.374, allocations: 339.9 kB / 377.6 MB, free: 5.395 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/2.374, allocations: 11.62 kB / 377.6 MB, free: 5.395 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/2.374, allocations: 34.5 kB / 377.6 MB, free: 5.391 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001372/2.375, allocations: 477.5 kB / 378.1 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/2.376, allocations: 0.5022 MB / 378.6 MB, free: 5.168 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.48e-05/2.377, allocations: 3.875 kB / 378.6 MB, free: 5.168 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.86e-05/2.377, allocations: 7.906 kB / 378.6 MB, free: 5.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/2.377, allocations: 11.66 kB / 378.6 MB, free: 5.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004309/2.381, allocations: 1.261 MB / 379.9 MB, free: 4.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/2.382, allocations: 347.9 kB / 380.2 MB, free: 4.438 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005974/2.383, allocations: 251.7 kB / 380.4 MB, free: 4.422 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.075e-05/2.383, allocations: 16.2 kB / 380.5 MB, free: 4.414 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/2.383, allocations: 50.11 kB / 380.5 MB, free: 4.359 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 3.196e-06/2.383, allocations: 0 / 380.5 MB, free: 4.359 MB / 298.7 MB Notification: Performance of matching and sorting (n=67): time 0.006391/2.389, allocations: 1.841 MB / 382.3 MB, free: 3.578 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/2.389, allocations: 59.84 kB / 382.4 MB, free: 3.516 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000324/2.39, allocations: 227.5 kB / 382.6 MB, free: 3.402 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001615/2.39, allocations: 37.06 kB / 382.7 MB, free: 19.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/2.39, allocations: 158.2 kB / 382.8 MB, free: 19.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002158/2.39, allocations: 226.9 kB / 383 MB, free: 19.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.92e-05/2.39, allocations: 0 / 383 MB, free: 19.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/2.391, allocations: 351.5 kB / 383.4 MB, free: 18.74 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006876/2.391, allocations: 250.5 kB / 383.6 MB, free: 18.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007144/2.392, allocations: 309.7 kB / 383.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008685/2.393, allocations: 206.1 kB / 384.1 MB, free: 18.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/2.393, allocations: 3.969 kB / 384.1 MB, free: 18.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002396/2.395, allocations: 0.7466 MB / 384.9 MB, free: 18.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/2.395, allocations: 3.688 kB / 384.9 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/2.395, allocations: 3.906 kB / 384.9 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001653/2.397, allocations: 0.5368 MB / 385.4 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007827/2.398, allocations: 97.89 kB / 385.5 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002398/2.4, allocations: 1.091 MB / 386.6 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/2.402, allocations: 153.1 kB / 386.8 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/2.402, allocations: 30.42 kB / 386.8 MB, free: 17.7 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0003402/2.402, allocations: 119 kB / 386.9 MB, free: 17.58 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/2.403, allocations: 54.48 kB / 387 MB, free: 17.55 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002691/2.405, allocations: 0.8348 MB / 387.8 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/2.405, allocations: 11.84 kB / 387.8 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/2.405, allocations: 0 / 387.8 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/2.405, allocations: 7.969 kB / 387.8 MB, free: 17.3 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003612/2.409, allocations: 1.329 MB / 389.1 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/2.409, allocations: 0 / 389.1 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009039/2.41, allocations: 93.62 kB / 389.2 MB, free: 16.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001633/2.412, allocations: 0.5166 MB / 389.8 MB, free: 16.6 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001455/2.412, allocations: 19.31 kB / 389.8 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002292/2.414, allocations: 1.044 MB / 390.8 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/2.414, allocations: 0 / 390.8 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003197/2.417, allocations: 1.093 MB / 391.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004103/2.421, allocations: 1.781 MB / 393.7 MB, free: 15.03 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004375/2.422, allocations: 187.8 kB / 393.9 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002041/2.422, allocations: 7.438 kB / 393.9 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/2.424, allocations: 154.8 kB / 394 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004138/2.424, allocations: 149.7 kB / 394.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/2.424, allocations: 34.89 kB / 394.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002716/2.424, allocations: 191.4 kB / 394.4 MB, free: 14.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001655/2.426, allocations: 141.3 kB / 394.5 MB, free: 14.62 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * 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: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003574/2.426, allocations: 143.3 kB / 394.7 MB, free: 14.52 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001982/2.428, allocations: 0.719 MB / 395.4 MB, free: 14.36 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/2.428, allocations: 0 / 395.4 MB, free: 14.36 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/2.43, allocations: 350.1 kB / 395.7 MB, free: 14.33 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009207/2.43, allocations: 68.58 kB / 395.8 MB, free: 14.31 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004013/2.434, allocations: 1.157 MB / 397 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007557/2.435, allocations: 0.9062 MB / 397.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of SimCode: time 1.352e-06/2.435, allocations: 0 / 397.9 MB, free: 12.84 MB / 314.7 MB