Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",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.63/1.63, allocations: 171.2 MB / 178.1 MB, free: 8.281 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2083/1.838, allocations: 41.12 MB / 219.3 MB, free: 11.16 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0871/1.925, allocations: 38.76 MB / 258 MB, free: 4.344 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2963/2.222, allocations: 83.24 MB / 341.3 MB, free: 4.961 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003318/2.222, allocations: 87.62 kB / 341.4 MB, free: 4.91 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 387 * Number of variables: 387 Notification: Performance of Generate backend data structure: time 0.1573/2.379, allocations: 39.28 MB / 380.6 MB, free: 2.773 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/2.379, allocations: 12 kB / 380.6 MB, free: 2.762 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001043/2.38, allocations: 185.9 kB / 380.8 MB, free: 2.578 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002553/2.383, allocations: 0.8022 MB / 381.6 MB, free: 1.734 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004804/2.383, allocations: 180.1 kB / 381.8 MB, free: 1.539 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005468/2.384, allocations: 103.9 kB / 381.9 MB, free: 1.438 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005461/2.39, allocations: 1.349 MB / 383.3 MB, free: 88 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005608/2.395, allocations: 1.372 MB / 384.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.765e-05/2.395, allocations: 3.906 kB / 384.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002245/2.396, allocations: 3.938 kB / 384.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.966e-05/2.396, allocations: 43.94 kB / 384.7 MB, free: 14.63 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01842/2.414, allocations: 5.856 MB / 390.5 MB, free: 8.562 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001824/2.416, allocations: 0.5793 MB / 391.1 MB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001305/2.417, allocations: 460.7 kB / 391.6 MB, free: 7.508 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.149e-05/2.417, allocations: 12.78 kB / 391.6 MB, free: 7.496 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001534/2.419, allocations: 0.5813 MB / 392.2 MB, free: 6.871 MB / 330.7 MB Notification: Performance of pre-optimization done (n=90): time 4.038e-06/2.419, allocations: 0 / 392.2 MB, free: 6.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=121): time 0.02906/2.448, allocations: 5.387 MB / 397.5 MB, free: 1.379 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001747/2.448, allocations: 299.7 kB / 397.8 MB, free: 1.016 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/2.45, allocations: 0.6323 MB / 398.5 MB, free: 380 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003868/2.45, allocations: 33.64 kB / 398.5 MB, free: 340 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007177/2.451, allocations: 0.5763 MB / 399.1 MB, free: 15.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007336/2.452, allocations: 394.2 kB / 399.5 MB, free: 15.35 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/2.452, allocations: 0 / 399.5 MB, free: 15.35 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002942/2.452, allocations: 402.7 kB / 399.9 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002131/2.454, allocations: 0.6445 MB / 400.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00253/2.457, allocations: 0.9471 MB / 401.4 MB, free: 13.24 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00219/2.459, allocations: 0.6345 MB / 402.1 MB, free: 12.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.446e-05/2.459, allocations: 11.84 kB / 402.1 MB, free: 12.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005771/2.465, allocations: 1.672 MB / 403.8 MB, free: 10.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/2.465, allocations: 8 kB / 403.8 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.457e-05/2.465, allocations: 7.938 kB / 403.8 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006464/2.466, allocations: 174.5 kB / 404 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003861/2.47, allocations: 383.5 kB / 404.3 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005443/2.475, allocations: 4.006 MB / 408.3 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003376/2.479, allocations: 191.9 kB / 408.5 MB, free: 5.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004139/2.479, allocations: 56 kB / 408.6 MB, free: 5.746 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: axis.gear.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: 30 * Number of states: 0 () * Number of discrete variables: 13 (axis.gear.bearingFriction.free,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 166 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005908/2.48, allocations: 147.9 kB / 408.7 MB, free: 5.598 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004098/2.48, allocations: 98.78 kB / 408.8 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003929/2.481, allocations: 97.59 kB / 408.9 MB, free: 5.398 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/2.481, allocations: 19.91 kB / 408.9 MB, free: 5.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/2.481, allocations: 0 / 408.9 MB, free: 5.379 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.313e-05/2.481, allocations: 12.11 kB / 408.9 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01339/2.494, allocations: 3.987 MB / 412.9 MB, free: 1.207 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.362e-05/2.494, allocations: 8.938 kB / 412.9 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002617/2.497, allocations: 291.6 kB / 413.2 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/2.498, allocations: 453.4 kB / 413.7 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002868/2.498, allocations: 23.98 kB / 413.7 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.126/2.624, allocations: 2.137 MB / 415.8 MB, free: 130.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.244e-05/2.624, allocations: 13.28 kB / 415.8 MB, free: 130.5 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004912/2.629, allocations: 2.53 MB / 418.4 MB, free: 129.4 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006856/2.636, allocations: 3.523 MB / 421.9 MB, free: 128 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/2.637, allocations: 333.9 kB / 422.2 MB, free: 127.9 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003301/2.638, allocations: 24.39 kB / 422.2 MB, free: 127.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002163/2.64, allocations: 151.6 kB / 422.4 MB, free: 127.9 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005305/2.64, allocations: 167.6 kB / 422.6 MB, free: 127.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/2.641, allocations: 45.8 kB / 422.6 MB, free: 127.9 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0009476/2.642, allocations: 474 kB / 423.1 MB, free: 127.8 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002827/2.644, allocations: 292.2 kB / 423.3 MB, free: 127.8 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 7 (axis.gear.gear.phi_a,axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.controller.PI.x,load.w) * Number of discrete variables: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 111 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005475/2.645, allocations: 167.1 kB / 423.5 MB, free: 127.7 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004149/2.649, allocations: 1.649 MB / 425.2 MB, free: 127.4 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.469e-05/2.649, allocations: 3.969 kB / 425.2 MB, free: 127.4 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003403/2.653, allocations: 0.8806 MB / 426 MB, free: 127.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/2.654, allocations: 129.6 kB / 426.2 MB, free: 127.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008685/2.663, allocations: 2.394 MB / 428.6 MB, free: 126.4 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001779/2.665, allocations: 1.308 MB / 429.9 MB, free: 125.7 MB / 346.7 MB Notification: Performance of SimCode: time 1.392e-06/2.665, allocations: 0 / 429.9 MB, free: 125.7 MB / 346.7 MB