Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_CoupledClutches",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.632/1.632, allocations: 194.9 MB / 202.6 MB, free: 6.906 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2271/1.859, allocations: 46.82 MB / 249.4 MB, free: 5.352 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08937/1.948, allocations: 44.51 MB / 293.9 MB, free: 10.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2706/2.219, allocations: 73.67 MB / 367.6 MB, free: 7.156 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/2.219, allocations: 72.53 kB / 367.6 MB, free: 7.156 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.04428/2.264, allocations: 9.567 MB / 377.2 MB, free: 5.777 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/2.264, allocations: 7.688 kB / 377.2 MB, free: 5.777 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001748/2.264, allocations: 66.17 kB / 377.3 MB, free: 5.742 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005696/2.265, allocations: 333.8 kB / 377.6 MB, free: 5.465 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.959e-05/2.265, allocations: 19.66 kB / 377.6 MB, free: 5.457 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/2.265, allocations: 31.03 kB / 377.7 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001417/2.266, allocations: 481.6 kB / 378.1 MB, free: 5.402 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/2.267, allocations: 0.5015 MB / 378.6 MB, free: 5.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.194e-05/2.267, allocations: 3.938 kB / 378.6 MB, free: 5.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.809e-05/2.268, allocations: 3.906 kB / 378.6 MB, free: 5.227 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/2.268, allocations: 15.7 kB / 378.7 MB, free: 5.223 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004019/2.272, allocations: 1.265 MB / 379.9 MB, free: 4.543 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/2.273, allocations: 359.5 kB / 380.3 MB, free: 4.492 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006743/2.273, allocations: 245.9 kB / 380.5 MB, free: 4.477 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/2.274, allocations: 16.16 kB / 380.5 MB, free: 4.473 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/2.274, allocations: 38.94 kB / 380.6 MB, free: 4.426 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 3.787e-06/2.274, allocations: 3.938 kB / 380.6 MB, free: 4.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=67): time 0.006593/2.28, allocations: 1.832 MB / 382.4 MB, free: 3.648 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/2.28, allocations: 59.88 kB / 382.5 MB, free: 3.586 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003245/2.281, allocations: 236.4 kB / 382.7 MB, free: 3.465 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001478/2.281, allocations: 35.7 kB / 382.7 MB, free: 19.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/2.281, allocations: 160.7 kB / 382.9 MB, free: 19.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002116/2.281, allocations: 226.7 kB / 383.1 MB, free: 19.13 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.435e-05/2.281, allocations: 3.984 kB / 383.1 MB, free: 19.13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/2.281, allocations: 353.8 kB / 383.5 MB, free: 18.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007225/2.282, allocations: 247.9 kB / 383.7 MB, free: 18.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007594/2.283, allocations: 310 kB / 384 MB, free: 18.74 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008619/2.284, allocations: 197.4 kB / 384.2 MB, free: 18.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/2.284, allocations: 0 / 384.2 MB, free: 18.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002506/2.286, allocations: 0.7522 MB / 384.9 MB, free: 18.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/2.286, allocations: 7.688 kB / 385 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/2.286, allocations: 3.562 kB / 385 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001691/2.288, allocations: 0.5294 MB / 385.5 MB, free: 18.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007914/2.289, allocations: 105.2 kB / 385.6 MB, free: 18.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002494/2.291, allocations: 1.081 MB / 386.7 MB, free: 17.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/2.293, allocations: 159.7 kB / 386.8 MB, free: 17.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/2.293, allocations: 30.05 kB / 386.9 MB, free: 17.76 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.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: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0003434/2.293, allocations: 130.3 kB / 387 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/2.294, allocations: 42.88 kB / 387 MB, free: 17.62 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002838/2.296, allocations: 0.8493 MB / 387.9 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/2.297, allocations: 7.562 kB / 387.9 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/2.297, allocations: 0 / 387.9 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/2.297, allocations: 3.984 kB / 387.9 MB, free: 17.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003842/2.3, allocations: 1.33 MB / 389.2 MB, free: 16.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/2.3, allocations: 0 / 389.2 MB, free: 16.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009826/2.301, allocations: 99.47 kB / 389.3 MB, free: 16.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001539/2.303, allocations: 0.5115 MB / 389.8 MB, free: 16.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.898e-05/2.303, allocations: 22.14 kB / 389.8 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002285/2.305, allocations: 1.048 MB / 390.9 MB, free: 16.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/2.305, allocations: 4 kB / 390.9 MB, free: 16.03 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003238/2.309, allocations: 1.084 MB / 392 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004253/2.313, allocations: 1.781 MB / 393.8 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000419/2.313, allocations: 185.9 kB / 393.9 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002065/2.314, allocations: 17.91 kB / 394 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/2.315, allocations: 148 kB / 394.1 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004166/2.315, allocations: 148.6 kB / 394.2 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001142/2.316, allocations: 34.11 kB / 394.3 MB, free: 14.79 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002661/2.316, allocations: 194.5 kB / 394.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001728/2.318, allocations: 136 kB / 394.6 MB, free: 14.69 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.000366/2.318, allocations: 137.7 kB / 394.7 MB, free: 14.58 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002048/2.32, allocations: 0.7235 MB / 395.5 MB, free: 14.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/2.32, allocations: 0 / 395.5 MB, free: 14.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001072/2.321, allocations: 353.9 kB / 395.8 MB, free: 14.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009305/2.322, allocations: 65.02 kB / 395.9 MB, free: 14.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00391/2.326, allocations: 1.151 MB / 397 MB, free: 13.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007325/2.327, allocations: 0.9038 MB / 397.9 MB, free: 12.9 MB / 314.7 MB Notification: Performance of SimCode: time 9.72e-07/2.327, allocations: 0 / 397.9 MB, free: 12.9 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat