Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_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.631/1.631, allocations: 194.9 MB / 202.5 MB, free: 6.922 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2297/1.861, allocations: 46.82 MB / 249.3 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0917/1.952, allocations: 44.5 MB / 293.8 MB, free: 10.94 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2729/2.225, allocations: 75.28 MB / 369.1 MB, free: 7.215 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/2.226, allocations: 72.12 kB / 369.2 MB, free: 7.215 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.03449/2.26, allocations: 7.951 MB / 377.1 MB, free: 6.055 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/2.26, allocations: 7.812 kB / 377.1 MB, free: 6.055 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/2.26, allocations: 54.56 kB / 377.2 MB, free: 6.027 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005009/2.261, allocations: 306.5 kB / 377.5 MB, free: 5.766 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/2.261, allocations: 15.47 kB / 377.5 MB, free: 5.766 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/2.261, allocations: 27.28 kB / 377.5 MB, free: 5.762 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001077/2.262, allocations: 393.2 kB / 377.9 MB, free: 5.711 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009317/2.263, allocations: 369 kB / 378.3 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.272e-05/2.263, allocations: 3.906 kB / 378.3 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.617e-05/2.263, allocations: 3.906 kB / 378.3 MB, free: 5.598 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/2.263, allocations: 7.781 kB / 378.3 MB, free: 5.598 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003449/2.267, allocations: 1.088 MB / 379.4 MB, free: 5.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007893/2.268, allocations: 263 kB / 379.6 MB, free: 4.988 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005608/2.268, allocations: 226.1 kB / 379.9 MB, free: 4.973 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.463e-05/2.268, allocations: 20.23 kB / 379.9 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/2.268, allocations: 41.88 kB / 379.9 MB, free: 4.914 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 3.196e-06/2.268, allocations: 0 / 379.9 MB, free: 4.914 MB / 298.7 MB Notification: Performance of matching and sorting (n=58): time 0.004973/2.273, allocations: 1.543 MB / 381.5 MB, free: 4.191 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/2.273, allocations: 59.28 kB / 381.5 MB, free: 4.129 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/2.274, allocations: 207 kB / 381.7 MB, free: 4.012 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.258e-05/2.274, allocations: 33.05 kB / 381.8 MB, free: 3.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.742e-05/2.274, allocations: 151.5 kB / 381.9 MB, free: 3.852 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/2.274, allocations: 196.6 kB / 382.1 MB, free: 3.707 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.075e-05/2.274, allocations: 0 / 382.1 MB, free: 3.707 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001673/2.274, allocations: 350.6 kB / 382.4 MB, free: 19.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005141/2.275, allocations: 189.9 kB / 382.6 MB, free: 19.37 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005519/2.275, allocations: 234.5 kB / 382.9 MB, free: 19.33 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000625/2.276, allocations: 156.2 kB / 383 MB, free: 19.3 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/2.276, allocations: 0 / 383 MB, free: 19.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002459/2.278, allocations: 0.647 MB / 383.7 MB, free: 19.16 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/2.279, allocations: 5.969 kB / 383.7 MB, free: 19.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.147e-05/2.279, allocations: 0 / 383.7 MB, free: 19.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/2.28, allocations: 376 kB / 384 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000669/2.28, allocations: 97.45 kB / 384.1 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001919/2.282, allocations: 1.379 MB / 385.5 MB, free: 17.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/2.283, allocations: 104.5 kB / 385.6 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.965e-05/2.283, allocations: 23.36 kB / 385.6 MB, free: 17.91 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 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): 54 * 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: 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.0002793/2.284, allocations: 120.4 kB / 385.7 MB, free: 17.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/2.284, allocations: 38.66 kB / 385.8 MB, free: 17.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002188/2.286, allocations: 0.6554 MB / 386.4 MB, free: 17.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.527e-06/2.286, allocations: 7.625 kB / 386.4 MB, free: 17.56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/2.286, allocations: 0 / 386.4 MB, free: 17.56 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/2.286, allocations: 0 / 386.4 MB, free: 17.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003918/2.29, allocations: 1.282 MB / 387.7 MB, free: 16.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/2.29, allocations: 3.938 kB / 387.7 MB, free: 16.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007497/2.291, allocations: 87.83 kB / 387.8 MB, free: 16.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009836/2.292, allocations: 352.1 kB / 388.2 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.935e-05/2.292, allocations: 19.03 kB / 388.2 MB, free: 16.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001844/2.294, allocations: 1.348 MB / 389.5 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/2.294, allocations: 0 / 389.5 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002491/2.296, allocations: 0.9745 MB / 390.5 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0044/2.301, allocations: 2.051 MB / 392.6 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003809/2.301, allocations: 160.2 kB / 392.7 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/2.301, allocations: 11.67 kB / 392.7 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009065/2.302, allocations: 76.06 kB / 392.8 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000314/2.303, allocations: 110 kB / 392.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-05/2.303, allocations: 26.69 kB / 392.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002379/2.303, allocations: 160.5 kB / 393.1 MB, free: 14.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00156/2.305, allocations: 128.7 kB / 393.2 MB, free: 14.23 MB / 314.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.0003159/2.305, allocations: 140 kB / 393.4 MB, free: 14.13 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001473/2.306, allocations: 0.5394 MB / 393.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/2.306, allocations: 0 / 393.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008401/2.307, allocations: 286.1 kB / 394.2 MB, free: 13.99 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007334/2.308, allocations: 52.38 kB / 394.2 MB, free: 13.97 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002902/2.311, allocations: 0.9452 MB / 395.2 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006193/2.312, allocations: 0.8863 MB / 396.1 MB, free: 12.6 MB / 314.7 MB Notification: Performance of SimCode: time 1.212e-06/2.312, allocations: 0 / 396.1 MB, free: 12.6 MB / 314.7 MB