Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Translational_Examples_Friction",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.674/1.674, allocations: 171.2 MB / 178.1 MB, free: 8.27 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2155/1.889, allocations: 41.1 MB / 219.2 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09065/1.98, allocations: 38.77 MB / 258 MB, free: 4.348 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3092/2.289, allocations: 70.52 MB / 328.5 MB, free: 1.562 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003854/2.29, allocations: 66.53 kB / 328.6 MB, free: 1.531 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.1035/2.393, allocations: 14.4 MB / 343 MB, free: 4.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/2.393, allocations: 8 kB / 343 MB, free: 4.723 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004151/2.394, allocations: 83.05 kB / 343.1 MB, free: 4.641 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001566/2.395, allocations: 0.5742 MB / 343.7 MB, free: 4.094 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.524e-05/2.395, allocations: 16 kB / 343.7 MB, free: 4.078 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002505/2.395, allocations: 23.91 kB / 343.7 MB, free: 4.055 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005702/2.401, allocations: 2.136 MB / 345.8 MB, free: 2.336 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004099/2.405, allocations: 1.383 MB / 347.2 MB, free: 1.199 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.674e-05/2.405, allocations: 0 / 347.2 MB, free: 1.199 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002227/2.406, allocations: 4 kB / 347.2 MB, free: 1.195 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/2.406, allocations: 8 kB / 347.2 MB, free: 1.188 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01216/2.418, allocations: 3.095 MB / 350.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002353/2.42, allocations: 0.9173 MB / 351.2 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002172/2.423, allocations: 0.8485 MB / 352.1 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001292/2.423, allocations: 8.5 kB / 352.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002908/2.426, allocations: 1.098 MB / 353.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 3.888e-06/2.426, allocations: 0 / 353.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.01628/2.442, allocations: 5.562 MB / 358.8 MB, free: 7.375 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.296e-05/2.442, allocations: 85.11 kB / 358.8 MB, free: 7.273 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001947/2.444, allocations: 0.7534 MB / 359.6 MB, free: 6.691 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004306/2.445, allocations: 44.64 kB / 359.6 MB, free: 6.648 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/2.445, allocations: 203.9 kB / 359.8 MB, free: 6.465 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003616/2.445, allocations: 162.1 kB / 360 MB, free: 6.332 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/2.445, allocations: 0 / 360 MB, free: 6.332 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002334/2.446, allocations: 378.6 kB / 360.4 MB, free: 5.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003748/2.449, allocations: 1.027 MB / 361.4 MB, free: 5.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003153/2.453, allocations: 1.114 MB / 362.5 MB, free: 4.266 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002961/2.456, allocations: 0.9385 MB / 363.4 MB, free: 3.496 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/2.456, allocations: 4 kB / 363.4 MB, free: 3.492 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01004/2.466, allocations: 3.223 MB / 366.7 MB, free: 460 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/2.466, allocations: 4 kB / 366.7 MB, free: 456 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/2.466, allocations: 8 kB / 366.7 MB, free: 448 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02478/2.491, allocations: 10.92 MB / 377.6 MB, free: 5.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/2.492, allocations: 135.8 kB / 377.7 MB, free: 5.355 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01484/2.507, allocations: 6.677 MB / 384.4 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003594/2.511, allocations: 331.7 kB / 384.7 MB, free: 14.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000501/2.511, allocations: 108 kB / 384.8 MB, free: 14 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005407/2.512, allocations: 139.6 kB / 385 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005089/2.512, allocations: 71.16 kB / 385 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003909/2.513, allocations: 98.16 kB / 385.1 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/2.513, allocations: 4 kB / 385.1 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/2.513, allocations: 4 kB / 385.1 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/2.513, allocations: 0 / 385.1 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01485/2.528, allocations: 4.386 MB / 389.5 MB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/2.528, allocations: 3.906 kB / 389.5 MB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/2.529, allocations: 99.92 kB / 389.6 MB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02369/2.552, allocations: 10.83 MB / 400.5 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003442/2.553, allocations: 43.95 kB / 400.5 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01357/2.566, allocations: 6.597 MB / 407.1 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/2.567, allocations: 0 / 407.1 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01224/2.579, allocations: 4.216 MB / 411.3 MB, free: 3.094 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1522/2.731, allocations: 5.883 MB / 417.2 MB, free: 157.9 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001411/2.733, allocations: 409.1 kB / 417.6 MB, free: 157.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003977/2.733, allocations: 13.47 kB / 417.6 MB, free: 157.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004353/2.737, allocations: 335.1 kB / 417.9 MB, free: 157.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009755/2.738, allocations: 224.5 kB / 418.2 MB, free: 157.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000228/2.739, allocations: 98.95 kB / 418.3 MB, free: 157.8 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.00103/2.74, allocations: 0.5911 MB / 418.9 MB, free: 157.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002025/2.742, allocations: 187.2 kB / 419 MB, free: 157.7 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004224/2.742, allocations: 150.5 kB / 419.2 MB, free: 157.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002585/2.745, allocations: 1.589 MB / 420.8 MB, free: 157.4 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/2.745, allocations: 0 / 420.8 MB, free: 157.4 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001695/2.747, allocations: 0.8779 MB / 421.6 MB, free: 157.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008075/2.747, allocations: 49.81 kB / 421.7 MB, free: 157.2 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00569/2.753, allocations: 1.688 MB / 423.4 MB, free: 156.9 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000787/2.754, allocations: 0.9854 MB / 424.4 MB, free: 156.2 MB / 346.7 MB Notification: Performance of SimCode: time 1.343e-06/2.754, allocations: 0 / 424.4 MB, free: 156.2 MB / 346.7 MB