Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_1_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.756/1.756, allocations: 171.2 MB / 178.1 MB, free: 8.293 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1815/1.938, allocations: 41.1 MB / 219.2 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/2.027, allocations: 38.76 MB / 258 MB, free: 4.371 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2946/2.322, allocations: 68.66 MB / 326.7 MB, free: 3.387 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/2.322, allocations: 74.02 kB / 326.7 MB, free: 3.348 MB / 266.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.05304/2.375, allocations: 9.448 MB / 336.2 MB, free: 11.2 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/2.375, allocations: 8 kB / 336.2 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002301/2.375, allocations: 59.34 kB / 336.3 MB, free: 11.13 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008269/2.376, allocations: 331.5 kB / 336.6 MB, free: 10.8 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.832e-05/2.376, allocations: 16 kB / 336.6 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001808/2.377, allocations: 27.98 kB / 336.6 MB, free: 10.76 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001698/2.378, allocations: 0.5284 MB / 337.1 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/2.38, allocations: 0.5309 MB / 337.7 MB, free: 9.992 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.218e-05/2.38, allocations: 11.94 kB / 337.7 MB, free: 9.98 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001349/2.38, allocations: 0 / 337.7 MB, free: 9.98 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.06e-05/2.38, allocations: 12 kB / 337.7 MB, free: 9.969 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007709/2.388, allocations: 1.296 MB / 339 MB, free: 8.855 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002171/2.39, allocations: 352.9 kB / 339.3 MB, free: 8.617 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001182/2.391, allocations: 265.9 kB / 339.6 MB, free: 8.457 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001081/2.391, allocations: 4.5 kB / 339.6 MB, free: 8.453 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.304e-05/2.392, allocations: 38.38 kB / 339.6 MB, free: 8.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 5.47e-06/2.392, allocations: 0 / 339.6 MB, free: 8.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=64): time 0.007482/2.399, allocations: 1.948 MB / 341.6 MB, free: 6.742 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/2.399, allocations: 60.06 kB / 341.6 MB, free: 6.672 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005786/2.4, allocations: 271.9 kB / 341.9 MB, free: 6.441 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002005/2.4, allocations: 32.77 kB / 341.9 MB, free: 6.406 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/2.4, allocations: 174.9 kB / 342.1 MB, free: 6.246 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000296/2.4, allocations: 215 kB / 342.3 MB, free: 6.066 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.265e-05/2.401, allocations: 0 / 342.3 MB, free: 6.066 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001738/2.401, allocations: 355.6 kB / 342.7 MB, free: 5.727 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008314/2.402, allocations: 283 kB / 343 MB, free: 5.562 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008812/2.402, allocations: 326 kB / 343.3 MB, free: 5.355 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009646/2.403, allocations: 221.5 kB / 343.5 MB, free: 5.203 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/2.403, allocations: 4 kB / 343.5 MB, free: 5.199 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00446/2.408, allocations: 0.8299 MB / 344.3 MB, free: 4.582 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/2.408, allocations: 7.984 kB / 344.3 MB, free: 4.574 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/2.408, allocations: 0 / 344.3 MB, free: 4.574 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003095/2.411, allocations: 0.7099 MB / 345 MB, free: 4.008 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/2.412, allocations: 111.3 kB / 345.1 MB, free: 3.902 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002916/2.415, allocations: 1.17 MB / 346.3 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/2.417, allocations: 151.9 kB / 346.5 MB, free: 2.789 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002051/2.417, allocations: 30.92 kB / 346.5 MB, free: 2.766 MB / 282.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): 63 * 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 prepare postOptimizeDAE: time 0.0004132/2.418, allocations: 138.2 kB / 346.6 MB, free: 2.625 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003278/2.418, allocations: 43.44 kB / 346.7 MB, free: 2.582 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000311/2.418, allocations: 64.62 kB / 346.7 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/2.418, allocations: 4 kB / 346.7 MB, free: 2.547 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/2.418, allocations: 0 / 346.7 MB, free: 2.547 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.169e-05/2.419, allocations: 3.984 kB / 346.7 MB, free: 2.543 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004897/2.423, allocations: 1.476 MB / 348.2 MB, free: 1.363 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.035e-05/2.423, allocations: 0 / 348.2 MB, free: 1.363 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/2.425, allocations: 95.31 kB / 348.3 MB, free: 1.273 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002272/2.427, allocations: 0.6878 MB / 349 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000248/2.427, allocations: 15.16 kB / 349 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002824/2.43, allocations: 1.147 MB / 350.2 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/2.43, allocations: 0 / 350.2 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004302/2.435, allocations: 1.239 MB / 351.4 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008978/2.444, allocations: 1.959 MB / 353.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006989/2.444, allocations: 189.3 kB / 353.5 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003774/2.445, allocations: 18.23 kB / 353.6 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002341/2.447, allocations: 147.8 kB / 353.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008276/2.448, allocations: 147.6 kB / 353.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001898/2.448, allocations: 44.7 kB / 353.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.001029/2.449, allocations: 194.2 kB / 354.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002039/2.451, allocations: 143.9 kB / 354.2 MB, free: 12.52 MB / 298.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,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,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.0004049/2.452, allocations: 146.3 kB / 354.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002201/2.454, allocations: 0.664 MB / 355 MB, free: 11.92 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/2.454, allocations: 3.938 kB / 355 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001472/2.455, allocations: 363.7 kB / 355.4 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/2.457, allocations: 62.61 kB / 355.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0071/2.464, allocations: 1.167 MB / 356.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001292/2.466, allocations: 0.9131 MB / 357.5 MB, free: 9.512 MB / 298.7 MB Notification: Performance of SimCode: time 1.683e-06/2.466, allocations: 0 / 357.5 MB, free: 9.512 MB / 298.7 MB