Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Rotational_AllComponents",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.621/2.621, allocations: 235.1 MB / 242 MB, free: 9.742 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2008/2.822, allocations: 57.19 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3522/3.174, allocations: 54.86 MB / 354.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4697/3.644, allocations: 98.79 MB / 452.9 MB, free: 33.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000369/3.644, allocations: 67.02 kB / 452.9 MB, free: 33.7 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: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.2979/3.942, allocations: 49.88 MB / 0.491 GB, free: 23.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/3.942, allocations: 9.562 kB / 0.491 GB, free: 23.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002957/3.945, allocations: 295.3 kB / 0.4913 GB, free: 22.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003911/3.949, allocations: 0.9758 MB / 0.4923 GB, free: 22.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001749/3.951, allocations: 402.3 kB / 0.4927 GB, free: 22.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001349/3.952, allocations: 145.7 kB / 0.4928 GB, free: 22.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01035/3.963, allocations: 2.083 MB / 0.4948 GB, free: 21.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01232/3.975, allocations: 2.047 MB / 0.4968 GB, free: 21.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005042/3.976, allocations: 37.77 kB / 0.4969 GB, free: 21.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001082/3.977, allocations: 1.719 kB / 0.4969 GB, free: 21.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.038e-05/3.977, allocations: 51.06 kB / 0.4969 GB, free: 21.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0334/4.01, allocations: 6.277 MB / 0.503 GB, free: 18.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006568/4.017, allocations: 1.49 MB / 0.5045 GB, free: 18.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005559/4.022, allocations: 1.141 MB / 0.5056 GB, free: 17.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006166/4.023, allocations: 131.5 kB / 0.5057 GB, free: 17.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.481e-05/4.023, allocations: 73.47 kB / 0.5058 GB, free: 17.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=280): time 7.003e-06/4.023, allocations: 0 / 0.5058 GB, free: 17.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=340): time 0.03916/4.062, allocations: 10.08 MB / 0.5157 GB, free: 6.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/4.063, allocations: 273.8 kB / 0.5159 GB, free: 6.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001965/4.065, allocations: 0.7353 MB / 0.5166 GB, free: 5.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001039/4.066, allocations: 45.69 kB / 0.5167 GB, free: 5.469 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006849/4.066, allocations: 0.5299 MB / 0.5172 GB, free: 4.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002082/4.068, allocations: 1.097 MB / 0.5183 GB, free: 3.816 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009453/4.069, allocations: 4 kB / 0.5183 GB, free: 3.812 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003563/4.07, allocations: 432.6 kB / 0.5187 GB, free: 3.383 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004337/4.074, allocations: 0.9554 MB / 0.5196 GB, free: 2.426 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00502/4.079, allocations: 1.355 MB / 0.5209 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004815/4.084, allocations: 0.9906 MB / 0.5219 GB, free: 15.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.315e-05/4.084, allocations: 4 kB / 0.5219 GB, free: 15.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.01795/4.102, allocations: 3.051 MB / 0.5249 GB, free: 12.88 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.797e-05/4.102, allocations: 8 kB / 0.5249 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.366e-05/4.102, allocations: 12 kB / 0.5249 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007444/4.11, allocations: 0.9981 MB / 0.5259 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009292/4.119, allocations: 0.788 MB / 0.5266 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01955/4.139, allocations: 6.953 MB / 0.5334 GB, free: 3.793 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007922/4.147, allocations: 251.8 kB / 0.5337 GB, free: 3.547 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001516/4.148, allocations: 128 kB / 0.5338 GB, free: 3.422 MB / 394.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 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 332 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.002114/4.151, allocations: 196.9 kB / 0.534 GB, free: 3.223 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001633/4.152, allocations: 201.6 kB / 0.5342 GB, free: 3.023 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/4.163, allocations: 2.163 MB / 0.5363 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-05/4.164, allocations: 32 kB / 0.5363 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.642e-05/4.164, allocations: 4 kB / 0.5363 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001106/4.164, allocations: 23.92 kB / 0.5364 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03191/4.196, allocations: 6.906 MB / 0.5431 GB, free: 9.688 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.805e-05/4.196, allocations: 8 kB / 0.5431 GB, free: 9.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008936/4.205, allocations: 0.7726 MB / 0.5439 GB, free: 8.906 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005252/4.21, allocations: 0.9778 MB / 0.5448 GB, free: 7.906 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001044/4.211, allocations: 63.91 kB / 0.5449 GB, free: 7.844 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02227/4.233, allocations: 9.478 MB / 0.5541 GB, free: 13.83 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.276e-05/4.233, allocations: 15.94 kB / 0.5541 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02318/4.257, allocations: 5.316 MB / 0.5593 GB, free: 8.105 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03069/4.287, allocations: 7.057 MB / 0.5662 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003575/4.291, allocations: 0.5217 MB / 0.5667 GB, free: 108 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001927/4.293, allocations: 28.09 kB / 0.5668 GB, free: 80 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007495/4.301, allocations: 279.7 kB / 0.567 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002853/4.304, allocations: 389 kB / 0.5674 GB, free: 15.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001155/4.305, allocations: 119.9 kB / 0.5675 GB, free: 15.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002236/4.307, allocations: 0.5546 MB / 0.5681 GB, free: 14.74 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01011/4.317, allocations: 0.5937 MB / 0.5686 GB, free: 14.15 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 265 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001817/4.319, allocations: 214.8 kB / 0.5688 GB, free: 13.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01415/4.333, allocations: 2.818 MB / 0.5716 GB, free: 11.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.847e-05/4.333, allocations: 0 / 0.5716 GB, free: 11.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0156/4.349, allocations: 2.377 MB / 0.5739 GB, free: 8.645 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006041/4.355, allocations: 220.7 kB / 0.5741 GB, free: 8.426 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02802/4.383, allocations: 5.215 MB / 0.5792 GB, free: 3.039 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006063/4.389, allocations: 1.834 MB / 0.581 GB, free: 1.168 MB / 442.7 MB Notification: Performance of SimCode: time 6.703e-06/4.389, allocations: 0 / 0.581 GB, free: 1.168 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat