Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.639/1.639, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2222/1.861, allocations: 46.83 MB / 249.4 MB, free: 5.301 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08882/1.95, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2798/2.23, allocations: 75.28 MB / 369.2 MB, free: 7.113 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/2.23, allocations: 70.12 kB / 369.3 MB, free: 7.113 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.03634/2.266, allocations: 7.95 MB / 377.2 MB, free: 5.922 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/2.266, allocations: 15.56 kB / 377.2 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/2.266, allocations: 46.97 kB / 377.3 MB, free: 5.895 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004974/2.267, allocations: 305.9 kB / 377.6 MB, free: 5.633 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/2.267, allocations: 11.28 kB / 377.6 MB, free: 5.633 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/2.267, allocations: 27.31 kB / 377.6 MB, free: 5.629 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001103/2.268, allocations: 386.6 kB / 378 MB, free: 5.586 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009839/2.269, allocations: 374.1 kB / 378.3 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.003e-05/2.269, allocations: 0 / 378.3 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.947e-05/2.269, allocations: 3.906 kB / 378.3 MB, free: 5.473 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/2.269, allocations: 11.69 kB / 378.4 MB, free: 5.473 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003553/2.273, allocations: 1.089 MB / 379.4 MB, free: 4.895 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008442/2.274, allocations: 265.2 kB / 379.7 MB, free: 4.859 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005993/2.274, allocations: 228.6 kB / 379.9 MB, free: 4.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.798e-05/2.274, allocations: 16.16 kB / 379.9 MB, free: 4.832 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/2.275, allocations: 34.62 kB / 380 MB, free: 4.789 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 2.866e-06/2.275, allocations: 0 / 380 MB, free: 4.789 MB / 298.7 MB Notification: Performance of matching and sorting (n=58): time 0.005252/2.28, allocations: 1.551 MB / 381.5 MB, free: 4.059 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/2.28, allocations: 59.66 kB / 381.6 MB, free: 3.996 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002612/2.28, allocations: 200.9 kB / 381.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.823e-05/2.28, allocations: 37.41 kB / 381.8 MB, free: 3.848 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/2.28, allocations: 155.9 kB / 382 MB, free: 19.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/2.281, allocations: 195.4 kB / 382.2 MB, free: 19.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.474e-05/2.281, allocations: 0 / 382.2 MB, free: 19.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001645/2.281, allocations: 352 kB / 382.5 MB, free: 19.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005447/2.281, allocations: 184.3 kB / 382.7 MB, free: 19.24 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005844/2.282, allocations: 234.3 kB / 382.9 MB, free: 19.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006539/2.283, allocations: 159.2 kB / 383.1 MB, free: 19.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/2.283, allocations: 0 / 383.1 MB, free: 19.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002602/2.285, allocations: 0.6434 MB / 383.7 MB, free: 19.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/2.285, allocations: 7.75 kB / 383.7 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.213e-05/2.285, allocations: 3.812 kB / 383.7 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/2.286, allocations: 374.3 kB / 384.1 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007218/2.287, allocations: 96.77 kB / 384.2 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002023/2.289, allocations: 1.385 MB / 385.6 MB, free: 17.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/2.29, allocations: 101.9 kB / 385.7 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.109e-05/2.29, allocations: 19.38 kB / 385.7 MB, free: 17.78 MB / 314.7 MB 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002812/2.291, allocations: 136.1 kB / 385.8 MB, free: 17.65 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/2.291, allocations: 38.69 kB / 385.9 MB, free: 17.63 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002315/2.293, allocations: 0.6465 MB / 386.5 MB, free: 17.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/2.293, allocations: 3.906 kB / 386.5 MB, free: 17.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/2.293, allocations: 0 / 386.5 MB, free: 17.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/2.293, allocations: 3.984 kB / 386.5 MB, free: 17.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004147/2.297, allocations: 1.284 MB / 387.8 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/2.297, allocations: 0 / 387.8 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008016/2.298, allocations: 89.8 kB / 387.9 MB, free: 16.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001053/2.299, allocations: 353.3 kB / 388.2 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-05/2.299, allocations: 14.72 kB / 388.2 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001868/2.301, allocations: 1.346 MB / 389.6 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/2.301, allocations: 7.875 kB / 389.6 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00265/2.304, allocations: 0.9622 MB / 390.6 MB, free: 15.22 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004573/2.309, allocations: 2.046 MB / 392.6 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003333/2.309, allocations: 164 kB / 392.8 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001538/2.309, allocations: 11 kB / 392.8 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009279/2.31, allocations: 81.73 kB / 392.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003151/2.31, allocations: 113.6 kB / 393 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.565e-05/2.31, allocations: 26.83 kB / 393 MB, free: 14.2 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002222/2.311, allocations: 166.7 kB / 393.2 MB, free: 14.11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001637/2.312, allocations: 123.4 kB / 393.3 MB, free: 14.09 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003196/2.313, allocations: 143 kB / 393.4 MB, free: 13.99 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001495/2.314, allocations: 0.5413 MB / 394 MB, free: 13.88 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/2.314, allocations: 0 / 394 MB, free: 13.88 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009153/2.315, allocations: 280.4 kB / 394.2 MB, free: 13.85 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007409/2.316, allocations: 54.38 kB / 394.3 MB, free: 13.83 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002975/2.319, allocations: 0.9442 MB / 395.2 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007186/2.32, allocations: 0.8808 MB / 396.1 MB, free: 12.46 MB / 314.7 MB Notification: Performance of SimCode: time 1.172e-06/2.32, allocations: 0 / 396.1 MB, free: 12.46 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat