Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Rotational_AllComponents",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 3.495/3.495, allocations: 235.2 MB / 242.3 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.756e-05/3.775e-05, allocations: 4 kB / 299.5 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4738/0.4739, allocations: 54.85 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2225/0.6965, allocations: 98.86 MB / 453.3 MB, free: 12.18 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.6968, allocations: 67.97 kB / 453.3 MB, free: 12.11 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7682/1.465, allocations: 47.66 MB / 0.4892 GB, free: 76.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.726e-06/1.465, allocations: 0 / 0.4892 GB, free: 76.52 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001699/1.465, allocations: 44 kB / 0.4893 GB, free: 76.48 MB / 394.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.0137/1.479, allocations: 2.353 MB / 0.4916 GB, free: 74.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.403e-05/1.479, allocations: 12.03 kB / 0.4916 GB, free: 74.05 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001192/1.48, allocations: 227.8 kB / 0.4918 GB, free: 73.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002103/1.482, allocations: 288.9 kB / 0.4921 GB, free: 73.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003674/1.486, allocations: 0.9707 MB / 0.493 GB, free: 72.51 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001639/1.488, allocations: 392.1 kB / 0.4934 GB, free: 72.08 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001077/1.489, allocations: 151.7 kB / 0.4936 GB, free: 71.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008466/1.497, allocations: 2.082 MB / 0.4956 GB, free: 69.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008168/1.506, allocations: 2.044 MB / 0.4976 GB, free: 67.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000222/1.506, allocations: 35.66 kB / 0.4976 GB, free: 67.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004627/1.506, allocations: 0 / 0.4976 GB, free: 67.68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.569e-05/1.507, allocations: 52 kB / 0.4977 GB, free: 67.63 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0252/1.532, allocations: 6.244 MB / 0.5038 GB, free: 61.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006467/1.538, allocations: 2.09 MB / 0.5058 GB, free: 59.1 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004123/1.542, allocations: 1.112 MB / 0.5069 GB, free: 57.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005651/1.543, allocations: 127.4 kB / 0.507 GB, free: 57.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.535e-05/1.543, allocations: 68.72 kB / 0.5071 GB, free: 57.76 MB / 394.7 MB Notification: Performance of pre-optimization done (n=280): time 8.837e-06/1.543, allocations: 3.938 kB / 0.5071 GB, free: 57.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=338): time 0.03632/1.58, allocations: 10.06 MB / 0.5169 GB, free: 47.21 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/1.58, allocations: 266.1 kB / 0.5172 GB, free: 46.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001655/1.581, allocations: 0.7313 MB / 0.5179 GB, free: 46.15 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007423/1.582, allocations: 45.69 kB / 0.5179 GB, free: 46.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000693/1.583, allocations: 0.6939 MB / 0.5186 GB, free: 45.4 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001505/1.584, allocations: 1.093 MB / 0.5197 GB, free: 44.29 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003476/1.585, allocations: 0 / 0.5197 GB, free: 44.29 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002136/1.585, allocations: 428.6 kB / 0.5201 GB, free: 43.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003163/1.588, allocations: 0.9476 MB / 0.521 GB, free: 42.91 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00365/1.592, allocations: 1.343 MB / 0.5223 GB, free: 41.45 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003818/1.596, allocations: 0.9798 MB / 0.5233 GB, free: 40.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-05/1.596, allocations: 0 / 0.5233 GB, free: 40.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01156/1.607, allocations: 3.025 MB / 0.5262 GB, free: 37.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.435e-05/1.607, allocations: 12 kB / 0.5262 GB, free: 37.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.878e-05/1.607, allocations: 8 kB / 0.5262 GB, free: 37.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004211/1.612, allocations: 1.007 MB / 0.5272 GB, free: 36.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007197/1.619, allocations: 0.749 MB / 0.528 GB, free: 35.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01445/1.633, allocations: 7.293 MB / 0.5351 GB, free: 28.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004971/1.638, allocations: 227.8 kB / 0.5353 GB, free: 27.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009227/1.639, allocations: 128 kB / 0.5354 GB, free: 27.7 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 (338): * Single equations (assignments): 330 * 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.001116/1.641, allocations: 194.1 kB / 0.5356 GB, free: 27.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009252/1.641, allocations: 205.5 kB / 0.5358 GB, free: 27.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008225/1.65, allocations: 2.15 MB / 0.5379 GB, free: 25.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.608e-05/1.65, allocations: 36 kB / 0.5379 GB, free: 25.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.258e-05/1.65, allocations: 0 / 0.5379 GB, free: 25.08 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.621e-05/1.65, allocations: 23.88 kB / 0.538 GB, free: 25.05 MB / 394.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0242/1.674, allocations: 6.875 MB / 0.5447 GB, free: 17.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.168e-05/1.674, allocations: 8 kB / 0.5447 GB, free: 17.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007809/1.682, allocations: 0.7415 MB / 0.5454 GB, free: 17.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004318/1.686, allocations: 0.9976 MB / 0.5464 GB, free: 16.22 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007374/1.687, allocations: 63.91 kB / 0.5464 GB, free: 16.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01583/1.703, allocations: 9.809 MB / 0.556 GB, free: 5.805 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-05/1.703, allocations: 20.03 kB / 0.556 GB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01556/1.719, allocations: 5.255 MB / 0.5612 GB, free: 148 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002176/1.721, allocations: 0.5141 MB / 0.5617 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007224/1.722, allocations: 32 kB / 0.5617 GB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005077/1.727, allocations: 251.5 kB / 0.5619 GB, free: 15.33 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00218/1.729, allocations: 449.1 kB / 0.5624 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005617/1.73, allocations: 123.9 kB / 0.5625 GB, free: 14.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001491/1.731, allocations: 0.5507 MB / 0.563 GB, free: 14.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.268e-06/1.731, allocations: 4 kB / 0.563 GB, free: 14.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005323/1.736, allocations: 0.6054 MB / 0.5636 GB, free: 13.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (270): * Single equations (assignments): 263 * 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.02043/1.757, allocations: 8.252 MB / 0.5717 GB, free: 5.004 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01019/1.767, allocations: 2.889 MB / 0.5745 GB, free: 2.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/1.767, allocations: 4 kB / 0.5745 GB, free: 2.066 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0104/1.778, allocations: 2.502 MB / 0.5769 GB, free: 15.53 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004148/1.782, allocations: 241.6 kB / 0.5772 GB, free: 15.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02736/1.809, allocations: 5.878 MB / 0.5829 GB, free: 9.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003151/1.812, allocations: 1.592 MB / 0.5845 GB, free: 7.617 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004087/1.817, allocations: 300.7 kB / 0.5848 GB, free: 7.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004335/1.821, allocations: 0.8585 MB / 0.5856 GB, free: 6.461 MB / 426.7 MB Notification: Performance of SimCode: time 2.334e-06/1.821, allocations: 0 / 0.5856 GB, free: 6.461 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7216/2.543, allocations: 51.74 MB / 0.6361 GB, free: 126.6 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002861/2.543, allocations: 126.9 kB / 0.6362 GB, free: 126.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.902/9.445, allocations: 0 / 0.6362 GB, free: 126.4 MB / 458.7 MB