Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_2_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.87/1.87, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2411/2.111, allocations: 46.83 MB / 249.3 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08524/2.197, allocations: 44.5 MB / 293.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2728/2.469, allocations: 75.2 MB / 369 MB, free: 7.152 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/2.47, allocations: 70.03 kB / 369.1 MB, free: 7.152 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.03109/2.501, allocations: 6.993 MB / 376.1 MB, free: 6.273 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/2.501, allocations: 7.688 kB / 376.1 MB, free: 6.273 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/2.501, allocations: 43.61 kB / 376.1 MB, free: 6.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004507/2.502, allocations: 293.5 kB / 376.4 MB, free: 6.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.652e-05/2.502, allocations: 19.34 kB / 376.5 MB, free: 6.016 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/2.502, allocations: 22.75 kB / 376.5 MB, free: 6.012 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001016/2.503, allocations: 356.9 kB / 376.8 MB, free: 5.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008634/2.504, allocations: 344.4 kB / 377.2 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/2.504, allocations: 3.312 kB / 377.2 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.29e-05/2.504, allocations: 0 / 377.2 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/2.504, allocations: 7.719 kB / 377.2 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003918/2.508, allocations: 1.251 MB / 378.4 MB, free: 5.191 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006829/2.508, allocations: 243.3 kB / 378.7 MB, free: 5.164 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004674/2.509, allocations: 207.2 kB / 378.9 MB, free: 5.145 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.198e-05/2.509, allocations: 15.69 kB / 378.9 MB, free: 5.141 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/2.509, allocations: 38.88 kB / 378.9 MB, free: 5.098 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 3.166e-06/2.509, allocations: 0 / 378.9 MB, free: 5.098 MB / 298.7 MB Notification: Performance of matching and sorting (n=51): time 0.005165/2.514, allocations: 1.502 MB / 380.4 MB, free: 4.375 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.454e-05/2.514, allocations: 55.72 kB / 380.5 MB, free: 4.312 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/2.515, allocations: 184.9 kB / 380.7 MB, free: 4.203 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/2.515, allocations: 33.56 kB / 380.7 MB, free: 20.17 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.611e-05/2.515, allocations: 147.8 kB / 380.8 MB, free: 20.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/2.515, allocations: 171.8 kB / 381 MB, free: 19.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.076e-05/2.515, allocations: 0 / 381 MB, free: 19.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/2.515, allocations: 346.9 kB / 381.3 MB, free: 19.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004876/2.516, allocations: 175 kB / 381.5 MB, free: 19.58 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005233/2.516, allocations: 244.2 kB / 381.7 MB, free: 19.52 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006097/2.517, allocations: 152.8 kB / 381.9 MB, free: 19.49 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/2.517, allocations: 0 / 381.9 MB, free: 19.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002571/2.519, allocations: 0.6601 MB / 382.6 MB, free: 19.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/2.519, allocations: 3.969 kB / 382.6 MB, free: 19.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/2.519, allocations: 7.922 kB / 382.6 MB, free: 19.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001417/2.521, allocations: 429.8 kB / 383 MB, free: 19.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005491/2.521, allocations: 73.16 kB / 383.1 MB, free: 19.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004131/2.526, allocations: 3.353 MB / 386.4 MB, free: 16.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/2.527, allocations: 105.9 kB / 386.5 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.275e-05/2.527, allocations: 27.53 kB / 386.5 MB, free: 16.12 MB / 314.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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0002856/2.527, allocations: 127.9 kB / 386.7 MB, free: 16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/2.527, allocations: 39 kB / 386.7 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/2.53, allocations: 0.6802 MB / 387.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/2.53, allocations: 3.875 kB / 387.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/2.53, allocations: 7.75 kB / 387.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/2.53, allocations: 0 / 387.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002727/2.533, allocations: 1.066 MB / 388.5 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/2.533, allocations: 0 / 388.5 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005651/2.533, allocations: 69.27 kB / 388.5 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001343/2.534, allocations: 403.7 kB / 388.9 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.757e-05/2.535, allocations: 14.16 kB / 388.9 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003794/2.538, allocations: 3.323 MB / 392.3 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/2.538, allocations: 0 / 392.3 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002314/2.541, allocations: 0.864 MB / 393.1 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004159/2.545, allocations: 1.941 MB / 395.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003385/2.545, allocations: 165.1 kB / 395.2 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/2.545, allocations: 7.219 kB / 395.2 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/2.547, allocations: 105.1 kB / 395.3 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002935/2.547, allocations: 97.75 kB / 395.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-05/2.547, allocations: 22.75 kB / 395.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001992/2.547, allocations: 153.4 kB / 395.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001569/2.549, allocations: 122.9 kB / 395.7 MB, free: 10.85 MB / 314.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.0003402/2.549, allocations: 136.5 kB / 395.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001788/2.551, allocations: 0.7157 MB / 396.6 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/2.551, allocations: 0 / 396.6 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/2.552, allocations: 478 kB / 397 MB, free: 10.21 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000647/2.553, allocations: 38.67 kB / 397.1 MB, free: 10.2 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002885/2.556, allocations: 0.784 MB / 397.9 MB, free: 9.754 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005651/2.556, allocations: 0.848 MB / 398.7 MB, free: 8.988 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/2.556, allocations: 0 / 398.7 MB, free: 8.988 MB / 314.7 MB