Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_1_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.086/2.086, allocations: 209.3 MB / 216.3 MB, free: 6.785 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2447/2.331, allocations: 51.02 MB / 267.3 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/2.452, allocations: 48.68 MB / 316 MB, free: 4.371 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.371/2.823, allocations: 79.49 MB / 395.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/2.823, allocations: 71.2 kB / 395.5 MB, free: 13.25 MB / 330.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.07447/2.898, allocations: 12.32 MB / 407.8 MB, free: 2.672 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.919e-05/2.898, allocations: 16 kB / 407.9 MB, free: 2.656 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006754/2.898, allocations: 79.06 kB / 407.9 MB, free: 2.578 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001326/2.9, allocations: 405.3 kB / 408.3 MB, free: 2.184 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.215e-05/2.9, allocations: 23.12 kB / 408.4 MB, free: 2.164 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002092/2.9, allocations: 39.91 kB / 408.4 MB, free: 2.125 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002133/2.902, allocations: 0.6463 MB / 409 MB, free: 1.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002686/2.905, allocations: 0.6902 MB / 409.7 MB, free: 1.129 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001833/2.905, allocations: 11.22 kB / 409.7 MB, free: 1.121 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002885/2.906, allocations: 0 / 409.7 MB, free: 1.121 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.715e-05/2.906, allocations: 16 kB / 409.8 MB, free: 1.105 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01298/2.919, allocations: 2.527 MB / 412.3 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002387/2.921, allocations: 441.3 kB / 412.7 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/2.923, allocations: 310.3 kB / 413 MB, free: 14.31 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001164/2.923, allocations: 15.98 kB / 413 MB, free: 14.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.514e-05/2.923, allocations: 50.67 kB / 413.1 MB, free: 14.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 6.652e-06/2.923, allocations: 0 / 413.1 MB, free: 14.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.008234/2.931, allocations: 2.439 MB / 415.5 MB, free: 11.94 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.8e-05/2.931, allocations: 144.4 kB / 415.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006925/2.932, allocations: 341 kB / 416 MB, free: 11.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002814/2.932, allocations: 39.75 kB / 416 MB, free: 11.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002263/2.932, allocations: 245.4 kB / 416.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003566/2.933, allocations: 242.6 kB / 416.5 MB, free: 11.03 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.675e-05/2.933, allocations: 6.75 kB / 416.5 MB, free: 11.03 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002234/2.933, allocations: 372.2 kB / 416.9 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/2.934, allocations: 322.8 kB / 417.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/2.935, allocations: 482.5 kB / 417.7 MB, free: 10.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/2.937, allocations: 290.6 kB / 418 MB, free: 9.902 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.505e-06/2.937, allocations: 0 / 418 MB, free: 9.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004884/2.942, allocations: 1.189 MB / 419.1 MB, free: 8.855 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/2.942, allocations: 8 kB / 419.2 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.012e-05/2.942, allocations: 4 kB / 419.2 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002458/2.944, allocations: 0.7528 MB / 419.9 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/2.946, allocations: 159.8 kB / 420.1 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004365/2.95, allocations: 2.771 MB / 422.8 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002271/2.952, allocations: 199.9 kB / 423 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002771/2.953, allocations: 43.98 kB / 423.1 MB, free: 4.805 MB / 346.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: 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: 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: 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: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004387/2.953, allocations: 149.2 kB / 423.2 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003276/2.954, allocations: 71.14 kB / 423.3 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003055/2.954, allocations: 75.86 kB / 423.4 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/2.954, allocations: 8 kB / 423.4 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/2.954, allocations: 0 / 423.4 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/2.954, allocations: 3.984 kB / 423.4 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00763/2.962, allocations: 2.104 MB / 425.5 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-05/2.962, allocations: 4 kB / 425.5 MB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/2.963, allocations: 127.8 kB / 425.6 MB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002326/2.965, allocations: 0.7063 MB / 426.3 MB, free: 1.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002503/2.966, allocations: 19.97 kB / 426.3 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004436/2.97, allocations: 2.721 MB / 429.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.117e-05/2.97, allocations: 3.938 kB / 429.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005691/2.976, allocations: 1.744 MB / 430.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007683/2.984, allocations: 2.499 MB / 433.3 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006531/2.984, allocations: 216.2 kB / 433.5 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002563/2.985, allocations: 23.94 kB / 433.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002014/2.987, allocations: 183.8 kB / 433.7 MB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007302/2.987, allocations: 171.5 kB / 433.9 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/2.988, allocations: 39.95 kB / 433.9 MB, free: 9.648 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0005146/2.988, allocations: 255.2 kB / 434.2 MB, free: 9.398 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002189/2.99, allocations: 167.9 kB / 434.3 MB, free: 9.234 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (53): * Single equations (assignments): 49 * 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.0004888/2.991, allocations: 152.6 kB / 434.5 MB, free: 9.078 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002819/2.994, allocations: 0.7932 MB / 435.3 MB, free: 8.285 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/2.994, allocations: 0 / 435.3 MB, free: 8.285 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001809/2.996, allocations: 444.9 kB / 435.7 MB, free: 7.852 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/2.997, allocations: 79.95 kB / 435.8 MB, free: 7.777 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006153/3.003, allocations: 1.608 MB / 437.4 MB, free: 6.129 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/3.004, allocations: 0.9964 MB / 438.4 MB, free: 5.102 MB / 362.7 MB Notification: Performance of SimCode: time 2.074e-06/3.004, allocations: 0 / 438.4 MB, free: 5.102 MB / 362.7 MB