Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_1_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.679/1.679, allocations: 171.2 MB / 178.1 MB, free: 36 kB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.1648/1.844, allocations: 41.1 MB / 219.2 MB, free: 6.867 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/2.079, allocations: 38.77 MB / 258 MB, free: 15.28 MB / 222.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1848/2.264, allocations: 77.03 MB / 335 MB, free: 2.125 MB / 286.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004143/2.265, allocations: 75.95 kB / 335.1 MB, free: 2.051 MB / 286.1 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.3103/2.575, allocations: 24.06 MB / 359.2 MB, free: 59.56 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/2.575, allocations: 8 kB / 359.2 MB, free: 59.55 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/2.577, allocations: 146.5 kB / 359.3 MB, free: 59.41 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002304/2.579, allocations: 0.5447 MB / 359.9 MB, free: 58.83 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008325/2.58, allocations: 163.1 kB / 360 MB, free: 58.65 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007587/2.581, allocations: 60 kB / 360.1 MB, free: 58.59 MB / 286.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005744/2.587, allocations: 1.163 MB / 361.3 MB, free: 57.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005213/2.592, allocations: 1.048 MB / 362.3 MB, free: 56.36 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.606e-05/2.592, allocations: 7.906 kB / 362.3 MB, free: 56.36 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002421/2.592, allocations: 0 / 362.3 MB, free: 56.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-05/2.592, allocations: 24 kB / 362.3 MB, free: 56.33 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01608/2.608, allocations: 3.575 MB / 365.9 MB, free: 52.61 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003096/2.612, allocations: 0.6916 MB / 366.6 MB, free: 51.91 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00187/2.614, allocations: 0.5631 MB / 367.2 MB, free: 51.35 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/2.614, allocations: 21.3 kB / 367.2 MB, free: 51.33 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/2.614, allocations: 51.88 kB / 367.2 MB, free: 51.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 4.489e-06/2.614, allocations: 4 kB / 367.2 MB, free: 51.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01181/2.626, allocations: 3.56 MB / 370.8 MB, free: 47.64 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/2.626, allocations: 94.42 kB / 370.9 MB, free: 47.53 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000857/2.627, allocations: 450 kB / 371.3 MB, free: 47.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003719/2.627, allocations: 45.69 kB / 371.4 MB, free: 47.04 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001938/2.627, allocations: 285.2 kB / 371.6 MB, free: 46.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004624/2.628, allocations: 461.3 kB / 372.1 MB, free: 46.29 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/2.628, allocations: 0 / 372.1 MB, free: 46.29 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/2.628, allocations: 402.6 kB / 372.5 MB, free: 45.89 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/2.629, allocations: 0.5195 MB / 373 MB, free: 45.37 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/2.631, allocations: 0.6491 MB / 373.7 MB, free: 44.7 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/2.633, allocations: 485.8 kB / 374.1 MB, free: 44.23 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/2.633, allocations: 0 / 374.1 MB, free: 44.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.005919/2.639, allocations: 1.763 MB / 375.9 MB, free: 42.45 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/2.639, allocations: 11.94 kB / 375.9 MB, free: 42.44 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/2.639, allocations: 0 / 375.9 MB, free: 42.44 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003063/2.642, allocations: 0.9346 MB / 376.8 MB, free: 41.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002269/2.644, allocations: 279.6 kB / 377.1 MB, free: 41.22 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003982/2.648, allocations: 2.126 MB / 379.2 MB, free: 39.04 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002554/2.651, allocations: 203.8 kB / 379.4 MB, free: 38.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003001/2.651, allocations: 63.98 kB / 379.5 MB, free: 38.78 MB / 286.1 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: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" 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 oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" 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 (bearingFriction.free,$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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * 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 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005182/2.652, allocations: 156.5 kB / 379.7 MB, free: 38.62 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000315/2.652, allocations: 86.97 kB / 379.7 MB, free: 38.54 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000389/2.652, allocations: 117.2 kB / 379.9 MB, free: 38.42 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.411e-05/2.652, allocations: 12 kB / 379.9 MB, free: 38.41 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/2.652, allocations: 0 / 379.9 MB, free: 38.41 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/2.652, allocations: 7.969 kB / 379.9 MB, free: 38.4 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00844/2.661, allocations: 2.959 MB / 382.8 MB, free: 35.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/2.661, allocations: 0 / 382.8 MB, free: 35.38 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002438/2.663, allocations: 271.7 kB / 383.1 MB, free: 35.12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002836/2.666, allocations: 0.8873 MB / 384 MB, free: 34.22 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002647/2.666, allocations: 31.95 kB / 384 MB, free: 34.19 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003768/2.67, allocations: 2.053 MB / 386.1 MB, free: 32.08 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/2.67, allocations: 0 / 386.1 MB, free: 32.08 MB / 286.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006965/2.677, allocations: 2.37 MB / 388.4 MB, free: 29.67 MB / 286.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01017/2.687, allocations: 3.454 MB / 391.9 MB, free: 26.18 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001534/2.689, allocations: 299.8 kB / 392.2 MB, free: 25.86 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007519/2.69, allocations: 16 kB / 392.2 MB, free: 25.85 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003625/2.694, allocations: 215.8 kB / 392.4 MB, free: 25.64 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001254/2.695, allocations: 224.8 kB / 392.6 MB, free: 25.42 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005308/2.695, allocations: 59.94 kB / 392.7 MB, free: 25.36 MB / 286.1 MB Notification: Performance of sort global known variables: time 0.0008828/2.696, allocations: 338.9 kB / 393 MB, free: 25.03 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.004105/2.701, allocations: 288 kB / 393.3 MB, free: 24.75 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 92 * 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.0008443/2.701, allocations: 188.9 kB / 393.5 MB, free: 24.55 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.003825/2.705, allocations: 1.275 MB / 394.8 MB, free: 23.28 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/2.705, allocations: 0 / 394.8 MB, free: 23.28 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002135/2.708, allocations: 0.7208 MB / 395.5 MB, free: 22.55 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/2.709, allocations: 105.9 kB / 395.6 MB, free: 22.45 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/2.723, allocations: 2.822 MB / 398.4 MB, free: 19.58 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001272/2.724, allocations: 1.175 MB / 399.6 MB, free: 18.39 MB / 286.1 MB Notification: Performance of SimCode: time 2.214e-06/2.724, allocations: 0 / 399.6 MB, free: 18.39 MB / 286.1 MB