Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.632/2.632, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.303e-05/3.315e-05, allocations: 2.188 kB / 249.7 MB, free: 5.266 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6098/0.7228, allocations: 75.63 MB / 369.9 MB, free: 7.234 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003283/0.7232, allocations: 70.81 kB / 370 MB, free: 7.234 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0648/0.788, allocations: 9.857 MB / 379.8 MB, free: 21.4 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.7881, allocations: 0 / 379.8 MB, free: 21.4 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.049e-05/0.7881, allocations: 11.28 kB / 379.8 MB, free: 21.4 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.002198/0.7903, allocations: 0.5922 MB / 380.4 MB, free: 20.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.132e-05/0.7904, allocations: 7.75 kB / 380.4 MB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001934/0.7906, allocations: 52.83 kB / 380.5 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006749/0.7913, allocations: 66.42 kB / 380.5 MB, free: 20.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006966/0.7921, allocations: 278.5 kB / 380.8 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002081/0.7923, allocations: 79.3 kB / 380.9 MB, free: 20.53 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.7925, allocations: 23.12 kB / 380.9 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001395/0.7939, allocations: 400.9 kB / 381.3 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.795, allocations: 338.2 kB / 381.6 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.459e-05/0.7951, allocations: 3.938 kB / 381.6 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.8e-05/0.7952, allocations: 0 / 381.6 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.7952, allocations: 11.73 kB / 381.7 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002757/0.798, allocations: 0.8296 MB / 382.5 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.7992, allocations: 336.8 kB / 382.8 MB, free: 19.81 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006033/0.7999, allocations: 182.5 kB / 383 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.639e-05/0.8, allocations: 11.44 kB / 383 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.8, allocations: 38.45 kB / 383 MB, free: 19.76 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 4.96e-06/0.8, allocations: 0 / 383 MB, free: 19.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.005799/0.8058, allocations: 1.431 MB / 384.5 MB, free: 19.08 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.8059, allocations: 85.53 kB / 384.6 MB, free: 18.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003882/0.8063, allocations: 180.3 kB / 384.7 MB, free: 18.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001391/0.8065, allocations: 29.58 kB / 384.8 MB, free: 18.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.8066, allocations: 138.6 kB / 384.9 MB, free: 18.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002322/0.8069, allocations: 176.4 kB / 385.1 MB, free: 18.6 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-05/0.807, allocations: 0 / 385.1 MB, free: 18.6 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.8072, allocations: 337.3 kB / 385.4 MB, free: 18.28 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005451/0.8077, allocations: 156.4 kB / 385.5 MB, free: 18.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005662/0.8083, allocations: 198.9 kB / 385.7 MB, free: 18.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007032/0.8091, allocations: 156.2 kB / 385.9 MB, free: 18.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.8091, allocations: 4.031 kB / 385.9 MB, free: 18.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001951/0.8111, allocations: 0.5176 MB / 386.4 MB, free: 18.09 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.8111, allocations: 3.875 kB / 386.4 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.8112, allocations: 3.875 kB / 386.4 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00149/0.8127, allocations: 241.1 kB / 386.7 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008631/0.8136, allocations: 68.88 kB / 386.7 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00711/0.8207, allocations: 2.59 MB / 389.3 MB, free: 16.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008647/0.8217, allocations: 31.34 kB / 389.3 MB, free: 16.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/0.8218, allocations: 22.98 kB / 389.4 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: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003352/0.8222, allocations: 125.8 kB / 389.5 MB, free: 16.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001684/0.8224, allocations: 35.19 kB / 389.5 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001692/0.8226, allocations: 40.45 kB / 389.6 MB, free: 16.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.8226, allocations: 3.875 kB / 389.6 MB, free: 16.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.8226, allocations: 0 / 389.6 MB, free: 16.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.8226, allocations: 3.984 kB / 389.6 MB, free: 16.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003712/0.8264, allocations: 1.095 MB / 390.7 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/0.8264, allocations: 0 / 390.7 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008857/0.8273, allocations: 70.23 kB / 390.7 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001328/0.8287, allocations: 234.4 kB / 391 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001353/0.8289, allocations: 11 kB / 391 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006469/0.8354, allocations: 2.492 MB / 393.5 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/0.8354, allocations: 3.938 kB / 393.5 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002582/0.838, allocations: 0.8255 MB / 394.3 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004217/0.8385, allocations: 143.4 kB / 394.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.8387, allocations: 3.938 kB / 394.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007801/0.8395, allocations: 31.19 kB / 394.5 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003529/0.8398, allocations: 78.75 kB / 394.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.732e-05/0.8399, allocations: 19.06 kB / 394.6 MB, free: 13.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002712/0.8402, allocations: 152.4 kB / 394.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.8402, allocations: 3.938 kB / 394.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001272/0.8415, allocations: 139.4 kB / 394.9 MB, free: 13.71 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.00369/0.8453, allocations: 1.507 MB / 396.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001973/0.8473, allocations: 0.5864 MB / 396.9 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/0.8474, allocations: 0 / 396.9 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.8487, allocations: 421.6 kB / 397.4 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006888/0.8495, allocations: 18.03 kB / 397.4 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002959/0.8525, allocations: 0.6677 MB / 398 MB, free: 12.1 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005848/0.8531, allocations: 0.806 MB / 398.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005709/0.8537, allocations: 61.73 kB / 398.9 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003904/0.8541, allocations: 96.66 kB / 399 MB, free: 11.3 MB / 314.7 MB Notification: Performance of SimCode: time 1.483e-06/0.8541, allocations: 0 / 399 MB, free: 11.3 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07287/0.927, allocations: 9.114 MB / 408.1 MB, free: 6.844 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004456/0.9275, allocations: 161.8 kB / 408.3 MB, free: 6.641 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.929/4.856, allocations: 0 / 408.3 MB, free: 6.641 MB / 314.7 MB "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,DriveSine.y,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,PowerLoss,der(Inertia1.phi),der(Inertia1.w),der(Inertia2.phi),der(Inertia2.w),der(der(gear.phi_b)),der(gear.phi_a),der(gear.phi_b),der(gear.w_a),fixed.flange.phi,fixed.flange.tau,fixed.phi0,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.support.phi,gear.support.tau,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,load.duration,load.height,load.offset,load.startTime,load.y,time,torque1.flange.phi,torque1.flange.tau,torque1.phi_support,torque1.support.phi,torque1.support.tau,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.phi_support,torque2.support.phi,torque2.support.tau,torque2.tau,torque2.useSupport