Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_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.806/1.806, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2483/2.055, allocations: 46.83 MB / 249.3 MB, free: 5.363 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/2.172, allocations: 44.5 MB / 293.8 MB, free: 10.95 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3245/2.497, allocations: 75.51 MB / 369.4 MB, free: 7.16 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/2.497, allocations: 66.2 kB / 369.4 MB, free: 7.16 MB / 298.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.07322/2.57, allocations: 14.66 MB / 384.1 MB, free: 3.273 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/2.57, allocations: 7.812 kB / 384.1 MB, free: 3.273 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004316/2.571, allocations: 81.55 kB / 384.2 MB, free: 3.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/2.572, allocations: 493.2 kB / 384.7 MB, free: 2.918 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/2.572, allocations: 15.72 kB / 384.7 MB, free: 2.914 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001859/2.572, allocations: 19.53 kB / 384.7 MB, free: 2.914 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002924/2.575, allocations: 1.08 MB / 385.8 MB, free: 2.766 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002124/2.577, allocations: 0.8552 MB / 386.6 MB, free: 2.496 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.501e-05/2.577, allocations: 11.03 kB / 386.6 MB, free: 2.492 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001573/2.578, allocations: 3.906 kB / 386.6 MB, free: 2.488 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/2.578, allocations: 7.625 kB / 386.6 MB, free: 2.488 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009237/2.587, allocations: 2.431 MB / 389.1 MB, free: 1.441 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/2.589, allocations: 0.5894 MB / 389.7 MB, free: 1.355 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001314/2.59, allocations: 0.5205 MB / 390.2 MB, free: 1.289 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001057/2.59, allocations: 7.703 kB / 390.2 MB, free: 1.289 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001755/2.592, allocations: 0.7605 MB / 391 MB, free: 1.039 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.657e-06/2.592, allocations: 0 / 391 MB, free: 1.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=51): time 0.01121/2.603, allocations: 3.434 MB / 394.4 MB, free: 15.95 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/2.603, allocations: 82.61 kB / 394.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009614/2.604, allocations: 0.501 MB / 395 MB, free: 15.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003824/2.604, allocations: 43.19 kB / 395 MB, free: 15.64 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/2.605, allocations: 202.8 kB / 395.2 MB, free: 15.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003138/2.605, allocations: 164.2 kB / 395.4 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/2.605, allocations: 3.938 kB / 395.4 MB, free: 15.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001949/2.605, allocations: 374.8 kB / 395.7 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/2.607, allocations: 0.5293 MB / 396.3 MB, free: 15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001624/2.609, allocations: 0.6168 MB / 396.9 MB, free: 14.85 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/2.61, allocations: 468 kB / 397.3 MB, free: 14.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/2.61, allocations: 1.406 kB / 397.3 MB, free: 14.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006096/2.616, allocations: 1.718 MB / 399.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/2.616, allocations: 4.406 kB / 399.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.984e-05/2.616, allocations: 9.219 kB / 399.1 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009091/2.625, allocations: 3.964 MB / 403 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/2.627, allocations: 127.2 kB / 403.2 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008855/2.635, allocations: 4.892 MB / 408.1 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003348/2.639, allocations: 327.6 kB / 408.4 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003749/2.639, allocations: 104.1 kB / 408.5 MB, free: 7.848 MB / 314.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): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.000517/2.64, allocations: 138 kB / 408.6 MB, free: 7.711 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002884/2.64, allocations: 71.16 kB / 408.7 MB, free: 7.641 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005923/2.646, allocations: 1.612 MB / 410.3 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.173e-05/2.646, allocations: 11.92 kB / 410.3 MB, free: 6.312 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/2.646, allocations: 4 kB / 410.3 MB, free: 6.309 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/2.646, allocations: 0 / 410.3 MB, free: 6.309 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008623/2.655, allocations: 2.544 MB / 412.9 MB, free: 4.219 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/2.655, allocations: 4.094 kB / 412.9 MB, free: 4.215 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/2.656, allocations: 99.75 kB / 413 MB, free: 4.121 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008829/2.665, allocations: 3.993 MB / 416.9 MB, free: 468 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00023/2.665, allocations: 35.27 kB / 417 MB, free: 436 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008626/2.674, allocations: 4.81 MB / 421.8 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/2.674, allocations: 0 / 421.8 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007634/2.681, allocations: 2.335 MB / 424.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00986/2.691, allocations: 3.378 MB / 427.5 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/2.693, allocations: 320 kB / 427.8 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003324/2.693, allocations: 16.12 kB / 427.8 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003466/2.696, allocations: 339.7 kB / 428.2 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009348/2.697, allocations: 223.5 kB / 428.4 MB, free: 6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002538/2.698, allocations: 91.97 kB / 428.5 MB, free: 5.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0009989/2.699, allocations: 487.1 kB / 428.9 MB, free: 5.438 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002223/2.701, allocations: 208 kB / 429.2 MB, free: 5.234 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 32 * 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.0005109/2.701, allocations: 147.1 kB / 429.3 MB, free: 5.082 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003837/2.705, allocations: 1.336 MB / 430.6 MB, free: 3.719 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.844e-06/2.705, allocations: 0 / 430.6 MB, free: 3.719 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002386/2.708, allocations: 0.7688 MB / 431.4 MB, free: 2.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009385/2.709, allocations: 63.19 kB / 431.5 MB, free: 2.875 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007006/2.716, allocations: 1.557 MB / 433 MB, free: 1.273 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00102/2.717, allocations: 0.9746 MB / 434 MB, free: 284 kB / 330.7 MB Notification: Performance of SimCode: time 1.242e-06/2.717, allocations: 4 kB / 434 MB, free: 280 kB / 330.7 MB