Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_Friction",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.786/1.786, allocations: 171.2 MB / 178.1 MB, free: 8.34 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2122/1.998, allocations: 41.11 MB / 219.2 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/2.106, allocations: 38.77 MB / 258 MB, free: 4.371 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3103/2.416, allocations: 70.26 MB / 328.3 MB, free: 1.82 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004197/2.417, allocations: 68.03 kB / 328.3 MB, free: 1.785 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.04173/2.458, allocations: 7.932 MB / 336.3 MB, free: 10.96 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/2.458, allocations: 8 kB / 336.3 MB, free: 10.96 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001694/2.459, allocations: 51.42 kB / 336.3 MB, free: 10.91 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006313/2.459, allocations: 307.7 kB / 336.6 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.852e-05/2.459, allocations: 16 kB / 336.6 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/2.459, allocations: 23.98 kB / 336.7 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001283/2.461, allocations: 426.4 kB / 337.1 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/2.462, allocations: 389.6 kB / 337.5 MB, free: 9.98 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/2.462, allocations: 3.938 kB / 337.5 MB, free: 9.977 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-05/2.462, allocations: 0 / 337.5 MB, free: 9.977 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/2.462, allocations: 16 kB / 337.5 MB, free: 9.961 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00415/2.466, allocations: 1.082 MB / 338.6 MB, free: 9.051 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008497/2.467, allocations: 266.7 kB / 338.8 MB, free: 8.871 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006455/2.468, allocations: 240.9 kB / 339.1 MB, free: 8.711 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.157e-05/2.468, allocations: 8.375 kB / 339.1 MB, free: 8.703 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/2.468, allocations: 38.81 kB / 339.1 MB, free: 8.656 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.126e-06/2.468, allocations: 0 / 339.1 MB, free: 8.656 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.005921/2.474, allocations: 1.63 MB / 340.7 MB, free: 7.23 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/2.474, allocations: 59.91 kB / 340.8 MB, free: 7.16 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000394/2.474, allocations: 217.8 kB / 341 MB, free: 6.973 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/2.474, allocations: 33.33 kB / 341 MB, free: 6.938 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/2.475, allocations: 173.2 kB / 341.2 MB, free: 6.781 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002497/2.475, allocations: 181.2 kB / 341.4 MB, free: 6.625 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.405e-05/2.475, allocations: 7.375 kB / 341.4 MB, free: 6.621 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000163/2.475, allocations: 348.8 kB / 341.7 MB, free: 6.285 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005955/2.476, allocations: 205.2 kB / 341.9 MB, free: 6.164 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006701/2.476, allocations: 254.3 kB / 342.2 MB, free: 6.004 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006959/2.477, allocations: 171 kB / 342.4 MB, free: 5.891 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/2.477, allocations: 7.938 kB / 342.4 MB, free: 5.883 MB / 282.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003128/2.48, allocations: 0.7967 MB / 343.2 MB, free: 5.242 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/2.48, allocations: 4 kB / 343.2 MB, free: 5.238 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.646e-05/2.48, allocations: 4 kB / 343.2 MB, free: 5.234 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/2.482, allocations: 492.2 kB / 343.6 MB, free: 4.844 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007925/2.483, allocations: 95.14 kB / 343.7 MB, free: 4.754 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002714/2.485, allocations: 1.448 MB / 345.2 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001784/2.487, allocations: 99.97 kB / 345.3 MB, free: 3.301 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002283/2.488, allocations: 35.05 kB / 345.3 MB, free: 3.273 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.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: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004578/2.488, allocations: 124.7 kB / 345.4 MB, free: 3.145 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003541/2.488, allocations: 39.53 kB / 345.5 MB, free: 3.105 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003282/2.489, allocations: 51.98 kB / 345.5 MB, free: 3.082 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.975e-05/2.489, allocations: 4 kB / 345.5 MB, free: 3.078 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.918e-05/2.489, allocations: 3.906 kB / 345.5 MB, free: 3.074 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.117e-05/2.489, allocations: 3.984 kB / 345.5 MB, free: 3.07 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00831/2.497, allocations: 1.429 MB / 347 MB, free: 1.848 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.421e-05/2.497, allocations: 0 / 347 MB, free: 1.848 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/2.498, allocations: 87.64 kB / 347.1 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002213/2.501, allocations: 480.7 kB / 347.5 MB, free: 1.375 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001802/2.501, allocations: 11.36 kB / 347.5 MB, free: 1.367 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003202/2.504, allocations: 1.407 MB / 348.9 MB, free: 32 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-05/2.504, allocations: 0 / 348.9 MB, free: 32 kB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005184/2.509, allocations: 1.085 MB / 350 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009442/2.519, allocations: 2.232 MB / 352.3 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006361/2.52, allocations: 169.4 kB / 352.4 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/2.52, allocations: 7.438 kB / 352.4 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000952/2.521, allocations: 83.92 kB / 352.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003546/2.521, allocations: 110.5 kB / 352.6 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.055e-05/2.521, allocations: 27.36 kB / 352.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.000316/2.522, allocations: 171.3 kB / 352.8 MB, free: 12.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002198/2.524, allocations: 116 kB / 352.9 MB, free: 12.79 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004526/2.524, allocations: 137.4 kB / 353.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001822/2.526, allocations: 0.5063 MB / 353.6 MB, free: 12.31 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/2.526, allocations: 0 / 353.6 MB, free: 12.31 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/2.527, allocations: 296 kB / 353.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008518/2.528, allocations: 51.77 kB / 353.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00348/2.532, allocations: 0.9631 MB / 354.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008712/2.533, allocations: 0.8816 MB / 355.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/2.533, allocations: 0 / 355.8 MB, free: 10.23 MB / 298.7 MB