Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_TestFriction",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.672/2.672, allocations: 235 MB / 241.9 MB, free: 9.777 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1949/2.867, allocations: 57.2 MB / 299.1 MB, free: 468 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/3.175, allocations: 54.84 MB / 354 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1959/3.371, allocations: 85.67 MB / 439.6 MB, free: 7.641 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003731/3.371, allocations: 63.91 kB / 439.7 MB, free: 7.578 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.274/3.645, allocations: 12.51 MB / 452.2 MB, free: 82.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/3.645, allocations: 9.188 kB / 452.2 MB, free: 82.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005164/3.646, allocations: 78.75 kB / 452.3 MB, free: 82.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/3.647, allocations: 397.6 kB / 452.7 MB, free: 82.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.429e-05/3.647, allocations: 21.38 kB / 452.7 MB, free: 82.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002048/3.647, allocations: 39.11 kB / 452.7 MB, free: 82.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001804/3.649, allocations: 0.581 MB / 453.3 MB, free: 82.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/3.651, allocations: 0.6646 MB / 454 MB, free: 81.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.306e-05/3.651, allocations: 3.781 kB / 454 MB, free: 81.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/3.651, allocations: 3.906 kB / 454 MB, free: 81.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.447e-05/3.651, allocations: 15.38 kB / 454 MB, free: 81.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01206/3.663, allocations: 2.52 MB / 456.5 MB, free: 80.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002211/3.665, allocations: 441.2 kB / 457 MB, free: 80.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/3.667, allocations: 314.8 kB / 457.3 MB, free: 80.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001913/3.667, allocations: 18.92 kB / 457.3 MB, free: 80.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/3.667, allocations: 50.2 kB / 457.3 MB, free: 80.28 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 7.043e-06/3.667, allocations: 0 / 457.3 MB, free: 80.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.01145/3.679, allocations: 2.304 MB / 459.6 MB, free: 78.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/3.679, allocations: 137.5 kB / 459.8 MB, free: 78.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007903/3.68, allocations: 294.8 kB / 460.1 MB, free: 78.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000415/3.68, allocations: 44.52 kB / 460.1 MB, free: 78.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002442/3.68, allocations: 221.6 kB / 460.3 MB, free: 78.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000593/3.681, allocations: 276.7 kB / 460.6 MB, free: 78.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/3.681, allocations: 0 / 460.6 MB, free: 78.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001796/3.681, allocations: 366.4 kB / 461 MB, free: 77.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001498/3.683, allocations: 296.8 kB / 461.2 MB, free: 77.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/3.684, allocations: 453.7 kB / 461.7 MB, free: 77.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001909/3.686, allocations: 265.4 kB / 461.9 MB, free: 77.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.538e-05/3.687, allocations: 0 / 461.9 MB, free: 77.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.006212/3.693, allocations: 1.053 MB / 463 MB, free: 76.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.595e-05/3.693, allocations: 9.469 kB / 463 MB, free: 76.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.337e-05/3.693, allocations: 6.5 kB / 463 MB, free: 76.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002285/3.695, allocations: 0.5664 MB / 463.6 MB, free: 76.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/3.697, allocations: 156.9 kB / 463.7 MB, free: 76.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003897/3.701, allocations: 2.666 MB / 466.4 MB, free: 74.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002128/3.703, allocations: 199.9 kB / 466.6 MB, free: 74.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003521/3.703, allocations: 49.73 kB / 466.6 MB, free: 74.17 MB / 378.7 MB 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 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.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,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006493/3.704, allocations: 144.2 kB / 466.8 MB, free: 74.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003434/3.704, allocations: 62.92 kB / 466.8 MB, free: 74.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004834/3.709, allocations: 0.9906 MB / 467.8 MB, free: 73.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.969e-05/3.709, allocations: 8.906 kB / 467.8 MB, free: 73.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/3.709, allocations: 1.062 kB / 467.8 MB, free: 73.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-05/3.709, allocations: 5.375 kB / 467.9 MB, free: 73.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007771/3.717, allocations: 1.895 MB / 469.7 MB, free: 72.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-05/3.717, allocations: 9.016 kB / 469.8 MB, free: 72.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001467/3.719, allocations: 128.9 kB / 469.9 MB, free: 72.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/3.72, allocations: 0.54 MB / 470.4 MB, free: 72.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001989/3.721, allocations: 27.47 kB / 470.4 MB, free: 72.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0033/3.724, allocations: 2.607 MB / 473.1 MB, free: 69.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.746e-06/3.724, allocations: 4 kB / 473.1 MB, free: 69.53 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004735/3.729, allocations: 1.586 MB / 474.6 MB, free: 67.99 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005893/3.735, allocations: 2.321 MB / 477 MB, free: 65.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/3.736, allocations: 215.7 kB / 477.2 MB, free: 65.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003258/3.736, allocations: 20.75 kB / 477.2 MB, free: 65.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002121/3.738, allocations: 177.3 kB / 477.4 MB, free: 65.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001014/3.739, allocations: 174.6 kB / 477.5 MB, free: 65.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002182/3.74, allocations: 43.2 kB / 477.6 MB, free: 65.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004292/3.74, allocations: 238.3 kB / 477.8 MB, free: 65.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002155/3.742, allocations: 172.7 kB / 478 MB, free: 64.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000474/3.743, allocations: 148.1 kB / 478.1 MB, free: 64.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004099/3.747, allocations: 0.8754 MB / 479 MB, free: 63.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/3.747, allocations: 4 kB / 479 MB, free: 63.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002786/3.75, allocations: 444.1 kB / 479.4 MB, free: 63.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002257/3.752, allocations: 74.64 kB / 479.5 MB, free: 63.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008036/3.76, allocations: 1.62 MB / 481.1 MB, free: 61.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001126/3.761, allocations: 0.9847 MB / 482.1 MB, free: 60.74 MB / 378.7 MB Notification: Performance of SimCode: time 1.613e-06/3.762, allocations: 0 / 482.1 MB, free: 60.74 MB / 378.7 MB