Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.724/2.724, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.819e-05/3.841e-05, allocations: 4.141 kB / 249.8 MB, free: 5.242 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1294, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4824/0.6118, allocations: 75.03 MB / 369.3 MB, free: 7.023 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003181/0.6122, allocations: 69.22 kB / 369.4 MB, free: 7.023 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05113/0.6633, allocations: 9.231 MB / 378.6 MB, free: 21.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6634, allocations: 0 / 378.6 MB, free: 21.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.942e-05/0.6634, allocations: 3.875 kB / 378.6 MB, free: 21.54 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001674/0.6651, allocations: 0.5664 MB / 379.2 MB, free: 21.06 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.6652, allocations: 7.75 kB / 379.2 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001176/0.6653, allocations: 54.03 kB / 379.2 MB, free: 21.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005643/0.6659, allocations: 46.95 kB / 379.3 MB, free: 20.99 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005804/0.6665, allocations: 276.4 kB / 379.5 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/0.6667, allocations: 79.39 kB / 379.6 MB, free: 20.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.747e-05/0.6668, allocations: 15.5 kB / 379.6 MB, free: 20.68 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001087/0.6679, allocations: 361 kB / 380 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008526/0.6688, allocations: 317.9 kB / 380.3 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.6688, allocations: 11.8 kB / 380.3 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.284e-05/0.6689, allocations: 0 / 380.3 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.6689, allocations: 7.719 kB / 380.3 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003039/0.672, allocations: 1.1 MB / 381.4 MB, free: 19.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008101/0.6728, allocations: 306.4 kB / 381.7 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004155/0.6732, allocations: 151.8 kB / 381.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.204e-05/0.6733, allocations: 7.734 kB / 381.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.6734, allocations: 33.62 kB / 381.9 MB, free: 19.71 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 4.058e-06/0.6734, allocations: 0 / 381.9 MB, free: 19.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.005502/0.6789, allocations: 1.241 MB / 383.1 MB, free: 19.06 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.75e-05/0.6791, allocations: 88.61 kB / 383.2 MB, free: 18.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000492/0.6796, allocations: 181 kB / 383.4 MB, free: 18.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001187/0.6797, allocations: 29.58 kB / 383.4 MB, free: 18.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.6799, allocations: 139.7 kB / 383.6 MB, free: 18.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002429/0.6802, allocations: 139.9 kB / 383.7 MB, free: 18.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.789e-05/0.6803, allocations: 0 / 383.7 MB, free: 18.61 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002525/0.6805, allocations: 333 kB / 384 MB, free: 18.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006188/0.6812, allocations: 144.2 kB / 384.2 MB, free: 18.28 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007738/0.682, allocations: 188 kB / 384.4 MB, free: 18.22 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008785/0.6829, allocations: 138.4 kB / 384.5 MB, free: 18.2 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.555e-06/0.6829, allocations: 7.844 kB / 384.5 MB, free: 18.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.002483/0.6854, allocations: 486.2 kB / 385 MB, free: 18.09 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.496e-05/0.6855, allocations: 3.938 kB / 385 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.6855, allocations: 128 / 385 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/0.6871, allocations: 233.8 kB / 385.2 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005894/0.6878, allocations: 54.75 kB / 385.3 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006331/0.6941, allocations: 2.559 MB / 387.8 MB, free: 16.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007055/0.6949, allocations: 27.59 kB / 387.8 MB, free: 16.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.656e-05/0.695, allocations: 15.22 kB / 387.9 MB, free: 16.48 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.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: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0003035/0.6953, allocations: 120.5 kB / 388 MB, free: 16.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.6955, allocations: 30.22 kB / 388 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.6956, allocations: 32.16 kB / 388 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.6957, allocations: 3.844 kB / 388 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.6957, allocations: 4 kB / 388 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.6957, allocations: 3.984 kB / 388 MB, free: 16.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002858/0.6986, allocations: 0.953 MB / 389 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.6986, allocations: 0 / 389 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005759/0.6992, allocations: 51.06 kB / 389.1 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/0.7004, allocations: 224.8 kB / 389.3 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.879e-05/0.7005, allocations: 11.23 kB / 389.3 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005853/0.7064, allocations: 2.504 MB / 391.8 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.7064, allocations: 0 / 391.8 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002019/0.7085, allocations: 0.6969 MB / 392.5 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003031/0.7088, allocations: 143 kB / 392.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.7089, allocations: 7.953 kB / 392.6 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006127/0.7095, allocations: 23.47 kB / 392.7 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002746/0.7098, allocations: 74 kB / 392.7 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-05/0.7099, allocations: 15.42 kB / 392.7 MB, free: 13.92 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002232/0.7102, allocations: 149.1 kB / 392.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.7102, allocations: 0 / 392.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001083/0.7113, allocations: 132.3 kB / 393 MB, free: 13.82 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.002817/0.7141, allocations: 1.298 MB / 394.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.7158, allocations: 0.5299 MB / 394.8 MB, free: 12.87 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.7158, allocations: 0 / 394.8 MB, free: 12.87 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009976/0.7168, allocations: 382.3 kB / 395.2 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005324/0.7174, allocations: 16.98 kB / 395.2 MB, free: 12.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.7196, allocations: 0.5729 MB / 395.8 MB, free: 12.37 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005033/0.7201, allocations: 0.78 MB / 396.6 MB, free: 11.63 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004523/0.7206, allocations: 64.83 kB / 396.6 MB, free: 11.6 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002994/0.7209, allocations: 89.95 kB / 396.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of SimCode: time 2.364e-06/0.7209, allocations: 0 / 396.7 MB, free: 11.57 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1268/0.8478, allocations: 8.371 MB / 405.1 MB, free: 7.465 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004316/0.8483, allocations: 149.9 kB / 405.3 MB, free: 7.27 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.097/4.946, allocations: 4 kB / 405.3 MB, free: 7.266 MB / 314.7 MB "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:Inertia1.J,Inertia1.a,Inertia1.flange_a.phi,Inertia1.flange_a.tau,Inertia1.flange_b.phi,Inertia1.flange_b.tau,Inertia1.phi,Inertia1.stateSelect,Inertia1.w,Inertia2.J,Inertia2.a,Inertia2.flange_a.phi,Inertia2.flange_a.tau,Inertia2.flange_b.phi,Inertia2.flange_b.tau,Inertia2.phi,Inertia2.stateSelect,Inertia2.w,der(Inertia1.w),der(Inertia2.phi),der(Inertia2.w),der(gear.phi_a),gear.a_a,gear.eta_mf1,gear.eta_mf1_0,gear.eta_mf2,gear.eta_mf2_0,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.ideal,gear.interpolation_result[1,1],gear.interpolation_result[1,2],gear.interpolation_result[1,3],gear.interpolation_result[1,4],gear.locked,gear.lossPower,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_a,gear.phi_b,gear.phi_support,gear.quadrant1,gear.quadrant1_p,gear.quadrant2,gear.quadrant2_p,gear.quadrant3,gear.quadrant3_m,gear.quadrant4,gear.quadrant4_m,gear.ratio,gear.sa,gear.startBackward,gear.startForward,gear.tauLoss,gear.tauLossMax,gear.tauLossMax_p,gear.tauLossMin,gear.tauLossMin_m,gear.tau_aPos,gear.tau_bf1,gear.tau_bf1_0,gear.tau_bf2,gear.tau_bf2_0,gear.tau_bf_a,gear.tau_bf_a_0,gear.tau_eta,gear.tau_etaPos,gear.tau_eta_m,gear.tau_eta_p,gear.useHeatPort,gear.useSupport,gear.w_a,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,time,torque1.flange.phi,torque1.flange.tau,torque1.phi_support,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.phi_support,torque2.tau,torque2.useSupport