Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_AllComponents",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(ModelicaTest): time 2.404/2.404, allocations: 234.9 MB / 241.9 MB, free: 9.785 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1824/2.586, allocations: 57.2 MB / 299.1 MB, free: 476 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/2.881, allocations: 54.84 MB / 354 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4192/3.301, allocations: 98.8 MB / 452.8 MB, free: 33.65 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003212/3.301, allocations: 63.91 kB / 452.8 MB, free: 33.65 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.2705/3.572, allocations: 49.88 MB / 0.4909 GB, free: 23.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.8e-05/3.572, allocations: 15.66 kB / 0.4909 GB, free: 23.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003202/3.575, allocations: 297.7 kB / 0.4912 GB, free: 22.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005065/3.58, allocations: 0.9766 MB / 0.4922 GB, free: 22.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002284/3.582, allocations: 400.6 kB / 0.4926 GB, free: 22.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001728/3.584, allocations: 143.1 kB / 0.4927 GB, free: 22.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01251/3.597, allocations: 2.081 MB / 0.4947 GB, free: 21.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/3.61, allocations: 2.048 MB / 0.4967 GB, free: 21.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003904/3.611, allocations: 32.22 kB / 0.4968 GB, free: 21.19 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009912/3.612, allocations: 5.359 kB / 0.4968 GB, free: 21.19 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001114/3.612, allocations: 55.66 kB / 0.4968 GB, free: 21.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03511/3.647, allocations: 6.285 MB / 0.503 GB, free: 18.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008318/3.655, allocations: 1.479 MB / 0.5044 GB, free: 18.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005153/3.661, allocations: 1.144 MB / 0.5055 GB, free: 17.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005375/3.661, allocations: 127.5 kB / 0.5056 GB, free: 17.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.514e-05/3.661, allocations: 73.52 kB / 0.5057 GB, free: 17.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=280): time 6.141e-06/3.661, allocations: 0 / 0.5057 GB, free: 17.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=340): time 0.04202/3.703, allocations: 10.1 MB / 0.5156 GB, free: 6.637 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001619/3.704, allocations: 273.9 kB / 0.5158 GB, free: 6.316 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002316/3.706, allocations: 0.7275 MB / 0.5165 GB, free: 5.574 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001109/3.707, allocations: 41.7 kB / 0.5166 GB, free: 5.527 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006488/3.708, allocations: 0.5338 MB / 0.5171 GB, free: 4.984 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002287/3.71, allocations: 1.097 MB / 0.5182 GB, free: 3.871 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006825/3.711, allocations: 3.984 kB / 0.5182 GB, free: 3.867 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002932/3.711, allocations: 428.6 kB / 0.5186 GB, free: 3.441 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005339/3.717, allocations: 0.9593 MB / 0.5195 GB, free: 2.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004312/3.721, allocations: 1.351 MB / 0.5208 GB, free: 1.008 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004307/3.725, allocations: 0.9889 MB / 0.5218 GB, free: 24 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.656e-05/3.725, allocations: 4 kB / 0.5218 GB, free: 20 kB / 378.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.0219/3.747, allocations: 3.049 MB / 0.5248 GB, free: 12.94 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/3.747, allocations: 7.984 kB / 0.5248 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.866e-05/3.747, allocations: 12 kB / 0.5248 GB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004297/3.752, allocations: 1.002 MB / 0.5258 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009322/3.761, allocations: 0.7841 MB / 0.5265 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02359/3.785, allocations: 6.967 MB / 0.5334 GB, free: 3.844 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00729/3.792, allocations: 251.8 kB / 0.5336 GB, free: 3.598 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001443/3.794, allocations: 124 kB / 0.5337 GB, free: 3.477 MB / 394.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 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: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 332 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.002216/3.796, allocations: 193.3 kB / 0.5339 GB, free: 3.281 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001502/3.797, allocations: 201.6 kB / 0.5341 GB, free: 3.082 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01432/3.812, allocations: 2.167 MB / 0.5362 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001234/3.812, allocations: 32 kB / 0.5362 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-05/3.812, allocations: 4 kB / 0.5362 GB, free: 0.8477 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002177/3.812, allocations: 15.94 kB / 0.5363 GB, free: 0.832 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03564/3.848, allocations: 6.903 MB / 0.543 GB, free: 9.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.548e-05/3.848, allocations: 8 kB / 0.543 GB, free: 9.738 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008265/3.856, allocations: 0.7728 MB / 0.5438 GB, free: 8.965 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004481/3.861, allocations: 0.9901 MB / 0.5447 GB, free: 7.953 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008999/3.862, allocations: 59.91 kB / 0.5448 GB, free: 7.895 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02441/3.886, allocations: 9.482 MB / 0.554 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.621e-05/3.886, allocations: 11.94 kB / 0.554 GB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01881/3.905, allocations: 5.32 MB / 0.5592 GB, free: 8.148 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02748/3.933, allocations: 7.057 MB / 0.5661 GB, free: 0.6914 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002503/3.935, allocations: 0.5139 MB / 0.5666 GB, free: 160 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/3.937, allocations: 35.98 kB / 0.5667 GB, free: 124 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005366/3.942, allocations: 275.7 kB / 0.5669 GB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002193/3.944, allocations: 385 kB / 0.5673 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008803/3.945, allocations: 123.9 kB / 0.5674 GB, free: 15.35 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001755/3.947, allocations: 0.5507 MB / 0.568 GB, free: 14.79 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007702/3.955, allocations: 0.5898 MB / 0.5685 GB, free: 14.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 265 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001602/3.956, allocations: 222.7 kB / 0.5687 GB, free: 13.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01076/3.967, allocations: 2.818 MB / 0.5715 GB, free: 11.11 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/3.967, allocations: 5.688 kB / 0.5715 GB, free: 11.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009707/3.977, allocations: 2.37 MB / 0.5738 GB, free: 8.695 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005411/3.982, allocations: 232.8 kB / 0.574 GB, free: 8.469 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02529/4.008, allocations: 5.207 MB / 0.5791 GB, free: 3.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00411/4.012, allocations: 1.837 MB / 0.5809 GB, free: 1.215 MB / 442.7 MB Notification: Performance of SimCode: time 1.643e-06/4.012, allocations: 3.938 kB / 0.5809 GB, free: 1.211 MB / 442.7 MB