Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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.851/1.851, allocations: 171.2 MB / 178.1 MB, free: 8.285 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1934/2.045, allocations: 41.1 MB / 219.2 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/2.139, allocations: 38.77 MB / 258 MB, free: 4.359 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2759/2.415, allocations: 70.17 MB / 328.2 MB, free: 1.836 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/2.416, allocations: 73.7 kB / 328.2 MB, free: 1.797 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.05304/2.469, allocations: 6.948 MB / 335.2 MB, free: 11.75 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.534e-05/2.469, allocations: 8 kB / 335.2 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003778/2.469, allocations: 43.53 kB / 335.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000991/2.47, allocations: 293.8 kB / 335.5 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.269e-05/2.47, allocations: 12 kB / 335.5 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001766/2.471, allocations: 20 kB / 335.6 MB, free: 11.37 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00191/2.473, allocations: 399.2 kB / 336 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/2.474, allocations: 362.3 kB / 336.3 MB, free: 10.84 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.789e-05/2.474, allocations: 7.906 kB / 336.3 MB, free: 10.83 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-05/2.474, allocations: 0 / 336.3 MB, free: 10.83 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.335e-05/2.475, allocations: 11.94 kB / 336.3 MB, free: 10.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006754/2.481, allocations: 1.243 MB / 337.6 MB, free: 9.758 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/2.483, allocations: 259.3 kB / 337.8 MB, free: 9.582 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009047/2.484, allocations: 219.8 kB / 338 MB, free: 9.445 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.916e-05/2.484, allocations: 4.375 kB / 338 MB, free: 9.441 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.419e-05/2.484, allocations: 33.69 kB / 338.1 MB, free: 9.402 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 5.681e-06/2.484, allocations: 0 / 338.1 MB, free: 9.402 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.009724/2.494, allocations: 1.541 MB / 339.6 MB, free: 8.047 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.327e-05/2.494, allocations: 63.78 kB / 339.7 MB, free: 7.977 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004906/2.494, allocations: 197.1 kB / 339.9 MB, free: 7.801 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001906/2.494, allocations: 33.2 kB / 339.9 MB, free: 7.766 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/2.495, allocations: 154.9 kB / 340.1 MB, free: 7.621 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003098/2.495, allocations: 162.7 kB / 340.2 MB, free: 7.484 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.304e-05/2.495, allocations: 0 / 340.2 MB, free: 7.484 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002059/2.495, allocations: 339.8 kB / 340.5 MB, free: 7.156 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009177/2.496, allocations: 195.5 kB / 340.7 MB, free: 7.043 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009786/2.497, allocations: 269.4 kB / 341 MB, free: 6.848 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/2.498, allocations: 169.1 kB / 341.2 MB, free: 6.734 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/2.498, allocations: 0 / 341.2 MB, free: 6.734 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004989/2.503, allocations: 0.8031 MB / 342 MB, free: 6.086 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.039e-05/2.504, allocations: 4 kB / 342 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-05/2.504, allocations: 0 / 342 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002996/2.507, allocations: 0.537 MB / 342.5 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006709/2.507, allocations: 83.12 kB / 342.6 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00532/2.513, allocations: 3.418 MB / 346 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/2.514, allocations: 100 kB / 346.1 MB, free: 2.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/2.514, allocations: 34.8 kB / 346.1 MB, free: 2.008 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 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: 6 * 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 (46): * Single equations (assignments): 43 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0003665/2.515, allocations: 112.8 kB / 346.3 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/2.515, allocations: 39.52 kB / 346.3 MB, free: 1.852 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003333/2.518, allocations: 0.7083 MB / 347 MB, free: 1.305 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/2.518, allocations: 12 kB / 347 MB, free: 1.293 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/2.518, allocations: 0 / 347 MB, free: 1.293 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.795e-05/2.518, allocations: 7.891 kB / 347 MB, free: 1.285 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003735/2.522, allocations: 1.119 MB / 348.1 MB, free: 384 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/2.522, allocations: 8 kB / 348.1 MB, free: 376 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006932/2.523, allocations: 59.91 kB / 348.2 MB, free: 316 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002253/2.525, allocations: 0.5181 MB / 348.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001555/2.525, allocations: 11.73 kB / 348.7 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004801/2.53, allocations: 3.385 MB / 352.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/2.53, allocations: 0 / 352.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002765/2.533, allocations: 0.9354 MB / 353.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004881/2.538, allocations: 2.071 MB / 355.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003731/2.538, allocations: 154.1 kB / 355.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/2.538, allocations: 11 kB / 355.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/2.54, allocations: 99.91 kB / 355.4 MB, free: 9.992 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000319/2.54, allocations: 110.6 kB / 355.5 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.598e-05/2.54, allocations: 25.89 kB / 355.5 MB, free: 9.875 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0002229/2.54, allocations: 158.4 kB / 355.7 MB, free: 9.742 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001595/2.542, allocations: 108 kB / 355.8 MB, free: 9.637 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003443/2.542, allocations: 142.3 kB / 355.9 MB, free: 9.496 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001901/2.544, allocations: 0.6929 MB / 356.6 MB, free: 8.945 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/2.544, allocations: 0 / 356.6 MB, free: 8.945 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/2.545, allocations: 483.5 kB / 357.1 MB, free: 8.535 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006466/2.546, allocations: 34.28 kB / 357.1 MB, free: 8.512 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003292/2.549, allocations: 0.7964 MB / 357.9 MB, free: 7.773 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007349/2.55, allocations: 0.8421 MB / 358.8 MB, free: 6.906 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/2.55, allocations: 0 / 358.8 MB, free: 6.906 MB / 298.7 MB