Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.767/1.768, allocations: 171.2 MB / 178.1 MB, free: 6.715 MB / 147.1 MB Notification: Performance of FrontEnd - loaded program: time 0.149/1.917, allocations: 41.09 MB / 219.2 MB, free: 13.55 MB / 195.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/2.145, allocations: 38.76 MB / 258 MB, free: 5.219 MB / 211.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/2.286, allocations: 69.64 MB / 327.6 MB, free: 15.46 MB / 291.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/2.287, allocations: 71.94 kB / 327.7 MB, free: 15.39 MB / 291.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.04616/2.333, allocations: 9.494 MB / 337.2 MB, free: 5.828 MB / 291.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/2.333, allocations: 8 kB / 337.2 MB, free: 5.82 MB / 291.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000491/2.334, allocations: 51.61 kB / 337.3 MB, free: 5.77 MB / 291.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000581/2.334, allocations: 282.4 kB / 337.5 MB, free: 5.449 MB / 291.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001704/2.334, allocations: 76.05 kB / 337.6 MB, free: 5.359 MB / 291.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.193e-05/2.334, allocations: 19.91 kB / 337.6 MB, free: 5.34 MB / 291.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001073/2.336, allocations: 361.1 kB / 338 MB, free: 4.988 MB / 291.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000858/2.336, allocations: 321.4 kB / 338.3 MB, free: 4.656 MB / 291.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/2.336, allocations: 4 kB / 338.3 MB, free: 4.652 MB / 291.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.052e-05/2.337, allocations: 0 / 338.3 MB, free: 4.652 MB / 291.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/2.337, allocations: 4 kB / 338.3 MB, free: 4.648 MB / 291.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002915/2.339, allocations: 1.112 MB / 339.4 MB, free: 3.473 MB / 291.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007003/2.34, allocations: 250.1 kB / 339.7 MB, free: 3.219 MB / 291.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004381/2.341, allocations: 152.8 kB / 339.8 MB, free: 3.066 MB / 291.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.777e-05/2.341, allocations: 4 kB / 339.8 MB, free: 3.062 MB / 291.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/2.341, allocations: 42.55 kB / 339.9 MB, free: 3.012 MB / 291.1 MB Notification: Performance of pre-optimization done (n=43): time 3.576e-06/2.341, allocations: 0 / 339.9 MB, free: 3.012 MB / 291.1 MB Notification: Performance of matching and sorting (n=45): time 0.00407/2.345, allocations: 1.224 MB / 341.1 MB, free: 1.691 MB / 291.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.389e-05/2.345, allocations: 88.84 kB / 341.2 MB, free: 1.586 MB / 291.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000335/2.345, allocations: 189.4 kB / 341.4 MB, free: 1.395 MB / 291.1 MB Notification: Performance of collectPreVariables (initialization): time 8.587e-05/2.345, allocations: 29.7 kB / 341.4 MB, free: 1.359 MB / 291.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/2.346, allocations: 128.6 kB / 341.5 MB, free: 1.23 MB / 291.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002674/2.346, allocations: 137.9 kB / 341.6 MB, free: 1.094 MB / 291.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.977e-05/2.346, allocations: 0 / 341.6 MB, free: 1.094 MB / 291.1 MB Notification: Performance of setup shared object (initialization): time 0.0002444/2.346, allocations: 334.8 kB / 342 MB, free: 0.7578 MB / 291.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006214/2.347, allocations: 136.9 kB / 342.1 MB, free: 0.625 MB / 291.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006842/2.348, allocations: 197 kB / 342.3 MB, free: 424 kB / 291.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007966/2.348, allocations: 132.8 kB / 342.4 MB, free: 292 kB / 291.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/2.348, allocations: 0 / 342.4 MB, free: 292 kB / 291.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.1295/2.478, allocations: 493.9 kB / 342.9 MB, free: 106.3 MB / 291.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.113e-05/2.478, allocations: 3.844 kB / 342.9 MB, free: 106.3 MB / 291.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/2.478, allocations: 3.703 kB / 342.9 MB, free: 106.3 MB / 291.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001446/2.48, allocations: 228.2 kB / 343.1 MB, free: 106.3 MB / 291.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005041/2.48, allocations: 59.84 kB / 343.2 MB, free: 106.3 MB / 291.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00492/2.485, allocations: 2.392 MB / 345.6 MB, free: 105 MB / 291.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005509/2.486, allocations: 31.5 kB / 345.6 MB, free: 105 MB / 291.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.446e-05/2.486, allocations: 15.09 kB / 345.6 MB, free: 105 MB / 291.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.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: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.000231/2.486, allocations: 115.3 kB / 345.7 MB, free: 104.9 MB / 291.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/2.486, allocations: 24.59 kB / 345.8 MB, free: 104.9 MB / 291.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001256/2.486, allocations: 42.67 kB / 345.8 MB, free: 104.9 MB / 291.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/2.486, allocations: 2.875 kB / 345.8 MB, free: 104.9 MB / 291.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/2.486, allocations: 5.625 kB / 345.8 MB, free: 104.9 MB / 291.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/2.486, allocations: 7.234 kB / 345.8 MB, free: 104.9 MB / 291.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003032/2.489, allocations: 0.9401 MB / 346.8 MB, free: 104.7 MB / 291.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/2.489, allocations: 0 / 346.8 MB, free: 104.7 MB / 291.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006729/2.49, allocations: 57.78 kB / 346.8 MB, free: 104.7 MB / 291.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001111/2.491, allocations: 214.6 kB / 347 MB, free: 104.6 MB / 291.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.677e-05/2.491, allocations: 6.094 kB / 347 MB, free: 104.6 MB / 291.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006918/2.498, allocations: 2.357 MB / 349.4 MB, free: 103.3 MB / 291.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/2.498, allocations: 0 / 349.4 MB, free: 103.3 MB / 291.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002726/2.501, allocations: 0.7089 MB / 350.1 MB, free: 103.2 MB / 291.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004/2.505, allocations: 1.279 MB / 351.4 MB, free: 102.5 MB / 291.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000413/2.506, allocations: 141.8 kB / 351.5 MB, free: 102.4 MB / 291.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001742/2.506, allocations: 6.906 kB / 351.5 MB, free: 102.4 MB / 291.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009383/2.507, allocations: 24.22 kB / 351.6 MB, free: 102.4 MB / 291.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002669/2.507, allocations: 43.14 kB / 351.6 MB, free: 102.4 MB / 291.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/2.507, allocations: 21.25 kB / 351.6 MB, free: 102.4 MB / 291.1 MB Notification: Performance of sort global known variables: time 0.0002952/2.508, allocations: 145.7 kB / 351.8 MB, free: 102.3 MB / 291.1 MB Notification: Performance of remove unused functions: time 0.003271/2.511, allocations: 126.5 kB / 351.9 MB, free: 102.3 MB / 291.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006206/2.512, allocations: 138 kB / 352 MB, free: 102.2 MB / 291.1 MB Notification: Performance of simCode: created initialization part: time 0.002163/2.514, allocations: 487.8 kB / 352.5 MB, free: 102 MB / 291.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/2.514, allocations: 0 / 352.5 MB, free: 102 MB / 291.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001425/2.515, allocations: 337.8 kB / 352.8 MB, free: 101.8 MB / 291.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007466/2.516, allocations: 20.91 kB / 352.8 MB, free: 101.8 MB / 291.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002825/2.519, allocations: 0.5189 MB / 353.4 MB, free: 101.6 MB / 291.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007791/2.52, allocations: 0.8123 MB / 354.2 MB, free: 100.9 MB / 291.1 MB Notification: Performance of SimCode: time 1.723e-06/2.52, allocations: 0 / 354.2 MB, free: 100.9 MB / 291.1 MB