Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.69/2.69, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.134e-05/4.158e-05, allocations: 2.5 kB / 249.8 MB, free: 5.301 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1377, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5092/0.647, allocations: 77.01 MB / 371.3 MB, free: 7.219 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002964/0.6474, allocations: 69.03 kB / 371.3 MB, free: 7.219 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06605/0.7134, allocations: 11.48 MB / 382.8 MB, free: 20.4 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.7135, allocations: 0 / 382.8 MB, free: 20.4 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.681e-05/0.7136, allocations: 11.72 kB / 382.8 MB, free: 20.39 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002409/0.716, allocations: 0.7035 MB / 383.5 MB, free: 19.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/0.7161, allocations: 11.81 kB / 383.5 MB, free: 19.85 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001848/0.7163, allocations: 65.05 kB / 383.6 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006166/0.7169, allocations: 62.52 kB / 383.7 MB, free: 19.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007036/0.7176, allocations: 331.5 kB / 384 MB, free: 19.51 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001721/0.7178, allocations: 83.52 kB / 384.1 MB, free: 19.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.718, allocations: 27.25 kB / 384.1 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001601/0.7196, allocations: 0.5237 MB / 384.6 MB, free: 19.36 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.7209, allocations: 461 kB / 385.1 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/0.721, allocations: 3.875 kB / 385.1 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.421e-05/0.7211, allocations: 0 / 385.1 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.7211, allocations: 7.781 kB / 385.1 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003601/0.7247, allocations: 1.082 MB / 386.2 MB, free: 18.65 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.726, allocations: 443.6 kB / 386.6 MB, free: 18.58 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006913/0.7267, allocations: 261.6 kB / 386.9 MB, free: 18.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001052/0.7269, allocations: 15.56 kB / 386.9 MB, free: 18.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.7269, allocations: 38.41 kB / 386.9 MB, free: 18.53 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 4.769e-06/0.7269, allocations: 0 / 386.9 MB, free: 18.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.006974/0.7339, allocations: 1.867 MB / 388.8 MB, free: 17.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.734, allocations: 85.64 kB / 388.9 MB, free: 17.65 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004066/0.7344, allocations: 216.2 kB / 389.1 MB, free: 17.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001339/0.7346, allocations: 32.67 kB / 389.1 MB, free: 17.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.7347, allocations: 159.7 kB / 389.3 MB, free: 17.38 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000288/0.735, allocations: 231.2 kB / 389.5 MB, free: 17.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.496e-05/0.7351, allocations: 0 / 389.5 MB, free: 17.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.7353, allocations: 349.3 kB / 389.8 MB, free: 16.88 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006853/0.736, allocations: 227.7 kB / 390 MB, free: 16.87 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007157/0.7368, allocations: 281.1 kB / 390.3 MB, free: 16.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008775/0.7377, allocations: 222.9 kB / 390.5 MB, free: 16.78 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.7377, allocations: 3.953 kB / 390.5 MB, free: 16.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002835/0.7405, allocations: 0.7413 MB / 391.3 MB, free: 16.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.7406, allocations: 7.766 kB / 391.3 MB, free: 16.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.63e-05/0.7406, allocations: 3.969 kB / 391.3 MB, free: 16.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002056/0.7427, allocations: 426.8 kB / 391.7 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009447/0.7437, allocations: 89.12 kB / 391.8 MB, free: 16.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002336/0.7461, allocations: 1.058 MB / 392.9 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.7473, allocations: 66.38 kB / 392.9 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.7475, allocations: 30.8 kB / 393 MB, free: 15.9 MB / 314.7 MB 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 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: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003695/0.7479, allocations: 132 kB / 393.1 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001782/0.748, allocations: 42.77 kB / 393.1 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002794/0.7509, allocations: 0.7667 MB / 393.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/0.7509, allocations: 6.406 kB / 393.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.7509, allocations: 0 / 393.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.981e-05/0.751, allocations: 7.203 kB / 393.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005323/0.7563, allocations: 1.537 MB / 395.4 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.7564, allocations: 0 / 395.4 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009028/0.7573, allocations: 81.7 kB / 395.5 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001713/0.7591, allocations: 397 kB / 395.9 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001338/0.7592, allocations: 15.7 kB / 395.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002128/0.7614, allocations: 1.026 MB / 396.9 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.7614, allocations: 0 / 396.9 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003727/0.7652, allocations: 1.145 MB / 398.1 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004799/0.7657, allocations: 182.6 kB / 398.3 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.7659, allocations: 7.812 kB / 398.3 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.7669, allocations: 62.5 kB / 398.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004013/0.7674, allocations: 102.9 kB / 398.4 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/0.7675, allocations: 35.02 kB / 398.5 MB, free: 13.61 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003079/0.7678, allocations: 173.8 kB / 398.6 MB, free: 13.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.7678, allocations: 0 / 398.6 MB, free: 13.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009172/0.7688, allocations: 125.6 kB / 398.8 MB, free: 13.51 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.004518/0.7733, allocations: 1.87 MB / 400.6 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002073/0.7754, allocations: 0.6046 MB / 401.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.7755, allocations: 0 / 401.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.7767, allocations: 330.5 kB / 401.6 MB, free: 12.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006966/0.7775, allocations: 23.61 kB / 401.6 MB, free: 12.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005277/0.7828, allocations: 1.03 MB / 402.6 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005752/0.7834, allocations: 0.8257 MB / 403.4 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005987/0.784, allocations: 65.19 kB / 403.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004743/0.7845, allocations: 129.8 kB / 403.6 MB, free: 11.07 MB / 314.7 MB Notification: Performance of SimCode: time 1.463e-06/0.7845, allocations: 0 / 403.6 MB, free: 11.07 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1344/0.9189, allocations: 11.58 MB / 415.2 MB, free: 2.051 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004473/0.9195, allocations: 153.9 kB / 415.4 MB, free: 1.852 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.174/5.093, allocations: 0 / 415.4 MB, free: 1.852 MB / 314.7 MB "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,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,bearingFriction.a,bearingFriction.a_relfric,bearingFriction.flange_a.phi,bearingFriction.flange_a.tau,bearingFriction.flange_b.phi,bearingFriction.flange_b.tau,bearingFriction.free,bearingFriction.locked,bearingFriction.lossPower,bearingFriction.mode,bearingFriction.peak,bearingFriction.phi,bearingFriction.phi_support,bearingFriction.sa,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.support.tau,bearingFriction.tau,bearingFriction.tau0,bearingFriction.tau0_max,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.useHeatPort,bearingFriction.useSupport,bearingFriction.w,bearingFriction.w_relfric,bearingFriction.w_small,der(Inertia1.phi),der(Inertia1.w),der(Inertia2.phi),der(Inertia2.w),der(bearingFriction.phi),der(bearingFriction.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