Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_HeatLosses",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.621/1.621, allocations: 194.9 MB / 202.5 MB, free: 6.918 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2468/1.868, allocations: 46.83 MB / 249.3 MB, free: 5.309 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09578/1.964, allocations: 44.51 MB / 293.8 MB, free: 10.94 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2801/2.244, allocations: 82.17 MB / 376 MB, free: 7.129 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/2.244, allocations: 67.62 kB / 376.1 MB, free: 7.129 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.108/2.352, allocations: 23.91 MB / 400 MB, free: 14.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/2.352, allocations: 12.84 kB / 400 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001026/2.353, allocations: 138.8 kB / 400.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/2.355, allocations: 0.5319 MB / 400.7 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005425/2.355, allocations: 168.3 kB / 400.8 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002966/2.356, allocations: 63.12 kB / 400.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003595/2.359, allocations: 1.094 MB / 402 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003278/2.363, allocations: 1.018 MB / 403 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.101e-05/2.363, allocations: 11.98 kB / 403 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001658/2.363, allocations: 0 / 403 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.673e-05/2.363, allocations: 31.25 kB / 403.1 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01358/2.377, allocations: 3.585 MB / 406.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/2.379, allocations: 0.6975 MB / 407.3 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/2.381, allocations: 0.5573 MB / 407.9 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001515/2.381, allocations: 28.11 kB / 407.9 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/2.381, allocations: 46.75 kB / 408 MB, free: 10.4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 4.809e-06/2.381, allocations: 3.938 kB / 408 MB, free: 10.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.01991/2.401, allocations: 3.491 MB / 411.5 MB, free: 7.641 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.809e-05/2.401, allocations: 94.42 kB / 411.6 MB, free: 7.531 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008337/2.402, allocations: 406.8 kB / 412 MB, free: 7.211 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004166/2.402, allocations: 44.94 kB / 412 MB, free: 7.168 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002518/2.403, allocations: 262.2 kB / 412.3 MB, free: 6.934 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007793/2.403, allocations: 488.1 kB / 412.7 MB, free: 6.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001419/2.403, allocations: 0 / 412.7 MB, free: 6.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002287/2.404, allocations: 390.3 kB / 413.1 MB, free: 6.164 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001572/2.405, allocations: 0.4949 MB / 413.6 MB, free: 5.867 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/2.407, allocations: 0.6154 MB / 414.2 MB, free: 5.453 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001928/2.409, allocations: 463.5 kB / 414.7 MB, free: 5.152 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.503e-06/2.409, allocations: 0 / 414.7 MB, free: 5.152 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.005897/2.415, allocations: 1.554 MB / 416.2 MB, free: 4.016 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.754e-05/2.415, allocations: 7.984 kB / 416.2 MB, free: 4.008 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.395e-05/2.415, allocations: 7.984 kB / 416.2 MB, free: 4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002887/2.418, allocations: 0.7583 MB / 417 MB, free: 3.426 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002363/2.42, allocations: 266.7 kB / 417.3 MB, free: 3.172 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004589/2.425, allocations: 2.031 MB / 419.3 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002701/2.428, allocations: 200.4 kB / 419.5 MB, free: 1.293 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002786/2.428, allocations: 59.47 kB / 419.6 MB, free: 1.246 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.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: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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: 7 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005725/2.429, allocations: 160.9 kB / 419.7 MB, free: 1.09 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003507/2.429, allocations: 90.97 kB / 419.8 MB, free: 1 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005691/2.435, allocations: 1.69 MB / 421.5 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.521e-05/2.435, allocations: 16 kB / 421.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/2.435, allocations: 0 / 421.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.84e-05/2.435, allocations: 7.969 kB / 421.5 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009474/2.444, allocations: 2.815 MB / 424.3 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.255e-05/2.444, allocations: 3.906 kB / 424.3 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002639/2.447, allocations: 279.8 kB / 424.6 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00317/2.45, allocations: 0.7154 MB / 425.3 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003576/2.451, allocations: 31.94 kB / 425.3 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004102/2.455, allocations: 1.944 MB / 427.3 MB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/2.455, allocations: 3.938 kB / 427.3 MB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006852/2.462, allocations: 2.183 MB / 429.5 MB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009571/2.471, allocations: 3.208 MB / 432.7 MB, free: 3.898 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009621/2.472, allocations: 299.8 kB / 433 MB, free: 3.586 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003702/2.473, allocations: 16 kB / 433 MB, free: 3.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002915/2.476, allocations: 219.8 kB / 433.2 MB, free: 3.352 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008226/2.477, allocations: 228.8 kB / 433.4 MB, free: 3.129 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002315/2.477, allocations: 67.89 kB / 433.5 MB, free: 3.062 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0006478/2.477, allocations: 318.9 kB / 433.8 MB, free: 2.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002398/2.48, allocations: 287.9 kB / 434.1 MB, free: 2.469 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006466/2.481, allocations: 157 kB / 434.2 MB, free: 2.309 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004071/2.485, allocations: 1.36 MB / 435.6 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/2.485, allocations: 0 / 435.6 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002576/2.487, allocations: 0.7351 MB / 436.3 MB, free: 204 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002338/2.49, allocations: 111.8 kB / 436.4 MB, free: 92 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02088/2.511, allocations: 2.832 MB / 439.3 MB, free: 13.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001577/2.512, allocations: 1.175 MB / 440.5 MB, free: 12 MB / 346.7 MB Notification: Performance of SimCode: time 1.493e-06/2.512, allocations: 3.938 kB / 440.5 MB, free: 12 MB / 346.7 MB