Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Rotational_TestFriction",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(ModelicaTest): time 2.532/2.532, allocations: 235.1 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1854/2.717, allocations: 57.19 MB / 299.2 MB, free: 452 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/3.03, allocations: 54.85 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2061/3.236, allocations: 85.68 MB / 439.7 MB, free: 7.605 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000307/3.236, allocations: 63.97 kB / 439.8 MB, free: 7.543 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.3536/3.59, allocations: 12.49 MB / 452.3 MB, free: 84.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/3.59, allocations: 7.125 kB / 452.3 MB, free: 84.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004141/3.59, allocations: 86.14 kB / 452.4 MB, free: 84.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/3.591, allocations: 401.6 kB / 452.8 MB, free: 83.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.219e-05/3.591, allocations: 21.47 kB / 452.8 MB, free: 83.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/3.592, allocations: 36.62 kB / 452.8 MB, free: 83.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002046/3.594, allocations: 0.5834 MB / 453.4 MB, free: 83.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/3.596, allocations: 0.6604 MB / 454.1 MB, free: 83.69 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.051e-05/3.596, allocations: 7.875 kB / 454.1 MB, free: 83.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/3.596, allocations: 3.906 kB / 454.1 MB, free: 83.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/3.596, allocations: 18.69 kB / 454.1 MB, free: 83.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007892/3.604, allocations: 2.511 MB / 456.6 MB, free: 82.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/3.606, allocations: 444.6 kB / 457.1 MB, free: 81.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009314/3.607, allocations: 320.5 kB / 457.4 MB, free: 81.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/3.607, allocations: 15.72 kB / 457.4 MB, free: 81.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/3.607, allocations: 46.77 kB / 457.4 MB, free: 81.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 4.088e-06/3.607, allocations: 4 kB / 457.4 MB, free: 81.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.008112/3.615, allocations: 2.301 MB / 459.7 MB, free: 80.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/3.615, allocations: 144.8 kB / 459.9 MB, free: 79.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005394/3.615, allocations: 295.7 kB / 460.2 MB, free: 79.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001846/3.616, allocations: 38.7 kB / 460.2 MB, free: 79.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/3.616, allocations: 222.2 kB / 460.4 MB, free: 79.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003185/3.616, allocations: 272.4 kB / 460.7 MB, free: 79.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/3.616, allocations: 1.375 kB / 460.7 MB, free: 79.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/3.616, allocations: 368.5 kB / 461.1 MB, free: 79.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/3.618, allocations: 296.7 kB / 461.3 MB, free: 78.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/3.619, allocations: 447.4 kB / 461.8 MB, free: 78.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/3.62, allocations: 261.4 kB / 462 MB, free: 78.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/3.62, allocations: 1.938 kB / 462 MB, free: 78.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005097/3.625, allocations: 1.05 MB / 463.1 MB, free: 78.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/3.625, allocations: 6.75 kB / 463.1 MB, free: 78.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.31e-05/3.625, allocations: 15.45 kB / 463.1 MB, free: 78.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002261/3.628, allocations: 0.5654 MB / 463.7 MB, free: 77.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/3.629, allocations: 152 kB / 463.8 MB, free: 77.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003977/3.633, allocations: 2.678 MB / 466.5 MB, free: 75.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002581/3.636, allocations: 198 kB / 466.7 MB, free: 75.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002787/3.636, allocations: 47.73 kB / 466.7 MB, free: 75.57 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004635/3.636, allocations: 145.4 kB / 466.9 MB, free: 75.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003605/3.637, allocations: 62.7 kB / 466.9 MB, free: 75.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005513/3.642, allocations: 0.9821 MB / 467.9 MB, free: 75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-05/3.642, allocations: 8.844 kB / 467.9 MB, free: 75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.676e-05/3.642, allocations: 5.781 kB / 467.9 MB, free: 75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.626e-05/3.643, allocations: 4.797 kB / 467.9 MB, free: 75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008289/3.651, allocations: 1.902 MB / 469.8 MB, free: 73.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.116e-05/3.651, allocations: 4.797 kB / 469.9 MB, free: 73.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001506/3.652, allocations: 127.8 kB / 470 MB, free: 73.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002079/3.655, allocations: 0.5319 MB / 470.5 MB, free: 73.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002265/3.655, allocations: 23.91 kB / 470.5 MB, free: 73.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003621/3.658, allocations: 2.615 MB / 473.1 MB, free: 70.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/3.658, allocations: 0 / 473.1 MB, free: 70.44 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008239/3.667, allocations: 1.591 MB / 474.7 MB, free: 68.9 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009666/3.676, allocations: 2.328 MB / 477.1 MB, free: 66.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008786/3.677, allocations: 216.2 kB / 477.3 MB, free: 66.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004326/3.678, allocations: 12 kB / 477.3 MB, free: 66.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003278/3.681, allocations: 183.8 kB / 477.5 MB, free: 66.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006205/3.682, allocations: 175.5 kB / 477.6 MB, free: 65.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001503/3.682, allocations: 39.95 kB / 477.7 MB, free: 65.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004077/3.682, allocations: 239.2 kB / 477.9 MB, free: 65.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002322/3.685, allocations: 171.9 kB / 478.1 MB, free: 65.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004429/3.685, allocations: 149.2 kB / 478.2 MB, free: 65.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002732/3.688, allocations: 0.8708 MB / 479.1 MB, free: 64.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/3.688, allocations: 64 / 479.1 MB, free: 64.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001825/3.69, allocations: 448.4 kB / 479.5 MB, free: 64.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/3.691, allocations: 85.5 kB / 479.6 MB, free: 63.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006019/3.697, allocations: 1.603 MB / 481.2 MB, free: 62.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000812/3.698, allocations: 0.9883 MB / 482.2 MB, free: 61.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.745e-06/3.698, allocations: 3.938 kB / 482.2 MB, free: 61.29 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat